dockerconfigresolver

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(refHostname string, optFuncs ...Opt) (remotes.Resolver, error)

New instantiates a resolver using $DOCKER_CONFIG/config.json .

$DOCKER_CONFIG defaults to "~/.docker".

refHostname is like "docker.io".

Types

type AuthCreds added in v0.7.0

type AuthCreds func(string) (string, string, error)

AuthCreds is for docker.WithAuthCreds

func NewAuthCreds added in v0.7.0

func NewAuthCreds(refHostname string) (AuthCreds, error)

NewAuthCreds returns AuthCreds that uses $DOCKER_CONFIG/config.json . AuthCreds can be nil.

type Opt added in v0.7.0

type Opt func(*opts)

Opt for New

func WithPlainHTTP added in v0.7.0

func WithPlainHTTP(b bool) Opt

WithPlainHTTP enables insecure plain HTTP

func WithSkipVerifyCerts added in v0.7.0

func WithSkipVerifyCerts(b bool) Opt

WithSkipVerifyCerts skips verifying TLS certs

Jump to

Keyboard shortcuts

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