Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVMImportOwnerReference ¶ added in v0.0.2
func NewVMImportOwnerReference(typeMeta metav1.TypeMeta, objectMeta metav1.ObjectMeta) metav1.OwnerReference
NewVMImportOwnerReference create a new Ownerrefercen based on passed parameters
Types ¶
type OwnerReferenceManager ¶
type OwnerReferenceManager struct {
// contains filtered or unexported fields
}
OwnerReferenceManager is struct that hold reference manager attributes
func NewOwnerReferenceManager ¶
func NewOwnerReferenceManager(client client.Client) OwnerReferenceManager
NewOwnerReferenceManager create owner reference manager
func (*OwnerReferenceManager) AddOwnerReference ¶
func (m *OwnerReferenceManager) AddOwnerReference(vm *kubevirtv1.VirtualMachine, dv *cdiv1.DataVolume) error
AddOwnerReference add owner refence of the Virtual Machine to the DataVolume
func (*OwnerReferenceManager) PurgeOwnerReferences ¶
func (m *OwnerReferenceManager) PurgeOwnerReferences(vmName types.NamespacedName) []error
PurgeOwnerReferences cleans the owner references of the Virtual Machine.
Click to show internal directories.
Click to hide internal directories.