Documentation
¶
Index ¶
- Variables
- type AuthSource
- type Credentials
- type Opts
- type PullOpts
- type PulledImage
- type PushOpts
- type PushedImage
- type ResolveImageConfigOpts
- type ResolveMode
- type 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)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCredentialsNotFound = errors.New("registry credentials not found")
Functions ¶
This section is empty.
Types ¶
type AuthSource ¶
type AuthSource interface {
Credentials(ctx context.Context, host string) (Credentials, error)
}
func NewSessionAuthSource ¶
func NewSessionAuthSource( authProvider *auth.RegistryAuthProvider, getMainClientConn func(context.Context) (*grpc.ClientConn, error), ) AuthSource
type Credentials ¶
type Opts ¶
type Opts struct {
Hosts docker.RegistryHosts
Auth AuthSource
ContentStore content.Store
LeaseManager leases.Manager
}
type PullOpts ¶
type PullOpts struct {
Platform ocispecs.Platform
ResolveMode ResolveMode
LayerLimit *int
}
type PulledImage ¶
type PulledImage struct {
Ref string
ManifestDesc ocispecs.Descriptor
ConfigDesc ocispecs.Descriptor
Layers []ocispecs.Descriptor
Nonlayers []ocispecs.Descriptor
// contains filtered or unexported fields
}
type PushedImage ¶
type PushedImage struct {
RootDesc ocispecs.Descriptor
Provider content.InfoReaderProvider
SourceAnnotations map[digest.Digest]map[string]string
}
type ResolveImageConfigOpts ¶
type ResolveImageConfigOpts struct {
Platform *ocispecs.Platform
ResolveMode ResolveMode
}
type ResolveMode ¶
type ResolveMode int
const ( ResolveModeDefault ResolveMode = iota ResolveModeForcePull )
Click to show internal directories.
Click to hide internal directories.