Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOrganizationNotFound = xerror.NotFound(xerror.Organization)
Functions ¶
This section is empty.
Types ¶
type OrganizationSettings ¶
type Repository ¶
type Repository interface {
PruneCompletionDetailsBefore(context.Context, postgres.DBTX, slug.Slug, time.Time) error
ListOrganizationSettings(context.Context, postgres.DBTX) ([]OrganizationSettings, error)
ListRuns(context.Context, postgres.DBTX, slug.Slug) ([]model.OrganizationRetentionRun, error)
HasSucceededRunForJob(context.Context, postgres.DBTX, slug.Slug, int64) (bool, error)
CreateRun(context.Context, postgres.DBTX, slug.Slug, int64, model.OrganizationRetentionRun) error
DeleteRunsBefore(context.Context, postgres.DBTX, slug.Slug, time.Time) (int64, error)
DeleteQueryExecutionsBefore(context.Context, postgres.DBTX, slug.Slug, time.Time) (int64, error)
DeleteReplayCheckpointsBefore(context.Context, postgres.DBTX, slug.Slug, time.Time) (int64, error)
DeletePipelineRunsBefore(context.Context, postgres.DBTX, slug.Slug, time.Time) (int64, error)
DeleteEventsBefore(context.Context, postgres.DBTX, slug.Slug, time.Time) (int64, error)
DeleteAbuseControlBucketsBefore(context.Context, postgres.DBTX, time.Time) (int64, error)
}
func New ¶
func New() Repository
Click to show internal directories.
Click to hide internal directories.