Documentation
¶
Index ¶
- Variables
- type AuthSource
- type Credentials
- type NetworkConfig
- type Opts
- type PullOpts
- type PulledImage
- type PushOpts
- type PushedImage
- type RegistryProtocol
- type RegistryTransport
- 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 NetworkConfig ¶ added in v0.21.6
NetworkConfig carries the Dagger DNS view used by registry operations for a container with service bindings.
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
Network NetworkConfig
RegistryTransport RegistryTransport
}
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 PushOpts ¶
type PushOpts struct {
RegistryTransport RegistryTransport
ByDigest bool
Network NetworkConfig
}
type PushedImage ¶
type PushedImage struct {
RootDesc ocispecs.Descriptor
Provider content.InfoReaderProvider
SourceAnnotations map[digest.Digest]map[string]string
}
type RegistryProtocol ¶
type RegistryProtocol string
const ( RegistryProtocolHTTPS RegistryProtocol = "https" RegistryProtocolHTTP RegistryProtocol = "http" )
type RegistryTransport ¶
type RegistryTransport struct {
Protocol RegistryProtocol
InsecureSkipTLSVerify bool
}
func (RegistryTransport) CacheKey ¶
func (transport RegistryTransport) CacheKey() string
type ResolveImageConfigOpts ¶
type ResolveImageConfigOpts struct {
Platform *ocispecs.Platform
ResolveMode ResolveMode
Network NetworkConfig
RegistryTransport RegistryTransport
}
type ResolveMode ¶
type ResolveMode int
const ( ResolveModeDefault ResolveMode = iota ResolveModeForcePull )
Click to show internal directories.
Click to hide internal directories.