Documentation ¶
Index ¶
- func ChooseVM(ctx context.Context, config *azconfig.AZConfig, vmName, defaultName string) (chosenVMName string, isExisting bool)
- func EnsureVM(ctx context.Context, config azconfig.AZConfig, vmName string, isExisting bool) (compute.VirtualMachine, aznetwork.NetworkStack)
- func ListVMs(ctx context.Context, config azconfig.AZConfig) []string
- func RandStringBytes(n int) string
- func WaitForReady(ctx context.Context, config azconfig.AZConfig, vmName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChooseVM ¶
func ChooseVM(ctx context.Context, config *azconfig.AZConfig, vmName, defaultName string) (chosenVMName string, isExisting bool)
ChooseVM lets the user pick a virtual machine. if vmName is not empty, that name is used instead, and this function just determines whether that VM already exists.
func EnsureVM ¶
func EnsureVM(ctx context.Context, config azconfig.AZConfig, vmName string, isExisting bool) (compute.VirtualMachine, aznetwork.NetworkStack)
EnsureVM either returns the VM info (isExisting=true) or creates a new VM (isExisting=false)
func RandStringBytes ¶
RandStringBytes returns an n-rune random string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.