manager

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VirtletManager

type VirtletManager struct {
	StreamServer *stream.Server
	// contains filtered or unexported fields
}

VirtletManager serves grpc CRI requests translating them to libvirt calls using additional data stored in metadata store. Network part also uses tapmanager to prepare and cleanup network environment for VM.

func NewVirtletManager

func NewVirtletManager(libvirtURI, rawDevices, imageTranslationConfigsDir string, imageStore image.Store, metadataStore metadata.Store, fdManager tapmanager.FDManager) (*VirtletManager, error)

NewVirtletManager prepares libvirt connection, volumes component, using them to prepare virtualization tool. It calls garbage collection for virtualization tool and image store, then it registers newly prepared VirtletManager instance as runtime and image service through a grpc server.

func (*VirtletManager) Attach

Attach calls streamer server to implement Attach functionality from CRI.

func (*VirtletManager) ContainerStats added in v0.8.0

ContainerStats is a placeholder for an unimplemented CRI method.

func (*VirtletManager) ContainerStatus

ContainerStatus method implements ContainerStatus from CRI.

func (*VirtletManager) CreateContainer

CreateContainer method implements CreateContainer from CRI.

func (*VirtletManager) Exec

Exec is a placeholder for an unimplemented CRI method.

func (*VirtletManager) ExecSync

ExecSync is a placeholder for an unimplemented CRI method.

func (*VirtletManager) ImageFsInfo added in v0.8.0

ImageFsInfo is a placeholder an unimplemented CRI method.

func (*VirtletManager) ImageStatus

ImageStatus method implements ImageStatus from CRI.

func (*VirtletManager) ListContainerStats added in v0.8.0

ListContainerStats is a placeholder for an unimplemented CRI method.

func (*VirtletManager) ListContainers

ListContainers method implements ListContainers from CRI.

func (*VirtletManager) ListImages

ListImages method implements ListImages from CRI.

func (*VirtletManager) ListPodSandbox

ListPodSandbox method implements ListPodSandbox from CRI.

func (*VirtletManager) PodSandboxStatus

PodSandboxStatus method implements PodSandboxStatus from CRI.

func (*VirtletManager) PortForward

PortForward calls streamer server to implement PortForward functionality from CRI.

func (*VirtletManager) PullImage

PullImage method implements PullImage from CRI.

func (*VirtletManager) RemoveContainer

RemoveContainer method implements RemoveContainer from CRI.

func (*VirtletManager) RemoveImage

RemoveImage method implements RemoveImage from CRI.

func (*VirtletManager) RemovePodSandbox

RemovePodSandbox method implements RemovePodSandbox from CRI.

func (*VirtletManager) RunPodSandbox

RunPodSandbox implements RunPodSandbox method of CRI.

func (*VirtletManager) Serve

func (v *VirtletManager) Serve(addr string) error

Serve prepares a listener on unix socket, than it passes that listener to main loop of grpc server which handles CRI calls.

func (*VirtletManager) StartContainer

StartContainer method implements StartContainer from CRI.

func (*VirtletManager) Status

Status method implements Status from CRI for both types of service, Image and Runtime.

func (*VirtletManager) Stop added in v0.9.0

func (v *VirtletManager) Stop()

Stop halts the manager.

func (*VirtletManager) StopContainer

StopContainer method implements StopContainer from CRI.

func (*VirtletManager) StopPodSandbox

StopPodSandbox implements StopPodSandbox method of CRI.

func (*VirtletManager) UpdateContainerResources added in v1.0.0

UpdateContainerResources is a placeholder for an unimplemented CRI method.

func (*VirtletManager) UpdateRuntimeConfig

UpdateRuntimeConfig is a placeholder for an unimplemented CRI method.

func (*VirtletManager) Version

Version implements Version method of CRI.

Jump to

Keyboard shortcuts

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