docker

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCredentialsFromBytes

func ReadCredentialsFromBytes(contents []byte) (cfg map[string]ServerCredentials, err error)

Types

type Credentials

type Credentials struct {
	Auths map[string]ServerCredentials `json:"auths"`
}

Credentials represents Docker credentials which are typically stored in `~/.docker/config.json`.

type ServerCredentials

type ServerCredentials struct {
	Auth     string `json:"auth"`
	Username string `json:"username"`
	Password string `json:"password"`
}

ServerCredentials represent credentials used to login to a Docker server.

Jump to

Keyboard shortcuts

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