Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
Encode returns the json marshaled, base64 encoded credential string that can be passed to the docker registry authentication header.
func Marshal ¶
func Marshal(list []*engine.DockerAuth) ([]byte, error)
Marshal marshals the DockerAuth credentials to a .docker/config.json file.
func Parse ¶
func Parse(r io.Reader) ([]*engine.DockerAuth, error)
Parse parses the registry credential from the reader.
func ParseFile ¶
func ParseFile(filepath string) ([]*engine.DockerAuth, error)
ParseFile parses the registry credential file.
func ParseString ¶
func ParseString(s string) ([]*engine.DockerAuth, error)
ParseString parses the registry credential file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.