upstash.go 548 B

123456789101112131415
  1. package repository
  2. import (
  3. "context"
  4. ints "github.com/porter-dev/porter/internal/models/integrations"
  5. )
  6. // UpstashIntegrationRepository represents the set of queries on an Upstash integration
  7. type UpstashIntegrationRepository interface {
  8. // Insert creates a new upstash integration
  9. Insert(ctx context.Context, upstashInt ints.UpstashIntegration) (ints.UpstashIntegration, error)
  10. // Integrations returns all upstash integrations belonging to a project
  11. Integrations(ctx context.Context, projectID uint) ([]ints.UpstashIntegration, error)
  12. }