Documentation ¶
Index ¶
- type Docker
- func (d Docker) AllContainers(ctx context.Context) ([]types.Container, *errors.E)
- func (d Docker) Close() error
- func (d Docker) ContainerLogs(ctx context.Context, id string) (Logs, *errors.E)
- func (d Docker) Exec(ctx context.Context, containerId string, cmd []string, detach bool) *errors.E
- func (d Docker) FindContainers(ctx context.Context, keyValuePairs ...filters.KeyValuePair) ([]types.Container, *errors.E)
- func (d Docker) RemoveContainer(ctx context.Context, id string) *errors.E
- func (d Docker) RunContainer(ctx context.Context, image string, cmd []string, env []string, ...) (string, *errors.E)
- func (d Docker) StartContainer(ctx context.Context, id string) *errors.E
- func (d Docker) StopContainer(ctx context.Context, id string) *errors.E
- func (d Docker) WaitForContainer(ctx context.Context, id string) *errors.E
- type DockerClient
- type Logs
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) AllContainers ¶
func (Docker) ContainerLogs ¶
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(ctx context.Context, id string) *errors.E AllContainers(ctx context.Context) ([]types.Container, *errors.E) FindContainers(ctx context.Context, keyValuePairs ...filters.KeyValuePair) ([]types.Container, *errors.E) StartContainer(ctx context.Context, id string) *errors.E RemoveContainer(ctx context.Context, id string) *errors.E ContainerLogs(ctx context.Context, id string) (Logs, *errors.E) RunContainer(ctx context.Context, image string, cmd []string, env []string, volumes []string, labels map[string]string) (string, *errors.E) WaitForContainer(ctx context.Context, id string) *errors.E Exec(ctx context.Context, containerId string, cmd []string, detach bool) *errors.E }
Click to show internal directories.
Click to hide internal directories.