Documentation ¶
Index ¶
- Variables
- func NewRegistryConfig(m map[string]config.RegistryConfig) docker.RegistryHosts
- type Pool
- type Resolver
- func (r *Resolver) Fetcher(ctx context.Context, ref string) (remotes.Fetcher, error)
- func (r *Resolver) Resolve(ctx context.Context, ref string) (string, ocispec.Descriptor, error)
- func (r *Resolver) WithImageStore(is images.Store, mode source.ResolveMode) *Resolver
- func (r *Resolver) WithSession(s session.Group) *Resolver
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPool = NewPool()
DefaultPool is the default shared resolver pool instance
Functions ¶
func NewRegistryConfig ¶ added in v0.7.0
func NewRegistryConfig(m map[string]config.RegistryConfig) docker.RegistryHosts
NewRegistryConfig converts registry config to docker.RegistryHosts callback
Types ¶
type Pool ¶ added in v0.8.0
type Pool struct {
// contains filtered or unexported fields
}
Pool is a cache of recently used resolvers
func NewPool ¶ added in v0.8.0
func NewPool() *Pool
NewPool creates a new pool for caching resolvers
type Resolver ¶ added in v0.8.0
Resolver is a wrapper around remotes.Resolver
func (*Resolver) Fetcher ¶ added in v0.8.0
Fetcher returns a new fetcher for the provided reference.
func (*Resolver) Resolve ¶ added in v0.8.0
Resolve attempts to resolve the reference into a name and descriptor.
func (*Resolver) WithImageStore ¶ added in v0.8.0
WithImageStore returns new resolver that can also resolve from local images store
Click to show internal directories.
Click to hide internal directories.