Documentation ¶
Overview ¶
This code has been taken from containerd repo to avoid large library import
Handler for containerd containers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArgContainerdEndpoint = flag.String("containerd", "/run/containerd/containerd.sock", "containerd endpoint")
View Source
var ArgContainerdNamespace = flag.String("containerd-namespace", "k8s.io", "containerd namespace")
Functions ¶
func ContainerNameToContainerdID ¶
Returns the containerd ID from the full container name.
Types ¶
type ContainerdClient ¶ added in v0.37.0
type ContainerdClient interface { LoadContainer(ctx context.Context, id string) (*containers.Container, error) TaskPid(ctx context.Context, id string) (uint32, error) Version(ctx context.Context) (string, error) SnapshotMounts(ctx context.Context, snapshotter, key string) ([]*types.Mount, error) ContainerStatus(ctx context.Context, id string) (*criapi.ContainerStatus, error) ContainerStats(ctx context.Context, id string) (*criapi.ContainerStats, error) }
func Client ¶
func Client(address, namespace string) (ContainerdClient, error)
Client creates a containerd client
Click to show internal directories.
Click to hide internal directories.