dockerconfig

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Auth string `json:"auth,omitempty"`
}

Credential represents credential entry.

type File

type File struct {
	Auths map[string]Credential `json:"auths,omitempty"`
}

File is a partial representation of the full docker configuration file, containing a map => Credential which contains credentials for registry authentication.

func LoadCredentials

func LoadCredentials(cfg credentialGetter) (File, error)

LoadCredentials takes in a docker configuration file and obtains all the credentials for it and returns a valid structure to be saved as a docker file to be sent to ce-aws environments.

Jump to

Keyboard shortcuts

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