Documentation ¶
Index ¶
- type Docker
- func (d Docker) AllContainers() ([]types.Container, error)
- func (d Docker) Close() error
- func (d Docker) ContainerLogs(id string) (string, error)
- func (d Docker) Exec(containerId string, cmd []string, detach bool) error
- func (d Docker) FindContainers(keyValuePairs ...filters.KeyValuePair) ([]types.Container, error)
- func (d Docker) RemoveContainer(id string) error
- func (d Docker) RunContainer(image string, cmd []string, env []string, volumes []string, ...) (string, error)
- func (d Docker) StartContainer(id string) error
- func (d Docker) StopContainer(id string) error
- func (d Docker) WaitForContainer(ctx contexts.Context, id string) error
- type DockerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (Docker) FindContainers ¶ added in v0.0.16
func (Docker) RemoveContainer ¶
func (Docker) RunContainer ¶
func (Docker) StartContainer ¶
func (Docker) StopContainer ¶
type DockerClient ¶ added in v0.0.8
type DockerClient interface { Close() error StopContainer(id string) error AllContainers() ([]types.Container, error) FindContainers(keyValuePairs ...filters.KeyValuePair) ([]types.Container, error) StartContainer(id string) error RemoveContainer(id string) error ContainerLogs(id string) (string, error) RunContainer(image string, cmd []string, env []string, volumes []string, labels map[string]string) (string, error) WaitForContainer(ctx contexts.Context, id string) error Exec(containerId string, cmd []string, detach bool) error }
func Client ¶
func Client(socket string) (DockerClient, error)
Click to show internal directories.
Click to hide internal directories.