runtime

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0, BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCRIRuntimeService added in v0.8.0

func GetCRIRuntimeService(runtimeEndpoint string) (criapis.RuntimeService, error)

GetCRIRuntimeService get the CRI runtime service.

func GetImageClient

func GetImageClient(imageEndpoint string) (pb.ImageServiceClient, *grpc.ClientConn, error)

GetImageClient get the runtime client

func GetRuntimeClient

func GetRuntimeClient(runtimeEndpoint string) (pb.RuntimeServiceClient, *grpc.ClientConn, error)

GetRuntimeClient get the runtime client

func ListContainers

func ListContainers(runtimeClient pb.RuntimeServiceClient, opts ListOptions) ([]*pb.Container, error)

ListContainers sends a ListContainerRequest to the server, and parses the returned ListContainerResponse. copied from kubernetes-sigs/cri-tools/cmd/crictl/container.go

func ListPodSandboxes added in v0.4.0

func ListPodSandboxes(client pb.RuntimeServiceClient, opts ListOptions) ([]*pb.PodSandbox, error)

ListPodSandboxes sends a ListPodSandboxRequest to the server, and parses the returned ListPodSandboxResponse. copied from kubernetes-sigs/cri-tools/cmd/crictl/sandbox.go

func RemoveContainer

func RemoveContainer(client pb.RuntimeServiceClient, ContainerId string) error

RemoveContainer sends a RemoveContainerRequest to the server, and parses the returned RemoveContainerResponse. copied from kubernetes-sigs/cri-tools/cmd/crictl/container.go

func UpdateContainerResources

func UpdateContainerResources(client pb.RuntimeServiceClient, containerId string, opts UpdateOptions) error

UpdateContainerResources sends an UpdateContainerResourcesRequest to the server, and parses the returned UpdateContainerResourcesResponse. copied from kubernetes-sigs/cri-tools/cmd/crictl/container.go

Types

type ListOptions

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

copied from kubernetes-sigs/cri-tools/cmd/crictl/container.go

type UpdateOptions

type UpdateOptions struct {
	// (Windows only) Number of CPUs available to the container.
	CPUCount int64
	// (Windows only) Portion of CPU cycles specified as a percentage * 100.
	CPUMaximum int64
	// CPU CFS (Completely Fair Scheduler) period. Default: 0 (not specified).
	CPUPeriod int64
	// CPU CFS (Completely Fair Scheduler) quota. Default: 0 (not specified).
	CPUQuota int64
	// CPU shares (relative weight vs. other containers). Default: 0 (not specified).
	CPUShares int64
	// Memory limit in bytes. Default: 0 (not specified).
	MemoryLimitInBytes int64
	// OOMScoreAdj adjusts the oom-killer score. Default: 0 (not specified).
	OomScoreAdj int64
	// CpusetCpus constrains the allowed set of logical CPUs. Default: "" (not specified).
	CpusetCpus string
	// CpusetMems constrains the allowed set of memory nodes. Default: "" (not specified).
	CpusetMems string
}

copied from kubernetes-sigs/cri-tools/cmd/crictl/container.go

Jump to

Keyboard shortcuts

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