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 ¶
func (dpi *KVMDevicePlugin) Allocate(ctx context.Context, r *pluginapi.AllocateRequest) (*pluginapi.AllocateResponse, error)
Allocate allocates a set of devices to be used by container runtime environment.
func (*KVMDevicePlugin) ListAndWatch ¶
func (dpi *KVMDevicePlugin) ListAndWatch(e *pluginapi.Empty, s pluginapi.DevicePlugin_ListAndWatchServer) error
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 ¶
Click to show internal directories.
Click to hide internal directories.