upstash.go 696 B

12345678910111213141516171819202122
  1. package test
  2. import (
  3. "context"
  4. ints "github.com/porter-dev/porter/internal/models/integrations"
  5. "github.com/porter-dev/porter/internal/repository"
  6. )
  7. type UpstashIntegrationRepository struct{}
  8. func NewUpstashIntegrationRepository(canQuery bool) repository.UpstashIntegrationRepository {
  9. return &UpstashIntegrationRepository{}
  10. }
  11. func (s *UpstashIntegrationRepository) Insert(ctx context.Context, upstashInt ints.UpstashIntegration) (ints.UpstashIntegration, error) {
  12. panic("not implemented") // TODO: Implement
  13. }
  14. func (s *UpstashIntegrationRepository) Integrations(ctx context.Context, projectID uint) ([]ints.UpstashIntegration, error) {
  15. panic("not implemented") // TODO: Implement
  16. }