Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMapsManager ¶ added in v0.2.1
type ConfigMapsManager interface { FindFor(types.NamespacedName) (*corev1.ConfigMap, error) CreateFor(*corev1.ConfigMap, types.NamespacedName) error DeleteFor(types.NamespacedName) error }
ConfigMapsManager defines operations on config maps
type DataVolumesManager ¶ added in v0.2.1
type DataVolumesManager interface { FindFor(types.NamespacedName) ([]*cdiv1.DataVolume, error) DeleteFor(types.NamespacedName) error }
DataVolumesManager defines operations on datavolumes
type JobsManager ¶ added in v0.2.2
type JobsManager interface { FindFor(types.NamespacedName) (*batchv1.Job, error) CreateFor(*batchv1.Job, types.NamespacedName) error DeleteFor(types.NamespacedName) error }
JobsManager defines operations on Jobs
type Mapper ¶
type Mapper interface { CreateEmptyVM(vmName *string) *kubevirtv1.VirtualMachine ResolveVMName(targetVMName *string) *string MapVM(targetVMName *string, vmSpec *kubevirtv1.VirtualMachine) (*kubevirtv1.VirtualMachine, error) MapDataVolumes(targetVMName *string) (map[string]cdiv1.DataVolume, error) MapDisk(vmSpec *kubevirtv1.VirtualMachine, dv cdiv1.DataVolume) }
Mapper is interface to be used for mapping external VM to kubevirt VM
type Provider ¶
type Provider interface { Init(*corev1.Secret, *v2vv1.VirtualMachineImport) error TestConnection() error Close() LoadVM(v2vv1.VirtualMachineImportSourceSpec) error PrepareResourceMapping(*v2vv1.ResourceMappingSpec, v2vv1.VirtualMachineImportSourceSpec) Validate() ([]v2vv1.VirtualMachineImportCondition, error) ValidateDiskStatus(string) (bool, error) StopVM(*v2vv1.VirtualMachineImport, rclient.Client) error CreateMapper() (Mapper, error) GetVMStatus() (VMStatus, error) GetVMName() (string, error) StartVM() error CleanUp(bool, *v2vv1.VirtualMachineImport, rclient.Client) error FindTemplate() (*oapiv1.Template, error) ProcessTemplate(*oapiv1.Template, *string, string) (*kubevirtv1.VirtualMachine, error) NeedsGuestConversion() bool GetGuestConversionJob() (*batchv1.Job, error) LaunchGuestConversionJob(*kubevirtv1.VirtualMachine) (*batchv1.Job, error) }
Provider defines the methods required by source providers for importing a VM
type SecretsManager ¶ added in v0.2.1
type SecretsManager interface { FindFor(types.NamespacedName) (*corev1.Secret, error) CreateFor(*corev1.Secret, types.NamespacedName) error DeleteFor(types.NamespacedName) error }
SecretsManager defines operations on secrets
type VirtualMachineManager ¶ added in v0.2.1
type VirtualMachineManager interface { FindFor(types.NamespacedName) (*kubevirtv1.VirtualMachine, error) DeleteFor(types.NamespacedName) error }
VirtualMachineManager defines operations on datavolumes
Click to show internal directories.
Click to hide internal directories.