container

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ManagedPathType = "path"

Variables

This section is empty.

Functions

func BuildPortEnvVars added in v0.25.0

func BuildPortEnvVars(template *model.Template) []string

func CreateManagedPath added in v0.25.0

func CreateManagedPath(path string) (string, error)

func DeleteManagedPath added in v0.25.0

func DeleteManagedPath(path string) error

func RemoveExistingPortEnvVars added in v0.25.0

func RemoveExistingPortEnvVars(env []string) []string

RemoveExistingPortEnvVars removes any existing KNOT_HTTP_PORT, KNOT_HTTPS_PORT, or KNOT_TCP_PORT entries from the given environment slice.

func ResolveManagedPath added in v0.25.0

func ResolveManagedPath(path string) (string, error)

func ResolveManagedPathBinds added in v0.25.0

func ResolveManagedPathBinds(binds []string, volumeData model.VolumeDataMap) []string

func ValidateManagedVolumeBinds added in v0.25.0

func ValidateManagedVolumeBinds(binds []string, volumeData model.VolumeDataMap) error

Types

type ContainerManager

type ContainerManager interface {
	// space management
	CreateSpaceJob(user *model.User, template *model.Template, space *model.Space, variables map[string]interface{}) error
	DeleteSpaceJob(space *model.Space, onStopped func()) error
	CreateSpaceVolumes(user *model.User, template *model.Template, space *model.Space, variables map[string]interface{}) error
	DeleteSpaceVolumes(space *model.Space) error
	CleanupSpaceArtifacts(space *model.Space) error
	StopSpaceRuntime(space *model.Space) error

	// volume management
	CreateVolume(vol *model.Volume, variables map[string]interface{}) error
	DeleteVolume(vol *model.Volume, variables map[string]interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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