Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupported = errors.New("operation not supported by deployment client")
ErrNotSupported is returned by deployment clients that cannot provide the requested information.
Functions ¶
This section is empty.
Types ¶
type DeploymentClient ¶
type DeploymentClient interface {
CreateContainer(name string, image string, env map[string]string, restart bool, userid string, importTypeId string) (id string, err error)
UpdateContainer(id string, name string, image string, env map[string]string, restart bool, userid string, importTypeId string, existingRestart bool) (newId string, err error)
RemoveContainer(id string) (err error)
ContainerExists(id string, restart *bool) (exists bool, err error)
// GetContainerStatus returns the current status of a single container.
GetContainerStatus(id string, restart *bool) (status model.InstanceStatus, err error)
// GetContainerStatuses returns the status of all known containers, keyed by container id.
GetContainerStatuses() (statuses map[string]model.InstanceStatus, err error)
Disconnect() (err error)
}
Click to show internal directories.
Click to hide internal directories.