proofconfigsvc

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

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