manager

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: 19 Imported by: 0

Documentation

Overview

Package manager implements kubelet runtime API

Index

Constants

View Source
const (

	// OSContainerAnnotationKey specifying this pod will run by OS container runtime.
	OSContainerAnnotationKey = "runtime.frakti.alpha.kubernetes.io/OSContainer"
	// OSContainerAnnotationTrue specifying this pod will run by OS container runtime.
	OSContainerAnnotationTrue = "true"
	// UnikernelAnnotationKey specifying this pod will run by unikernel runtime.
	UnikernelAnnotationKey = "runtime.frakti.alpha.kubernetes.io/Unikernel"
	// UnikernelAnnotationTrue specifying this pod will run by unikernel runtime.
	UnikernelAnnotationTrue = "true"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FraktiManager

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

FraktiManager serves the kubelet runtime gRPC api which will be consumed by kubelet

func NewFraktiManager

func NewFraktiManager(
	hyperRuntimeService runtime.RuntimeService,
	hyperImageService runtime.ImageManagerService,
	streamingServer streaming.Server,
	privilegedRuntimeService runtime.RuntimeService,
	privilegedImageService runtime.ImageManagerService,
	unikernelRuntimeService runtime.RuntimeService,
	unikernelImageService runtime.ImageManagerService,
) (*FraktiManager, error)

NewFraktiManager creates a new FraktiManager

func (*FraktiManager) Attach

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

func (*FraktiManager) ContainerStats

ContainerStats returns information of the container filesystem.

func (*FraktiManager) ContainerStatus

ContainerStatus returns the container status.

func (*FraktiManager) CreateContainer

CreateContainer creates a new container in specified PodSandbox

func (*FraktiManager) Exec

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

func (*FraktiManager) ExecSync

ExecSync runs a command in a container synchronously.

func (*FraktiManager) ImageFsInfo

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

func (*FraktiManager) ImageStatus

ImageStatus returns the status of the image.

func (*FraktiManager) ListContainerStats

ListContainerStats returns stats of all running containers

func (*FraktiManager) ListContainers

ListContainers lists all containers by filters.

func (*FraktiManager) ListImages

ListImages lists existing images.

func (*FraktiManager) ListPodSandbox

ListPodSandbox returns a list of SandBox.

func (*FraktiManager) PodSandboxStatus

PodSandboxStatus returns the Status of the PodSandbox.

func (*FraktiManager) PortForward

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

func (*FraktiManager) PullImage

PullImage pulls a image with authentication config.

func (*FraktiManager) RemoveContainer

RemoveContainer removes the container.

func (*FraktiManager) RemoveImage

RemoveImage removes the image.

func (*FraktiManager) RemovePodSandbox

RemovePodSandbox deletes the sandbox.

func (*FraktiManager) ReopenContainerLog added in v1.10.0

func (*FraktiManager) RunPodSandbox

RunPodSandbox creates and start a hyper Pod.

func (*FraktiManager) Serve

func (s *FraktiManager) Serve(addr string) error

Serve starts gRPC server at unix://addr

func (*FraktiManager) StartContainer

StartContainer starts the container.

func (*FraktiManager) Status

Status returns the status of the runtime.

func (*FraktiManager) StopContainer

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

func (*FraktiManager) StopPodSandbox

StopPodSandbox stops the sandbox.

func (*FraktiManager) UpdateContainerResources

UpdateContainerResources updates ContainerConfig of the container

func (*FraktiManager) UpdateRuntimeConfig

UpdateRuntimeConfig updates runtime configuration if specified

func (*FraktiManager) 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