container_manager

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanKubeconfigFiles

func CleanKubeconfigFiles(config config.Config) (*int, error)

func ExpandHomeFolder

func ExpandHomeFolder(folder string) (*string, error)

func PrepareKubeconfig

func PrepareKubeconfig(kubeconfigPath *string, config config.Config) (*string, error)

Types

type ContainerManager

type ContainerManager interface {
	Run(
		image string,
		scenarioName string,
		containerRuntimeUri string,
		env map[string]string,
		cache bool,
		volumeMounts map[string]string,
		localKubeconfigPath string,
		kubeconfigMountPath string,

	) (*string, *context.Context, error)

	RunAndStream(
		image string,
		scenarioName string,
		containerRuntimeUri string,
		env map[string]string,
		cache bool,
		volumeMounts map[string]string,
		localKubeconfigPath string,
		kubeconfigMountPath string,
	) (*string, error)

	CleanContainers() (*int, error)

	GetContainerRuntimeSocket() (*string, error)
}

type Environment

type Environment int64
const (
	Podman Environment = iota
	Docker
)

func DetectContainerManager

func DetectContainerManager() Environment

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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