credentials

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloudAuthRegistry = &cloudauth.Registry{}

Functions

func Extract

func Extract(host string, data []byte) (string, string, error)

func LoadCloudProviders

func LoadCloudProviders(log logr.Logger) error

LoadCloudProviders adds all cloud authentication providers to the CloudAuthRegistry.

func Persist

func Persist(ctx context.Context, cfg *rest.Config, credentials []hephv1.RegistryCredentials) (string, error)

func Verify added in v0.1.10

func Verify(ctx context.Context, configDir string) error

Types

type AuthConfigs

type AuthConfigs map[string]types.AuthConfig

AuthConfigs is a map of registry urls to authentication credentials.

type DockerConfigJSON

type DockerConfigJSON struct {
	Auths AuthConfigs `json:"auths"`
}

DockerConfigJSON models the structure of .dockerconfigjson data.

Directories

Path Synopsis
acr
ecr
gcr

Jump to

Keyboard shortcuts

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