proofcandidatesvc

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

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