Documentation ¶
Overview ¶
Package docker provides primitives for working with Docker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServerFromDockerAuthKey ¶
GetServerFromDockerAuthKey returns the registry server for the specified Docker auth key.
In ~/.docker/config.json auth keys can be specified as URLs or host names. For the sake of comparison we need to normalize the registry identifier.
func GetServerFromImageRef ¶
GetServerFromImageRef returns registry server from the specified imageRef.
Types ¶
type Auth ¶
type Auth struct { Auth BasicAuth `json:"auth,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
Auth represent credentials used to login to a Docker registry.
Click to show internal directories.
Click to hide internal directories.