auth

package
v0.0.0-...-e99cc0b Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(username, password string) string

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.

Jump to

Keyboard shortcuts

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