containers

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainer

func CreateContainer(containerName string, opts dto.CreateContainerRequest, extraSpecOpts []oci.SpecOpts) error

func DeleteContainer

func DeleteContainer(containerName string, signal syscall.Signal, shallRemoveVolume bool) error

func GetContainerdVersion

func GetContainerdVersion() (*containerd.Version, error)

GetContainerdVersion verifies that containerd version is accessible. Returns the version information if successful, or nil if connection fails.

func GetHostNetworkSpecOpts

func GetHostNetworkSpecOpts() []oci.SpecOpts

GetHostNetworkSpecOpts returns OCI spec options for host network mode

func SendSignal

func SendSignal(containerName string, signal syscall.Signal) error

func StartContainer

func StartContainer(containerName string, stdoutPath string, stderrPath string) (containerd.Task, error)

func TryPullAndGetImage

func TryPullAndGetImage(ctx context.Context, client *containerd.Client, imageName string) (containerd.Image, error)

Types

type ContainerInfo

type ContainerInfo struct {
	Container  containers.Container `json:"container"`
	Status     string               `json:"status"`
	DBEntry    DBContainerEntry     `json:"db_entry"`
	VolumeInfo volumes.VolumeInfo   `json:"volume_info"`
}

type DBContainerEntry

type DBContainerEntry struct {
}

TODO remove

Jump to

Keyboard shortcuts

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