docker

package
v0.0.0-...-2bbe97e Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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