deployment

package
v0.1.0-M4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0, EPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DeploymentManagerServiceLocalID local ID for the deployment manager service.
	DeploymentManagerServiceLocalID = "container-management.service.local.v1.service-deployment-manager"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {

	// Deploy initially deploys or updates containers described in configured local path
	Deploy(ctx context.Context) error

	// Dispose stops running deployments
	Dispose(ctx context.Context) error
}

Manager represents the container deployment manager abstraction

type Mode

type Mode string

Mode indicates available deployment modes

const (
	// InitialDeployMode means that the deployment service will deploy new containers only on initial start of container management
	InitialDeployMode Mode = "init"
	// UpdateMode means that the deployment service will deploy new containers and/or update existing containers on each start of container management
	UpdateMode Mode = "update"
)

type Opt

type Opt func(options *opts) error

Opt provides deployment manager options

func WithCtrPath

func WithCtrPath(ctrPath string) Opt

WithCtrPath sets the path to container descriptors

func WithMetaPath

func WithMetaPath(metaPath string) Opt

WithMetaPath configures the directory to be used for storage by the service

func WithMode

func WithMode(mode string) Opt

WithMode sets the mode of deployment service

Jump to

Keyboard shortcuts

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