Documentation
¶
Index ¶
- func CreateContainer(containerName string, opts dto.CreateContainerRequest, ...) error
- func DeleteContainer(containerName string, signal syscall.Signal, shallRemoveVolume bool) error
- func GetContainerdVersion() (*containerd.Version, error)
- func GetHostNetworkSpecOpts() []oci.SpecOpts
- func SendSignal(containerName string, signal syscall.Signal) error
- func StartContainer(containerName string, stdoutPath string, stderrPath string) (containerd.Task, error)
- func TryPullAndGetImage(ctx context.Context, client *containerd.Client, imageName string) (containerd.Image, error)
- type ContainerInfo
- type DBContainerEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContainer ¶
func DeleteContainer ¶
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 ¶
GetHostNetworkSpecOpts returns OCI spec options for host network mode
func StartContainer ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.