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, finder *otemplates.TemplateFinder) []validators.ValidationFailure ValidateDiskStatus(diskAttachment ovirtsdk.DiskAttachment) bool ValidateDiskAttachments(diskAttachments []*ovirtsdk.DiskAttachment) []validators.ValidationFailure ValidateNics(nics []*ovirtsdk.Nic) []validators.ValidationFailure ValidateNetworkMapping(nics []*ovirtsdk.Nic, mapping *[]v2vv1.NetworkResourceMappingItem, crNamespace string) []validators.ValidationFailure ValidateStorageMapping( attachments []*ovirtsdk.DiskAttachment, storageMapping *[]v2vv1.StorageResourceMappingItem, diskMappings *[]v2vv1.StorageResourceMappingItem, ) []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 *v2vv1.OvirtMappings, finder *otemplates.TemplateFinder) []v2vv1.VirtualMachineImportCondition
Validate validates whether VM described in VirtualMachineImport can be imported
Click to show internal directories.
Click to hide internal directories.