Documentation
¶
Index ¶
- Constants
- func CreateContainer(ctx context.Context, params CreateRequest) (string, error)
- func CreateExec(ctx context.Context, containerID string, cmd []string) (string, error)
- func PullImage(ctx context.Context, image string) error
- func RemoveContainer(ctx context.Context, id string) error
- func RunExec(ctx context.Context, containerID string, cmd []string) (string, error)
- func StartContainer(ctx context.Context, id string) error
- func StartExec(ctx context.Context, execID string) (string, error)
- func TerminateByID(ctx context.Context, id string) error
- type Container
- type CreateRequest
- type DockerExecResponse
Constants ¶
View Source
const ( // LabelManagedBy is the label used to identify containers managed by dbctl LabelManagedBy = "managed_by" // LabelDBctl is the value of the managed_by label LabelDBctl = "dbctl" )
View Source
const ( // LabelType is the label used to identify the type of database LabelType = "dbctl_type" // LabelCustom is the label used to identify a database LabelCustom = "dbctl_custom" )
Variables ¶
This section is empty.
Functions ¶
func CreateContainer ¶ added in v0.3.0
func CreateContainer(ctx context.Context, params CreateRequest) (string, error)
CreateContainer creates a container
func CreateExec ¶ added in v0.5.0
func RemoveContainer ¶ added in v0.3.0
RemoveContainer removes a container by id
func StartContainer ¶ added in v0.3.0
StartContainer starts a container by id
Types ¶
type Container ¶ added in v0.1.9
type CreateRequest ¶ added in v0.3.0
type DockerExecResponse ¶ added in v0.5.0
type DockerExecResponse struct {
ID string `json:"Id"`
}
Click to show internal directories.
Click to hide internal directories.