Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCredentials ¶
func GetCredentials(server string) (*credentials.Credentials, error)
GetCredentials is the main function to call when credentials are required, it will switch between the config or the credentials store to fetch the requested credentials
Types ¶
type Client ¶
type Client interface {
CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error)
StartContainer(id string, hostConfig *docker.HostConfig) error
Logs(opts docker.LogsOptions) error
ListImages(opts docker.ListImagesOptions) ([]docker.APIImages, error)
ListContainers(opts docker.ListContainersOptions) ([]docker.APIContainers, error)
CreateExec(opts docker.CreateExecOptions) (*docker.Exec, error)
StartExecNonBlocking(id string, opts docker.StartExecOptions) (docker.CloseWaiter, error)
StartExec(id string, opts docker.StartExecOptions) error
InspectContainer(id string) (*docker.Container, error)
AttachToContainerNonBlocking(opts docker.AttachToContainerOptions) (docker.CloseWaiter, error)
AttachToContainer(opts docker.AttachToContainerOptions) error
RemoveContainer(opts docker.RemoveContainerOptions) error
PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error
InspectExec(id string) (*docker.ExecInspect, error)
Version() (*docker.Env, error)
Info() (*docker.DockerInfo, error)
}
type SecretJSON ¶
type SecretJSON struct {
CredsStore string `json:"credsStore"`
// TODO: Implement credsHelper per registry
CredsHelper map[string]string `json:"credsHelper"`
}
SecretJSON represents the credsStore entry in a docker config
Click to show internal directories.
Click to hide internal directories.