Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶ added in v0.2.7
func Fetch(ctx context.Context, cacheRef string, desc ocispec.Descriptor, host HostFunc, plainHTTP bool) (content.ReaderAt, error)
Modified from containerd project, copyright The containerd Authors. https://github.com/containerd/containerd/remotes/docker/fetcher.go
func NewResolver ¶
func NewResolver(insecure, plainHTTP bool, credFunc CredentialFunc) remotes.Resolver
Types ¶
type CredentialFunc ¶ added in v0.2.0
CredentialFunc accepts host url parameter and returns with username, password and error.
func NewDockerConfigCredFunc ¶
func NewDockerConfigCredFunc() CredentialFunc
NewDockerConfigCredFunc attempts to read docker auth config file `$DOCKER_CONFIG/config.json` to communicate with remote registry, `$DOCKER_CONFIG` defaults to `~/.docker`.
Click to show internal directories.
Click to hide internal directories.