Documentation ¶
Index ¶
Constants ¶
View Source
const ( VirtualDiskCreateOperation = "Create" VirtualDiskDeleteOperation = "Delete" )
VirtualDisk Operations Const
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VirtualDisk ¶
type VirtualDisk struct { DiskPath string VolumeOptions *vclib.VolumeOptions VMOptions *vclib.VMOptions }
VirtualDisk is for the Disk Management
func (*VirtualDisk) Create ¶
func (virtualDisk *VirtualDisk) Create(ctx context.Context, datastore *vclib.Datastore) (string, error)
Create gets appropriate disk manager and calls respective create method
func (*VirtualDisk) Delete ¶
func (virtualDisk *VirtualDisk) Delete(ctx context.Context, datacenter *vclib.Datacenter) error
Delete gets appropriate disk manager and calls respective delete method
Click to show internal directories.
Click to hide internal directories.