2
0

notification.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package test
  2. import (
  3. "github.com/porter-dev/porter/internal/models"
  4. "github.com/porter-dev/porter/internal/repository"
  5. )
  6. type NotificationConfigRepository struct{}
  7. func NewNotificationConfigRepository(canQuery bool) repository.NotificationConfigRepository {
  8. return &NotificationConfigRepository{}
  9. }
  10. func (n *NotificationConfigRepository) CreateNotificationConfig(am *models.NotificationConfig) (*models.NotificationConfig, error) {
  11. panic("not implemented") // TODO: Implement
  12. }
  13. func (n *NotificationConfigRepository) ReadNotificationConfig(id uint) (*models.NotificationConfig, error) {
  14. panic("not implemented") // TODO: Implement
  15. }
  16. func (n *NotificationConfigRepository) UpdateNotificationConfig(am *models.NotificationConfig) (*models.NotificationConfig, error) {
  17. panic("not implemented") // TODO: Implement
  18. }
  19. type JobNotificationConfigRepository struct{}
  20. func NewJobNotificationConfigRepository(canQuery bool) repository.JobNotificationConfigRepository {
  21. return &JobNotificationConfigRepository{}
  22. }
  23. func (n *JobNotificationConfigRepository) CreateNotificationConfig(am *models.JobNotificationConfig) (*models.JobNotificationConfig, error) {
  24. panic("not implemented") // TODO: Implement
  25. }
  26. func (n *JobNotificationConfigRepository) ReadNotificationConfig(projID, clusterID uint, name, namespace string) (*models.JobNotificationConfig, error) {
  27. panic("not implemented") // TODO: Implement
  28. }
  29. func (n *JobNotificationConfigRepository) UpdateNotificationConfig(am *models.JobNotificationConfig) (*models.JobNotificationConfig, error) {
  30. panic("not implemented") // TODO: Implement
  31. }