dockercreds

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

View Source
const (
	SecretFilePathEnv = "CREDENTIAL_PROVIDER_SECRET_PATH"
)

Variables

This section is empty.

Functions

func NewCachedKeychainFactory

func NewCachedKeychainFactory(keychainFactory registry.KeychainFactory) registry.KeychainFactory

func NewVolumeSecretKeychain

func NewVolumeSecretKeychain() (authn.Keychain, error)

func VerifyReadAccess

func VerifyReadAccess(keychain authn.Keychain, tag string) error

func VerifyWriteAccess

func VerifyWriteAccess(keychain authn.Keychain, tag string) error

Types

type DockerCreds

type DockerCreds map[string]authn.AuthConfig

func ParseBasicAuthSecrets

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

func ParseDockerConfigSecret

func ParseDockerConfigSecret(dir 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