credentials

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractBasicAuthForHost added in v0.4.2

func ExtractBasicAuthForHost(authConfigs AuthConfigs, host string) (string, string, error)

ExtractBasicAuthForHost will extract the basic auth info for a registry host from an AuthConfigs instance

Types

type AuthConfigs

type AuthConfigs map[string]types.AuthConfig

AuthConfigs is a map of registry urls to authentication credentials.

func ExtractAuthConfigs added in v0.4.2

func ExtractAuthConfigs(input []byte) (authConfigs AuthConfigs, err error)

ExtractAuthConfigs will return the Docker AuthConfigs from a JSON-representation of a Docker config file.

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