Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessDeniedErr ¶ added in v0.34.0
type AccessDeniedErr struct {
// contains filtered or unexported fields
}
AccessDeniedErr specific access denied error
func (AccessDeniedErr) Error ¶ added in v0.34.0
func (a AccessDeniedErr) Error() string
Error Access Denied message
func (AccessDeniedErr) ImageRef ¶ added in v0.34.0
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 ¶ added in v0.26.0
DigestReader Interface that knows how to read a Digest from a registry
type FetchError ¶ added in v0.34.0
type FetchError struct {
AllErrors []FetchingError
}
FetchError Struct that will contain all the errors found while fetching signatures
func (*FetchError) Add ¶ added in v0.34.0
func (f *FetchError) Add(err FetchingError)
Add a new error to the list of errors
func (*FetchError) Error ¶ added in v0.34.0
func (f *FetchError) Error() string
Error message that contains all errors
func (*FetchError) HasErrors ¶ added in v0.34.0
func (f *FetchError) HasErrors() bool
HasErrors check if any error happened
type FetchingError ¶ added in v0.34.0
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 ¶ added in v0.27.0
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 ¶ added in v0.34.0
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 ¶ added in v0.26.0
func (s *Signatures) FetchForImageRefs(images []lockconfig.ImageRef) ([]lockconfig.ImageRef, error)
FetchForImageRefs Retrieve the available signatures associated with the images provided