slack.go 797 B

123456789101112131415161718192021222324
  1. package test
  2. import (
  3. ints "github.com/porter-dev/porter/internal/models/integrations"
  4. "github.com/porter-dev/porter/internal/repository"
  5. )
  6. type SlackIntegrationRepository struct{}
  7. func NewSlackIntegrationRepository(canQuery bool) repository.SlackIntegrationRepository {
  8. return &SlackIntegrationRepository{}
  9. }
  10. func (s *SlackIntegrationRepository) CreateSlackIntegration(slackInt *ints.SlackIntegration) (*ints.SlackIntegration, error) {
  11. panic("not implemented") // TODO: Implement
  12. }
  13. func (s *SlackIntegrationRepository) ListSlackIntegrationsByProjectID(projectID uint) ([]*ints.SlackIntegration, error) {
  14. panic("not implemented") // TODO: Implement
  15. }
  16. func (s *SlackIntegrationRepository) DeleteSlackIntegration(integrationID uint) error {
  17. panic("not implemented") // TODO: Implement
  18. }