device_manager

package
v0.7.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KVMPath = "/dev/kvm"
	KVMName = "kvm"
	TunPath = "/dev/net/tun"
	TunName = "tun"
)
View Source
const (
	DeviceNamespace = "devices.kubevirt.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceController

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

func NewDeviceController

func NewDeviceController(host string, maxDevices int) *DeviceController

func (*DeviceController) Run

func (c *DeviceController) Run(stop chan struct{}) error

type GenericDevicePlugin

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

func NewGenericDevicePlugin

func NewGenericDevicePlugin(deviceName string, devicePath string, maxDevices int) *GenericDevicePlugin

func (*GenericDevicePlugin) Allocate

func (*GenericDevicePlugin) GetDevicePluginOptions

func (dpi *GenericDevicePlugin) GetDevicePluginOptions(ctx context.Context, e *pluginapi.Empty) (*pluginapi.DevicePluginOptions, error)

func (*GenericDevicePlugin) ListAndWatch

func (*GenericDevicePlugin) PreStartContainer

func (*GenericDevicePlugin) Register

func (dpi *GenericDevicePlugin) Register() error

Register registers the device plugin for the given resourceName with Kubelet.

func (*GenericDevicePlugin) Start

func (dpi *GenericDevicePlugin) Start(stop chan struct{}) error

Start starts the gRPC server of the device plugin

func (*GenericDevicePlugin) Stop

func (dpi *GenericDevicePlugin) Stop() error

Stop stops the gRPC server

Directories

Path Synopsis
deviceplugin
v1alpha
Package deviceplugin is a generated protocol buffer package.
Package deviceplugin is a generated protocol buffer package.
v1beta1
Package v1beta1 is a generated protocol buffer package.
Package v1beta1 is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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