remote

package
v0.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 25 Imported by: 3

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

type CredentialFunc = func(string) (string, string, error)

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`.

type HostFunc added in v0.2.0

type HostFunc = func(ref string) (CredentialFunc, bool, error)

HostFunc accepts host url parameter and returns with CredentialFunc, insecure and error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL