cri

package
v0.0.0-...-984f6f0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuntimeEndpoint = "unix:///var/run/containerd/containerd.sock"
)

Variables

This section is empty.

Functions

func GetNsPath

func GetNsPath(jsonString string) (string, error)

Types

type CRI

type CRI interface {
	ListPods(ctx context.Context, filter *criv1.PodSandboxFilter) ([]*criv1.PodSandbox, error)
	ListContainers(ctx context.Context, filter *criv1.ContainerFilter) ([]*criv1.Container, error)
	GetContainerInfo(ctx context.Context, containerID string) (*ContainerInfo, error)
}

func New

func New(ctx context.Context) (CRI, error)

type ContainerInfo

type ContainerInfo struct {
	PiD       string
	NsPath    string
	PodName   string
	Namespace string
}

Jump to

Keyboard shortcuts

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