deployment

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package deployment applies desired workload versions to the local container runtime and handles rollback when deployment fails.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

type Deployer interface {
	PruneDanglingImages(ctx context.Context, targetLabels map[string]string) error
	CurrentRuntimeState(ctx context.Context, workload config.Workload) (RuntimeState, error)
	Deploy(ctx context.Context, workload config.Workload, meta git_provider.DeploymentMetadata, stateMgr state.Manager) error
}

func NewDockerDeployer

func NewDockerDeployer(
	workload config.Workload,
	notifier notifier.Notifier,
	log *slog.Logger,
) Deployer

type MetadataApplicationStrategy

type MetadataApplicationStrategy interface {
	ApplyDeploymentMetadata(ctx context.Context, workload config.Workload, meta git_provider.DeploymentMetadata) error
}

type RuntimeState

type RuntimeState struct {
	Running                 bool
	ContainerManifestDigest string
	Reason                  string
}

RuntimeState is the reconciler's view of the currently running workload.

Jump to

Keyboard shortcuts

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