notification.go 744 B

1234567891011121314151617
  1. package repository
  2. import (
  3. "github.com/porter-dev/porter/internal/models"
  4. )
  5. type NotificationConfigRepository interface {
  6. CreateNotificationConfig(am *models.NotificationConfig) (*models.NotificationConfig, error)
  7. ReadNotificationConfig(id uint) (*models.NotificationConfig, error)
  8. UpdateNotificationConfig(am *models.NotificationConfig) (*models.NotificationConfig, error)
  9. }
  10. type JobNotificationConfigRepository interface {
  11. CreateNotificationConfig(am *models.JobNotificationConfig) (*models.JobNotificationConfig, error)
  12. ReadNotificationConfig(projID, clusterID uint, name, namespace string) (*models.JobNotificationConfig, error)
  13. UpdateNotificationConfig(am *models.JobNotificationConfig) (*models.JobNotificationConfig, error)
  14. }