deploy

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL