release

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 9 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 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
	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

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