Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessDeniedErr ¶
type AccessDeniedErr struct {
// contains filtered or unexported fields
}
AccessDeniedErr specific access denied error
func (AccessDeniedErr) ImageRef ¶
func (a AccessDeniedErr) ImageRef() string
ImageRef Image Reference and associated to the error
type Cosign ¶
type Cosign struct {
// contains filtered or unexported fields
}
Cosign Signature retriever
func NewCosign ¶
func NewCosign(reg DigestReader) *Cosign
NewCosign constructor for Signature retriever
type DigestReader ¶
DigestReader Interface that knows how to read a Digest from a registry
type FetchError ¶
type FetchError struct {
AllErrors []FetchingError
}
FetchError Struct that will contain all the errors found while fetching signatures
func (*FetchError) Add ¶
func (f *FetchError) Add(err FetchingError)
Add a new error to the list of errors
func (*FetchError) Error ¶
func (f *FetchError) Error() string
Error message that contains all errors
func (*FetchError) HasErrors ¶
func (f *FetchError) HasErrors() bool
HasErrors check if any error happened
type FetchingError ¶
FetchingError Error type that happen when fetching signatures
type Finder ¶
type Finder interface {
Signature(reference name.Digest) (imageset.UnprocessedImageRef, error)
}
type Noop ¶
type Noop struct{}
Noop No Operation signature fetcher
func (Noop) Fetch ¶
func (n Noop) Fetch(*imageset.UnprocessedImageRefs) (*imageset.UnprocessedImageRefs, error)
Fetch Do nothing
func (Noop) FetchForImageRefs ¶
func (n Noop) FetchForImageRefs(_ []lockconfig.ImageRef) ([]lockconfig.ImageRef, error)
FetchForImageRefs Retrieve the available signatures associated with the images provided
type NotFoundErr ¶
type NotFoundErr struct {
// contains filtered or unexported fields
}
NotFoundErr specific not found error
func (NotFoundErr) ImageRef ¶
func (n NotFoundErr) ImageRef() string
ImageRef Image Reference and associated to the error
type Signatures ¶
type Signatures struct {
// contains filtered or unexported fields
}
Signatures Signature fetcher
func NewSignatures ¶
func NewSignatures(finder Finder, concurrency int) *Signatures
NewSignatures constructs the Signature Fetcher
func (*Signatures) Fetch ¶
func (s *Signatures) Fetch(images *imageset.UnprocessedImageRefs) (*imageset.UnprocessedImageRefs, error)
Fetch Retrieve the available signatures associated with the images provided
func (*Signatures) FetchForImageRefs ¶
func (s *Signatures) FetchForImageRefs(images []lockconfig.ImageRef) ([]lockconfig.ImageRef, error)
FetchForImageRefs Retrieve the available signatures associated with the images provided