Documentation ¶
Index ¶
Constants ¶
const (
DefaultRegistry = "https://index.docker.io/v1/"
)
DefaultRegistry is the registry for that authentication data is used
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a docker client
func NewClient ¶
NewClient initializes a new docker client. The following environment variables are respected: DOCKER_TLS_VERIFY DOCKER_CERT_PATH DOCKER_HOST to set the url to the docker server. DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest. The Auth configuration is read from the user's config.json file for an Upload() operation. The following files are checked in the order listed: - $DOCKER_CONFIG/config.json if DOCKER_CONFIG set in the environment, - $HOME/.docker/config.json - $HOME/.dockercfg If reading auth data from the config fails, a message is logged via the debugLogFn function but no error is returned. An Upload() operation would be done without authentication.