retention

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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 OrganizationSettings struct {
	Slug     slug.Slug
	Settings []byte
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL