Versions in this module Expand all Collapse all v5 v5.33.1 Dec 30, 2024 Changes in this version + const UnknownDigestSuffix + var ErrTooManyRequests = errors.New("too many requests to registry") + var ErrV1NotSupported = errors.New("can't talk to a V1 container registry") + var Transport = dockerTransport + func CheckAuth(ctx context.Context, sys *types.SystemContext, ...) error + func GetDigest(ctx context.Context, sys *types.SystemContext, ref types.ImageReference) (digest.Digest, error) + func GetRepositoryTags(ctx context.Context, sys *types.SystemContext, ref types.ImageReference) ([]string, error) + func NewReference(ref reference.Named) (types.ImageReference, error) + func NewReferenceUnknownDigest(ref reference.Named) (types.ImageReference, error) + func ParseReference(refString string) (types.ImageReference, error) + func SignatureStorageBaseURL(sys *types.SystemContext, ref types.ImageReference, write bool) (*url.URL, error) + type ErrUnauthorizedForCredentials struct + Err error + func (e ErrUnauthorizedForCredentials) Error() string + type Image struct + func (i *Image) GetRepositoryTags(ctx context.Context) ([]string, error) + func (i *Image) SourceRefFullName() string + type SearchResult struct + Description string + IsAutomated bool + IsOfficial bool + IsTrusted bool + Name string + StarCount int + func SearchRegistry(ctx context.Context, sys *types.SystemContext, registry, image string, ...) ([]SearchResult, error)