kvm

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KVMPath = "/dev/kvm"
	KVMName = "kvm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KVMDevicePlugin

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

KVMDevicePlugin is an implementation of DevicePlugin that is capable of exposing /dev/kvm to containers.

func (*KVMDevicePlugin) Allocate

Allocate allocates a set of devices to be used by container runtime environment.

func (*KVMDevicePlugin) ListAndWatch

ListAndWatch sends gRPC stream of devices.

type KVMLister

type KVMLister struct{}

KVMLister is the object responsible for discovering initial pool of devices and their allocation.

func (KVMLister) Discover

func (kvm KVMLister) Discover(pluginListCh chan dpm.PluginNameList)

Discovery discovers all KVM devices within the system.

func (KVMLister) GetResourceNamespace

func (kvm KVMLister) GetResourceNamespace() string

func (KVMLister) NewPlugin

func (kvm KVMLister) NewPlugin(deviceID string) dpm.PluginInterface

NewPlugin initializes new device plugin with KVM specific attributes.

Jump to

Keyboard shortcuts

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