Documentation ¶
Index ¶
- func AttachDisk(subscriptionID, resourceGroup, azureInstanceName, scaleSet string, ...) error
- func CheckVirtualDiskWithInstance(subscriptionID, virtualDiskNames, resourceGroup string) error
- func DetachDisks(subscriptionID, resourceGroup, azureInstanceName, scaleSet string, ...) error
- func GetDiskStatus(subscriptionID, resourceGroup, diskName string) (compute.DiskState, error)
- func GetInstanceDiskList(subscriptionID, resourceGroup, scaleSet, azureInstanceName string) (*[]compute.DataDisk, error)
- func GetInstanceNameForDisks(diskNameList []string, subscriptionID, resourceGroup string) (map[string][]string, error)
- func WaitForDiskToAttach(experimentsDetails *types.ExperimentDetails, diskName string) error
- func WaitForDiskToDetach(experimentsDetails *types.ExperimentDetails, diskName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachDisk ¶
func AttachDisk(subscriptionID, resourceGroup, azureInstanceName, scaleSet string, diskList *[]compute.DataDisk) error
AttachDisk will attach the list of disk provided for the specific VM instance
func CheckVirtualDiskWithInstance ¶
CheckVirtualDiskWithInstance checks whether the given list of disk are attached to the provided VM instance
func DetachDisks ¶
func DetachDisks(subscriptionID, resourceGroup, azureInstanceName, scaleSet string, diskNameList []string) error
DetachDisks will detach the list of disk provided for the specific VM instance or scale set vm instance
func GetDiskStatus ¶
GetDiskStatus will get the status of disk (attached/unattached)
func GetInstanceDiskList ¶
func GetInstanceDiskList(subscriptionID, resourceGroup, scaleSet, azureInstanceName string) (*[]compute.DataDisk, error)
GetInstanceDiskList will fetch the disks attached to an instance
func GetInstanceNameForDisks ¶
func GetInstanceNameForDisks(diskNameList []string, subscriptionID, resourceGroup string) (map[string][]string, error)
GetInstanceNameForDisks will extract the instance name from the disk properties
func WaitForDiskToAttach ¶
func WaitForDiskToAttach(experimentsDetails *types.ExperimentDetails, diskName string) error
WaitForDiskToAttach waits until the disks are attached
func WaitForDiskToDetach ¶
func WaitForDiskToDetach(experimentsDetails *types.ExperimentDetails, diskName string) error
WaitForDiskToDetach waits until the disks are detached
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.