containerd

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = 2 * time.Second

	LabelK8sContainerName         = "io.kubernetes.container.name"
	LabelK8sContainerdKind        = "io.cri-containerd.kind"
	LabelK8sContainerdKindSandbox = "sandbox"
)

Variables

This section is empty.

Functions

func NewContainerdClient

func NewContainerdClient(socketPath string, protocol string, config *containerutilsTypes.ExtraConfig) (runtimeclient.ContainerRuntimeClient, error)

Types

type ContainerdClient

type ContainerdClient struct {
	// contains filtered or unexported fields
}

func (*ContainerdClient) Close added in v0.18.0

func (c *ContainerdClient) Close() error

func (*ContainerdClient) GetContainer added in v0.18.0

func (c *ContainerdClient) GetContainer(containerID string) (*runtimeclient.ContainerData, error)

func (*ContainerdClient) GetContainerDetails added in v0.18.0

func (c *ContainerdClient) GetContainerDetails(containerID string) (*runtimeclient.ContainerDetailsData, error)

func (*ContainerdClient) GetContainers added in v0.18.0

func (c *ContainerdClient) GetContainers() ([]*runtimeclient.ContainerData, error)

Jump to

Keyboard shortcuts

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