azure

package
v0.0.0-...-3568c51 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func CheckVirtualDiskWithInstance(experimentsDetails experimentTypes.ExperimentDetails) error

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

func GetDiskStatus(subscriptionID, resourceGroup, diskName string) (compute.DiskState, error)

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.

Jump to

Keyboard shortcuts

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