dockercreds

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

View Source
const (
	SecretFilePathEnv = "CREDENTIAL_PROVIDER_SECRET_PATH"
)

Variables

This section is empty.

Functions

func HasReadAccess added in v0.0.5

func HasReadAccess(keychain authn.Keychain, tag string) (bool, error)

func HasWriteAccess added in v0.0.4

func HasWriteAccess(keychain authn.Keychain, tag string) (bool, error)

func NewVolumeSecretKeychain

func NewVolumeSecretKeychain() (authn.Keychain, error)

Types

type DockerCreds

type DockerCreds map[string]authn.AuthConfig

func ParseDockerPullSecrets added in v0.0.4

func ParseDockerPullSecrets(path string) (DockerCreds, error)

func ParseMountedAnnotatedSecrets added in v0.0.5

func ParseMountedAnnotatedSecrets(volumeName string, secrets []string) (DockerCreds, error)

func (DockerCreds) Append

func (c DockerCreds) Append(a DockerCreds) (DockerCreds, error)

func (DockerCreds) Resolve

func (c DockerCreds) Resolve(reg authn.Resource) (authn.Authenticator, error)

func (DockerCreds) Save

func (c DockerCreds) Save(path string) error

type RegistryMatcher

type RegistryMatcher struct {
	Registry string
}

func (RegistryMatcher) Match

func (m RegistryMatcher) Match(reg string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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