Documentation
¶
Index ¶
- Variables
- type Repository
- func (*Repository) Contexts(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) ([]TargetContext, error)
- func (*Repository) CreateTarget(ctx context.Context, db postgres.DBTX, org slug.Slug, source Source, ...) error
- func (*Repository) List(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) ([]Source, error)
- func (*Repository) Lock(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) error
- func (*Repository) RetireTargets(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) error
- func (*Repository) SetControls(ctx context.Context, db postgres.DBTX, org, ds slug.Slug, enabled, checks bool) error
- func (*Repository) Targets(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) ([]Target, error)
- type Source
- type Target
- type TargetContext
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSourceNotFound = xerror.New(xerror.KindNotFound, "PROOF_DATA_SOURCE_NOT_FOUND", "Git data source not found") ErrTargetConflict = xerror.New(xerror.KindAlreadyExists, "PROOF_TARGET_CONFLICT", "Proof target changed; reload and retry") )
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct{}
func New ¶
func New() *Repository
func (*Repository) Contexts ¶
func (*Repository) Contexts(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) ([]TargetContext, error)
func (*Repository) CreateTarget ¶
func (*Repository) RetireTargets ¶
func (*Repository) SetControls ¶
type TargetContext ¶
Click to show internal directories.
Click to hide internal directories.