proofconfigsvc

package
v0.3.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 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 (
	ErrConfiguration  = xerror.New(xerror.KindInvalidInput, "PROOF_CONFIGURATION_INVALID", "Proof configuration is invalid")
	ErrSourceNotFound = proofconfig.ErrSourceNotFound
)

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Source   proofconfig.Source
	Targets  []proofconfig.Target
	Contexts []proofconfig.TargetContext
	Status   string
}

type DataSources

type DataSources interface {
	ListProviderRepositories(context.Context, slug.Slug, slug.Slug) ([]datasourcessvc.ProviderRepository, error)
	EnsureProofWebhook(context.Context, slug.Slug, slug.Slug) error
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) Get

func (s *Service) Get(ctx context.Context, org, ds slug.Slug) (*Configuration, error)

func (*Service) List

func (s *Service) List(ctx context.Context, org slug.Slug) ([]Configuration, error)

func (*Service) Set

func (s *Service) Set(ctx context.Context, org, ds slug.Slug, actor model.EventActor, settings Settings) (*Configuration, error)

type Settings

type Settings struct {
	Enabled, PublishChecks bool
	ExpectedRepositoryID   string
	Targets                []Target
}

type Target

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

Jump to

Keyboard shortcuts

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