validation

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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

Validate validates whether VM described in VirtualMachineImport can be imported

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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