credentials

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractDockerAuth

func ExtractDockerAuth(input []byte, host string) (string, string, error)

ExtractDockerAuth will return a username/password combination from a JSON-representation of a Docker config file.

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 .dockerconfigfile data.

Jump to

Keyboard shortcuts

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