cri

package
v1.11.4-beta.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFoundErr = fmt.Errorf("not found")
)

Functions

func NewClient

func NewClient(ctx context.Context, endpoints []string) (*client, error)

Types

type Client

type Client interface {
	Inspect(ctx context.Context, containerID string) (*ContainerStatus, error)
	Close() error
}

type ContainerStatus

type ContainerStatus struct {
	Status *pb.ContainerStatus
	Info   ContainerStatusInfo
}

type ContainerStatusInfo

type ContainerStatusInfo struct {
	RuntimeSpec *ContainerStatusInfoRuntimeSpec `json:"runtimeSpec,omitempty"`
}

type ContainerStatusInfoRuntimeSpec

type ContainerStatusInfoRuntimeSpec struct {
	Linux ContainerStatusInfoRuntimeSpecLinux `json:"linux"`
}

type ContainerStatusInfoRuntimeSpecLinux

type ContainerStatusInfoRuntimeSpecLinux struct {
	Resources ContainerStatusInfoRuntimeSpecLinuxResources `json:"resources"`
}

type ContainerStatusInfoRuntimeSpecLinuxResources

type ContainerStatusInfoRuntimeSpecLinuxResources struct {
	CPU ContainerStatusInfoRuntimeSpecLinuxResourcesCPU `json:"cpu"`
}

type ContainerStatusInfoRuntimeSpecLinuxResourcesCPU

type ContainerStatusInfoRuntimeSpecLinuxResourcesCPU struct {
	Shares int    `json:"shares"`
	Quota  int    `json:"quota"`
	Period int    `json:"period"`
	Cpus   string `json:"cpus"`
}

Jump to

Keyboard shortcuts

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