proofconfig

package
v0.4.0-rc.2-linux-arm64 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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