github_webhook.go 504 B

123456789101112131415
  1. package repository
  2. import (
  3. "context"
  4. "github.com/google/uuid"
  5. "github.com/porter-dev/porter/internal/models"
  6. )
  7. // GithubWebhookRepository represents the set of queries on the GithubWebhook model
  8. type GithubWebhookRepository interface {
  9. Insert(ctx context.Context, webhook *models.GithubWebhook) (*models.GithubWebhook, error)
  10. Get(ctx context.Context, id uuid.UUID) (*models.GithubWebhook, error)
  11. GetByClusterAndAppID(ctx context.Context, clusterID, appID uint) (*models.GithubWebhook, error)
  12. }