proofcandidatesvc

package
v0.5.0-linux-arm64 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 18 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 (
	ErrMappingNotFound  = xerror.New(xerror.KindNotFound, "PROOF_CANDIDATE_MAPPING_NOT_FOUND", "proof candidate mapping not found")
	ErrMappingAmbiguous = xerror.New(xerror.KindInvalidInput, "PROOF_CANDIDATE_MAPPING_AMBIGUOUS", "proof candidate mapping is ambiguous")
	ErrSourceTooLarge   = xerror.New(xerror.KindInvalidInput, "PROOF_CANDIDATE_SOURCE_TOO_LARGE", "proof candidate source is too large")
	ErrParseFailed      = xerror.New(xerror.KindInvalidInput, "PROOF_CANDIDATE_PARSE_FAILED", "proof candidate parse failed")
)

Functions

This section is empty.

Types

type GitAuthResolver

type GitAuthResolver interface {
	ResolveGitAuth(context.Context, slug.Slug, slug.Slug) (*datasourcessvc.GitDataSourceAuth, error)
}

type Result

type Result struct {
	CandidateSlug           slug.Slug
	OrganizationSlug        slug.Slug
	ProjectSlug             slug.Slug
	EnvironmentSlug         slug.Slug
	ProviderConnectionSlug  slug.Slug
	CandidateKey            string
	HeadSHA                 string
	SourceSHA256            string
	SpecHash                string
	SupersedesCandidateSlug *slug.Slug
	Replay                  bool
}

type SourceVerifier

type SourceVerifier interface {
	VerifySource(context.Context, proofrepo.Mapping, gitprovider.VerifiedChange) ([]byte, error)
}

SourceVerifier reads pipeline bytes from the exact provider head after re-checking change state, repository, refs, and head SHA.

func NewExactSourceVerifier

func NewExactSourceVerifier(auth GitAuthResolver) (SourceVerifier, error)

NewExactSourceVerifier keeps source verification provider-backed so local repository state cannot substitute for the provider's current change head.

Jump to

Keyboard shortcuts

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