service

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnikernelRuntime

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

func NewUnikernelRuntimeService

func NewUnikernelRuntimeService(cniNetDir, cniPluginDir, fraktiRoot string, defaultCPU, defaultMem int32, enableLog bool) (*UnikernelRuntime, error)

func (*UnikernelRuntime) Attach

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

func (*UnikernelRuntime) ContainerStats

func (h *UnikernelRuntime) ContainerStats(containerID string) (*kubeapi.ContainerStats, error)

ContainerStats returns stats of the container. If the container does not exist, the call returns an error.

func (*UnikernelRuntime) ContainerStatus

func (u *UnikernelRuntime) ContainerStatus(rawContainerID string) (*kubeapi.ContainerStatus, error)

ContainerStatus returns the container status.

func (*UnikernelRuntime) CreateContainer

func (u *UnikernelRuntime) CreateContainer(podSandboxID string, config *kubeapi.ContainerConfig, sandboxConfig *kubeapi.PodSandboxConfig) (string, error)

CreateContainer creates a new container in specified PodSandbox

func (*UnikernelRuntime) Exec

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

func (*UnikernelRuntime) ExecSync

func (u *UnikernelRuntime) ExecSync(rawContainerID string, cmd []string, timeout time.Duration) (stdout, stderr []byte, err error)

ExecSync runs a command in a container synchronously.

func (*UnikernelRuntime) ImageFsInfo

func (u *UnikernelRuntime) ImageFsInfo() ([]*kubeapi.FilesystemUsage, error)

ImageFsInfo returns information of the filesystem that is used to store images.

func (*UnikernelRuntime) ImageStatus

func (u *UnikernelRuntime) ImageStatus(image *kubeapi.ImageSpec) (*kubeapi.Image, error)

ImageStatus returns the status of the image.

func (*UnikernelRuntime) ListContainerStats

func (h *UnikernelRuntime) ListContainerStats(filter *kubeapi.ContainerStatsFilter) (
	[]*kubeapi.ContainerStats, error)

ListContainerStats returns stats of all running containers.

func (*UnikernelRuntime) ListContainers

func (u *UnikernelRuntime) ListContainers(filter *kubeapi.ContainerFilter) ([]*kubeapi.Container, error)

ListContainers lists all containers by filters.

func (*UnikernelRuntime) ListImages

func (u *UnikernelRuntime) ListImages(filter *kubeapi.ImageFilter) ([]*kubeapi.Image, error)

ListImages lists existing images.

func (*UnikernelRuntime) ListPodSandbox

func (u *UnikernelRuntime) ListPodSandbox(filter *kubeapi.PodSandboxFilter) ([]*kubeapi.PodSandbox, error)

ListPodSandbox returns a list of Sandbox.

func (*UnikernelRuntime) PodSandboxStatus

func (u *UnikernelRuntime) PodSandboxStatus(podSandboxID string) (*kubeapi.PodSandboxStatus, error)

PodSandboxStatus returns the Status of the PodSandbox.

func (*UnikernelRuntime) PortForward

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

func (*UnikernelRuntime) PullImage

func (u *UnikernelRuntime) PullImage(image *kubeapi.ImageSpec, authConfig *kubeapi.AuthConfig) (string, error)

PullImage pulls the image with authentication config.

func (*UnikernelRuntime) RemoveContainer

func (u *UnikernelRuntime) RemoveContainer(rawContainerID string) error

RemoveContainer removes the container. If the container is running, the container should be force removed.

func (*UnikernelRuntime) RemoveImage

func (u *UnikernelRuntime) RemoveImage(image *kubeapi.ImageSpec) error

RemoveImage removes the image.

func (*UnikernelRuntime) RemovePodSandbox

func (u *UnikernelRuntime) RemovePodSandbox(podSandboxID string) error

RemovePodSandbox deletes the sandbox. If there are any running containers in the sandbox, they should be force deleted.

func (*UnikernelRuntime) ReopenContainerLog added in v1.10.0

func (h *UnikernelRuntime) ReopenContainerLog(ContainerID string) error

ReopenContainerLog asks runtime to reopen the stdout/stderr log file for the container.

func (*UnikernelRuntime) RunPodSandbox

func (u *UnikernelRuntime) RunPodSandbox(config *kubeapi.PodSandboxConfig, runtimeHandler string) (string, error)

RunPodSandbox creates and starts a pod-level sandbox.

func (*UnikernelRuntime) ServiceName

func (u *UnikernelRuntime) ServiceName() string

func (*UnikernelRuntime) StartContainer

func (u *UnikernelRuntime) StartContainer(rawContainerID string) error

StartContainer starts the container.

func (*UnikernelRuntime) Status

func (h *UnikernelRuntime) Status() (*kubeapi.RuntimeStatus, error)

Status returns the status of the runtime.

func (*UnikernelRuntime) StopContainer

func (u *UnikernelRuntime) StopContainer(rawContainerID string, timeout int64) error

StopContainer stops a running container with a grace period (i.e. timeout).

func (*UnikernelRuntime) StopPodSandbox

func (u *UnikernelRuntime) StopPodSandbox(podSandboxID string) error

StopPodSandbox stops the sandbox. If there are any running containers in the sandbox, they should be force terminated.

func (*UnikernelRuntime) UpdateContainerResources

func (h *UnikernelRuntime) UpdateContainerResources(
	rawContainerID string,
	config *kubeapi.LinuxContainerResources,
) error

UpdateContainerResources updates the resource constraints for the container.

func (*UnikernelRuntime) UpdateRuntimeConfig

func (h *UnikernelRuntime) UpdateRuntimeConfig(runtimeConfig *kubeapi.RuntimeConfig) error

UpdateRuntimeConfig updates runtime configuration if specified

func (*UnikernelRuntime) Version

func (u *UnikernelRuntime) Version(kubeApiVersion string) (*kubeapi.VersionResponse, error)

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