Documentation ¶
Index ¶
- func GetImageClient(imageEndpoint string, imageEndpointIsSet bool) (pb.ImageServiceClient, *grpc.ClientConn, error)
- func GetRuntimeClient(runtimeEndpoint string, runtimeEndpointIsSet bool) (pb.RuntimeServiceClient, *grpc.ClientConn, error)
- func ListContainers(runtimeClient pb.RuntimeServiceClient, opts ListOptions) ([]*pb.Container, error)
- func ListPodSandboxes(client pb.RuntimeServiceClient, opts ListOptions) ([]*pb.PodSandbox, error)
- func RemoveContainer(client pb.RuntimeServiceClient, ContainerId string) error
- func UpdateContainerResources(client pb.RuntimeServiceClient, containerId string, opts UpdateOptions) error
- type ListOptions
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageClient ¶
func GetImageClient(imageEndpoint string, imageEndpointIsSet bool) (pb.ImageServiceClient, *grpc.ClientConn, error)
GetImageClient get the runtime client
func GetRuntimeClient ¶
func GetRuntimeClient(runtimeEndpoint string, runtimeEndpointIsSet bool) (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 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