release

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Build = func(istr string) (attestation.Repository, error) {
	return New(WithReleaseURL(istr))
}

Implement the factory function

View Source
var TypeMoniker = "release"

Functions

func WithKey added in v0.3.0

func WithKey(keys ...key.PublicKeyProvider) optFn

func WithReleaseURL

func WithReleaseURL(locator string) optFn

WithInitURL is specially crafte

func WithRepo

func WithRepo(repo string) optFn

func WithTag

func WithTag(tag string) optFn

Types

type Collector

type Collector struct {
	Options Options
	Keys    []key.PublicKeyProvider
	Driver  attestation.Fetcher
}

func New

func New(funcs ...optFn) (*Collector, error)

func (*Collector) Fetch

Fetch queries the repository and retrieves any attestations matching the query

func (*Collector) FetchByPredicateType

func (c *Collector) FetchByPredicateType(ctx context.Context, opts attestation.FetchOptions, pts []attestation.PredicateType) ([]attestation.Envelope, error)

FetchByPredicateType fe

func (*Collector) FetchBySubject

func (c *Collector) FetchBySubject(ctx context.Context, opts attestation.FetchOptions, subj []attestation.Subject) ([]attestation.Envelope, error)

FetchBySubject handles collecting by subject hash. If the driver implements the FetcherBySubject interface we'll use it

func (*Collector) SetKeys added in v0.3.0

func (c *Collector) SetKeys(keys []key.PublicKeyProvider)

SetKeys sets the verification keys on the release collector and propagates them to the inner driver if it supports key acceptance.

type Options

type Options struct {
	RepoURL string
	Tag     string
}

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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