Documentation ¶
Index ¶
- func IsModuleLoaded(searchedModule string) bool
- func LoadModule(module string) error
- func UnloadModule(module string) error
- type DeviceStruct
- type PCILister
- type VFIODevicePlugin
- func (dpi *VFIODevicePlugin) Allocate(ctx context.Context, r *pluginapi.AllocateRequest) (*pluginapi.AllocateResponse, error)
- func (VFIODevicePlugin) GetDevicePluginOptions(context.Context, *pluginapi.Empty) (*pluginapi.DevicePluginOptions, error)
- func (dpi *VFIODevicePlugin) ListAndWatch(e *pluginapi.Empty, s pluginapi.DevicePlugin_ListAndWatchServer) error
- func (VFIODevicePlugin) PreStartContainer(context.Context, *pluginapi.PreStartContainerRequest) (*pluginapi.PreStartContainerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsModuleLoaded ¶
IsModuleLoaded tells whether given kernel module is loaded or not.
func LoadModule ¶
LoadModule loads a kernel module (via modprobe).
func UnloadModule ¶
UnloadModule unloads a kernel module (via rmmod).
Types ¶
type DeviceStruct ¶
type DeviceStruct struct {
// contains filtered or unexported fields
}
type PCILister ¶
type PCILister struct{}
PCILister is the object responsible for discovering initial pool of devices and their allocation.
func (PCILister) Discover ¶
func (pci PCILister) Discover(pluginListCh chan dpm.PluginNameList)
Discover discovers all PCI devices within the system.
func (PCILister) GetResourceNamespace ¶
type VFIODevicePlugin ¶
type VFIODevicePlugin struct {
// contains filtered or unexported fields
}
VFIODevicePlugin represents device plugin implementation with VFIO specific attributes.
func (*VFIODevicePlugin) Allocate ¶
func (dpi *VFIODevicePlugin) Allocate(ctx context.Context, r *pluginapi.AllocateRequest) (*pluginapi.AllocateResponse, error)
Allocate allocates a set of devices to be used by container runtime environment.
func (VFIODevicePlugin) GetDevicePluginOptions ¶
func (VFIODevicePlugin) GetDevicePluginOptions(context.Context, *pluginapi.Empty) (*pluginapi.DevicePluginOptions, error)
GetDevicePluginOptions returns options to be communicated with Device Manager
func (*VFIODevicePlugin) ListAndWatch ¶
func (dpi *VFIODevicePlugin) ListAndWatch(e *pluginapi.Empty, s pluginapi.DevicePlugin_ListAndWatchServer) error
ListAndWatch lists devices.
func (VFIODevicePlugin) PreStartContainer ¶
func (VFIODevicePlugin) PreStartContainer(context.Context, *pluginapi.PreStartContainerRequest) (*pluginapi.PreStartContainerResponse, error)
PreStartContainer is called, if indicated by Device Plugin during registeration phase, before each container start. Device plugin can run device specific operations such as reseting the device before making devices available to the container