Documentation
¶
Index ¶
- type DockerClient
- func (this *DockerClient) ContainerExists(ctx context.Context, id string, _ *bool) (exists bool, err error)
- func (this *DockerClient) CreateContainer(ctx context.Context, name string, refStr string, env map[string]string, ...) (id string, err error)
- func (this *DockerClient) Disconnect() (err error)
- func (this *DockerClient) GetContainerStatus(ctx context.Context, id string, _ *bool) (status model.InstanceStatus, err error)
- func (this *DockerClient) GetContainerStatuses(ctx context.Context) (statuses map[string]model.InstanceStatus, err error)
- func (this *DockerClient) RemoveContainer(ctx context.Context, id string) (err error)
- func (this *DockerClient) UpdateContainer(ctx context.Context, id string, name string, image string, ...) (newId string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerClient ¶
type DockerClient struct {
// contains filtered or unexported fields
}
func (*DockerClient) ContainerExists ¶
func (*DockerClient) CreateContainer ¶
func (this *DockerClient) CreateContainer(ctx context.Context, name string, refStr string, env map[string]string, restart bool, _ string, _ string, _ map[string]string) (id string, err error)
The baggage reaches a local container through the BAGGAGE environment variable only: docker has no pod labels for a log aggregation to read, and this mode is local development.
func (*DockerClient) Disconnect ¶
func (this *DockerClient) Disconnect() (err error)
func (*DockerClient) GetContainerStatus ¶ added in v0.1.0
func (this *DockerClient) GetContainerStatus(ctx context.Context, id string, _ *bool) (status model.InstanceStatus, err error)
func (*DockerClient) GetContainerStatuses ¶ added in v0.1.0
func (this *DockerClient) GetContainerStatuses(ctx context.Context) (statuses map[string]model.InstanceStatus, err error)
func (*DockerClient) RemoveContainer ¶
func (this *DockerClient) RemoveContainer(ctx context.Context, id string) (err error)
Click to show internal directories.
Click to hide internal directories.