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(ctx context.Context, name string, image string, env map[string]string, restart bool, userid string, importTypeId string, baggage map[string]string) (id string, err error)
UpdateContainer(ctx context.Context, id string, name string, image string, env map[string]string, restart bool, userid string, importTypeId string, existingRestart bool, baggage map[string]string) (newId string, err error)
RemoveContainer(ctx context.Context, id string) (err error)
ContainerExists(ctx context.Context, id string, restart *bool) (exists bool, err error)
// GetContainerStatus returns the current status of a single container.
GetContainerStatus(ctx context.Context, id string, restart *bool) (status model.InstanceStatus, err error)
// GetContainerStatuses returns the status of all known containers, keyed by container id.
GetContainerStatuses(ctx context.Context) (statuses map[string]model.InstanceStatus, err error)
Disconnect() (err error)
}
A baggage parameter is the OpenTelemetry context of the instance, which the drivers turn into labels on the workload. The container itself receives the same context as an environment variable, which the controller puts into env.
Click to show internal directories.
Click to hide internal directories.