Documentation
¶
Index ¶
- type Docker
- func (d Docker) ContainerCreate(ctx context.Context, image string, port int) (string, error)
- func (d Docker) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
- func (d Docker) ContainerStart(ctx context.Context, imageID string) error
- func (d Docker) ContainerStop(ctx context.Context, imageID string) error
- func (d Docker) ContainersList(ctx context.Context) ([]types.Container, error)
- func (d Docker) ImageBuild(ctx context.Context, dst, name string) (string, error)
- type ErrorDetail
- type ErrorLine
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
}
Docker is a docker image builder.
func (Docker) ContainerCreate ¶ added in v0.0.2
ContainerCreate creates Docker container.
func (Docker) ContainerInspect ¶ added in v0.1.0
func (d Docker) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)
ContainerInspect inspects Docker container.
func (Docker) ContainerStart ¶ added in v0.0.2
ContainerStart starts Docker container.
func (Docker) ContainerStop ¶ added in v0.0.2
ContainerStop stops Docker container.
func (Docker) ContainersList ¶ added in v0.1.0
ContainersList lists all Docker containers.
type ErrorDetail ¶
type ErrorDetail struct {
Message string `json:"message"`
}
type ErrorLine ¶
type ErrorLine struct {
Error string `json:"error"`
ErrorDetail ErrorDetail `json:"errorDetail"`
}
Click to show internal directories.
Click to hide internal directories.