Documentation
¶
Index ¶
- Variables
- 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)
- 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 ¶
Types ¶
type Collector ¶
type Collector struct {
Options Options
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
Click to show internal directories.
Click to hide internal directories.