ownerreferences

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVMImportControllerReference added in v0.2.2

func NewVMImportControllerReference(typeMeta metav1.TypeMeta, objectMeta metav1.ObjectMeta) metav1.OwnerReference

NewVMImportControllerReference create a new OwnerReference based on passed parameters

func NewVMImportOwnerReference added in v0.0.2

func NewVMImportOwnerReference(typeMeta metav1.TypeMeta, objectMeta metav1.ObjectMeta) metav1.OwnerReference

NewVMImportOwnerReference create a new OwnerReference 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.

Jump to

Keyboard shortcuts

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