proofconfig

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: 7 Imported by: 0

Documentation

Index

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) CreateTarget(ctx context.Context, db postgres.DBTX, org slug.Slug, source Source, target Target) error

func (*Repository) List

func (*Repository) List(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) ([]Source, error)

func (*Repository) Lock

func (*Repository) Lock(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) error

func (*Repository) RetireTargets

func (*Repository) RetireTargets(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) error

func (*Repository) SetControls

func (*Repository) SetControls(ctx context.Context, db postgres.DBTX, org, ds slug.Slug, enabled, checks bool) error

func (*Repository) Targets

func (*Repository) Targets(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) ([]Target, error)

type Source

type Source struct {
	MappingsCurrent                                                                               bool
	Slug                                                                                          slug.Slug
	Name, Provider, RepositoryID, ConnectionID                                                    string
	Enabled, PublishChecks, Active, CredentialActive, Managed, RepositoryAccessible, WebhookReady bool
}

type Target

type Target struct {
	Project, Environment slug.Slug
	Ref, Path            string
}

type TargetContext

type TargetContext struct {
	Project, Environment slug.Slug
	Ref, Directory       string
}

Jump to

Keyboard shortcuts

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