dockerkeychain

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDockerKeychain

func NewDockerKeychain(ctx context.Context, apiReader client.Reader, pullSecret corev1.Secret) (authn.Keychain, error)

Types

type DockerKeychain

type DockerKeychain struct {
	// contains filtered or unexported fields
}

func (*DockerKeychain) Resolve

func (keychain *DockerKeychain) Resolve(target authn.Resource) (authn.Authenticator, error)

Resolve implements Keychain interface by interpreting the docker config file. It is based on the 'defaultKeychain' type from the go-gontainerregistry library https://github.com/google/go-containerregistry/blob/27a6ad6/pkg/authn/keychain.go DockerKeychain implementation can read a docker config file of any name and from any directory.

Jump to

Keyboard shortcuts

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