Versions in this module Expand all Collapse all v0 v0.21.0 May 22, 2026 Changes in this version + var ErrCredentialsNotFound = errors.New("registry credentials not found") + type AuthSource interface + Credentials func(ctx context.Context, host string) (Credentials, error) + func NewSessionAuthSource(authProvider *auth.RegistryAuthProvider, ...) AuthSource + type Credentials struct + Secret string + Username string + type Opts struct + Auth AuthSource + ContentStore content.Store + Hosts docker.RegistryHosts + LeaseManager leases.Manager + type PullOpts struct + LayerLimit *int + Platform ocispecs.Platform + ResolveMode ResolveMode + type PulledImage struct + ConfigDesc ocispecs.Descriptor + Layers []ocispecs.Descriptor + ManifestDesc ocispecs.Descriptor + Nonlayers []ocispecs.Descriptor + Ref string + func (img *PulledImage) Release(ctx context.Context) error + type PushOpts struct + ByDigest bool + Insecure bool + type PushedImage struct + Provider content.InfoReaderProvider + RootDesc ocispecs.Descriptor + SourceAnnotations map[digest.Digest]map[string]string + type ResolveImageConfigOpts struct + Platform *ocispecs.Platform + ResolveMode ResolveMode + type ResolveMode int + const ResolveModeDefault + const ResolveModeForcePull + type Resolver struct + func New(opts Opts) *Resolver + func (r *Resolver) Close() error + func (r *Resolver) Pull(ctx context.Context, ref string, opts PullOpts) (_ *PulledImage, rerr error) + func (r *Resolver) PushImage(ctx context.Context, img *PushedImage, ref string, opts PushOpts) (rerr error) + func (r *Resolver) ResolveImageConfig(ctx context.Context, ref string, opts ResolveImageConfigOpts) (_ string, _ digest.Digest, _ []byte, rerr error)