Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator interface { ValidateVM(vm *ovirtsdk.Vm) []validators.ValidationFailure ValidateDiskStatus(diskAttachment ovirtsdk.DiskAttachment) bool ValidateDiskAttachments(diskAttachments []*ovirtsdk.DiskAttachment) []validators.ValidationFailure ValidateNics(nics []*ovirtsdk.Nic) []validators.ValidationFailure ValidateNetworkMapping(nics []*ovirtsdk.Nic, mapping *[]v2vv1alpha1.ResourceMappingItem, crNamespace string) []validators.ValidationFailure ValidateStorageMapping( attachments []*ovirtsdk.DiskAttachment, storageMapping *[]v2vv1alpha1.ResourceMappingItem, diskMappings *[]v2vv1alpha1.ResourceMappingItem, ) []validators.ValidationFailure }
Validator validates different properties of a VM
type VirtualMachineImportValidator ¶
type VirtualMachineImportValidator struct {
Validator Validator
}
VirtualMachineImportValidator validates VirtualMachineImport object
func NewVirtualMachineImportValidator ¶
func NewVirtualMachineImportValidator(validator Validator) VirtualMachineImportValidator
NewVirtualMachineImportValidator creates ready-to-use NewVirtualMachineImportValidator
func (*VirtualMachineImportValidator) Validate ¶
func (validator *VirtualMachineImportValidator) Validate(vm *ovirtsdk.Vm, vmiCrName *types.NamespacedName, mappings *v2vv1alpha1.OvirtMappings) []v2vv1alpha1.VirtualMachineImportCondition
Validate validates whether VM described in VirtualMachineImport can be imported
Click to show internal directories.
Click to hide internal directories.