Documentation
¶
Index ¶
- Variables
- func WithKey(keys ...key.PublicKeyProvider) optFn
- func WithReleaseURL(locator string) optFn
- func WithRepo(repo string) optFn
- func WithTag(tag string) optFn
- type Collector
- func (c *Collector) Fetch(ctx context.Context, opts attestation.FetchOptions) ([]attestation.Envelope, error)
- func (c *Collector) FetchByPredicateType(ctx context.Context, opts attestation.FetchOptions, ...) ([]attestation.Envelope, error)
- func (c *Collector) FetchBySubject(ctx context.Context, opts attestation.FetchOptions, subj []attestation.Subject) ([]attestation.Envelope, error)
- func (c *Collector) SetKeys(keys []key.PublicKeyProvider)
- type Options
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
Types ¶
type Collector ¶
type Collector struct {
Options Options
Keys []key.PublicKeyProvider
Driver attestation.Fetcher
}
func (*Collector) Fetch ¶
func (c *Collector) Fetch(ctx context.Context, opts attestation.FetchOptions) ([]attestation.Envelope, error)
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.
Click to show internal directories.
Click to hide internal directories.