Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultNS = "harvester-system" KubevirtCR = "kubevirt" )
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register( ctx context.Context, pdcClient v1beta1gen.PCIDeviceClaimController, pdClient v1beta1gen.PCIDeviceController, ) error
Types ¶
type Controller ¶
type Controller struct {
PCIDeviceClaims v1beta1gen.PCIDeviceClaimController
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (Handler) OnRemove ¶ added in v0.2.1
func (h Handler) OnRemove(name string, pdc *v1beta1.PCIDeviceClaim) (*v1beta1.PCIDeviceClaim, error)
When a PCIDeviceClaim is removed, we need to unbind the device from the vfio-pci driver
Click to show internal directories.
Click to hide internal directories.