Documentation ¶
Index ¶
- type DataVolumeCredentials
- type VmwareMapper
- func (r *VmwareMapper) CreateEmptyVM(vmName *string) *kubevirtv1.VirtualMachine
- func (r *VmwareMapper) MapDataVolumes(targetVMName *string) (map[string]cdiv1.DataVolume, error)
- func (r *VmwareMapper) MapDisk(vmSpec *kubevirtv1.VirtualMachine, dv cdiv1.DataVolume)
- func (r *VmwareMapper) MapVM(targetVmName *string, vmSpec *kubevirtv1.VirtualMachine) (*kubevirtv1.VirtualMachine, error)
- func (r *VmwareMapper) ResolveVMName(targetVMName *string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataVolumeCredentials ¶
type DataVolumeCredentials struct { URL string Username string Password string Thumbprint string SecretName string }
DataVolumeCredentials defines the credentials required for creating a DataVolume with a VDDK source.
type VmwareMapper ¶
type VmwareMapper struct {
// contains filtered or unexported fields
}
VmwareMapper is a struct that holds attributes needed to map a vSphere VM to Kubevirt
func NewVmwareMapper ¶
func NewVmwareMapper(vm *object.VirtualMachine, vmProperties *mo.VirtualMachine, hostProperties *mo.HostSystem, credentials *DataVolumeCredentials, mappings *v1beta1.VmwareMappings, namespace string, osFinder vos.OSFinder) *VmwareMapper
NewVmwareMapper creates a new VmwareMapper struct
func (*VmwareMapper) CreateEmptyVM ¶
func (r *VmwareMapper) CreateEmptyVM(vmName *string) *kubevirtv1.VirtualMachine
CreateEmptyVM creates an empty Kubevirt VM
func (*VmwareMapper) MapDataVolumes ¶
func (r *VmwareMapper) MapDataVolumes(targetVMName *string) (map[string]cdiv1.DataVolume, error)
MapDataVolumes maps the VMware disks to CDI DataVolumes
func (*VmwareMapper) MapDisk ¶
func (r *VmwareMapper) MapDisk(vmSpec *kubevirtv1.VirtualMachine, dv cdiv1.DataVolume)
MapDisk maps a disk from the VMware VM to the Kubevirt VM.
func (*VmwareMapper) MapVM ¶
func (r *VmwareMapper) MapVM(targetVmName *string, vmSpec *kubevirtv1.VirtualMachine) (*kubevirtv1.VirtualMachine, error)
MapVM maps resources from a VMware VM to a Kubevirt VM
func (*VmwareMapper) ResolveVMName ¶
func (r *VmwareMapper) ResolveVMName(targetVMName *string) *string
ResolveVMName resolves the target VM name
Click to show internal directories.
Click to hide internal directories.