azvm

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 ListVMs

func ListVMs(ctx context.Context, config azconfig.AZConfig) []string

ListVMs fetches a list of available virtual machine names.

func RandStringBytes

func RandStringBytes(n int) string

RandStringBytes returns an n-rune random string.

func WaitForReady

func WaitForReady(ctx context.Context, config azconfig.AZConfig, vmName string)

WaitForReady regularly polls a VM until it has the required status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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