cri

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const InfoKey = "info"

InfoKey if the key for PodSandboxStatusInfo in the Info map of the PodSandboxStatusResponse cri-o: https://github.com/cri-o/cri-o/blob/v1.29.2/server/sandbox_status.go#L114 containerd: https://github.com/containerd/containerd/blob/v1.7.14/pkg/cri/server/sandbox_status.go#L215 containerd v2: https://github.com/containerd/containerd/blob/v2.0.0-beta.2/pkg/cri/server/sandbox_status.go#L183

Variables

This section is empty.

Functions

This section is empty.

Types

type PodSandboxStatusInfo added in v0.3.4

type PodSandboxStatusInfo struct {
	RuntimeSpec *runtimespec.Spec `json:"runtimeSpec"`
}

PodSandboxStatusInfo represents the value in the Info map of the PodSandboxStatusResponse with InfoKey as key cri-o: https://github.com/cri-o/cri-o/blob/v1.29.2/server/sandbox_status.go#L103 containerd: https://github.com/containerd/containerd/blob/v1.7.14/pkg/cri/server/sandbox_status.go#L139 containerd v2: https://github.com/containerd/containerd/blob/v2.0.0-beta.2/pkg/cri/types/sandbox_info.go#L44

type Runtime added in v0.3.4

type Runtime struct {
	Client cri.RuntimeServiceClient
}

Runtime represents a connection to the CRI-O runtime

func NewRuntime added in v0.3.4

func NewRuntime(socketPath string, timeout time.Duration) (*Runtime, error)

New returns a connection to the CRI runtime

func (*Runtime) NetworkNamespace added in v0.3.4

func (r *Runtime) NetworkNamespace(ctx context.Context, podUID string) (string, error)

func (*Runtime) PodSandboxID added in v0.3.4

func (r *Runtime) PodSandboxID(ctx context.Context, podUID string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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