cri

package
v0.0.0-...-e507620 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LibvirtKubeletService

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

func NewService

func NewService(kubeletAddr string, libvirtURI string) (*LibvirtKubeletService, error)

func (*LibvirtKubeletService) Attach

Attach prepares a streaming endpoint to attach to a running container.

func (*LibvirtKubeletService) ContainerStatus

ContainerStatus returns status of the container.

func (*LibvirtKubeletService) CreateContainer

CreateContainer creates a new container in specified PodSandbox

func (*LibvirtKubeletService) Exec

Exec prepares a streaming endpoint to execute a command in the container.

func (*LibvirtKubeletService) ExecSync

ExecSync runs a command in a container synchronously.

func (*LibvirtKubeletService) ImageStatus

ImageStatus returns the status of the image. If the image is not present, returns nil.

func (*LibvirtKubeletService) ListContainers

ListContainers lists all containers by filters.

func (*LibvirtKubeletService) ListImages

ListImages lists existing images.

func (*LibvirtKubeletService) ListPodSandbox

ListPodSandbox returns a list of PodSandboxes.

func (*LibvirtKubeletService) PodSandboxStatus

PodSandboxStatus returns the status of the PodSandbox.

func (*LibvirtKubeletService) PortForward

PortForward prepares a streaming endpoint to forward ports from a PodSandbox.

func (*LibvirtKubeletService) PullImage

PullImage pulls an image with authentication config.

func (*LibvirtKubeletService) RemoveContainer

RemoveContainer removes the container. If the container is running, the container must be forcibly removed. This call is idempotent, and must not return an error if the container has already been removed.

func (*LibvirtKubeletService) RemoveImage

RemoveImage removes the image. This call is idempotent, and must not return an error if the image has already been removed.

func (*LibvirtKubeletService) RemovePodSandbox

RemovePodSandbox removes the sandbox. If there are any running containers in the sandbox, they must be forcibly terminated and removed. This call is idempotent, and must not return an error if the sandbox has already been removed.

func (*LibvirtKubeletService) Run

func (s *LibvirtKubeletService) Run() error

func (*LibvirtKubeletService) RunPodSandbox

RunPodSandbox creates and starts a pod-level sandbox. Runtimes must ensure the sandbox is in the ready state on success.

func (*LibvirtKubeletService) StartContainer

StartContainer starts the container.

func (*LibvirtKubeletService) Status

Status returns the status of the runtime.

func (*LibvirtKubeletService) StopContainer

StopContainer stops a running container with a grace period (i.e., timeout). This call is idempotent, and must not return an error if the container has already been stopped. TODO: what must the runtime do after the grace period is reached?

func (*LibvirtKubeletService) StopPodSandbox

StopPodSandbox stops any running process that is part of the sandbox and reclaims network resources (e.g., IP addresses) allocated to the sandbox. If there are any running containers in the sandbox, they must be forcibly terminated. This call is idempotent, and must not return an error if all relevant resources have already been reclaimed. kubelet will call StopPodSandbox at least once before calling RemovePodSandbox. It will also attempt to reclaim resources eagerly, as soon as a sandbox is not needed. Hence, multiple StopPodSandbox calls are expected.

func (*LibvirtKubeletService) UpdateRuntimeConfig

UpdateRuntimeConfig updates the runtime configuration based on the given request.

func (*LibvirtKubeletService) Version

Version returns the runtime name, runtime version, and runtime API version.

Jump to

Keyboard shortcuts

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