compute

package
v0.0.0-...-8fb0621 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVM

func CreateVM(ctx context.Context, vmName, nicName, username, password, sshPublicKeyPath string) (vm compute.VirtualMachine, err error)

func DeallocateVM

func DeallocateVM(ctx context.Context, vmName string) (osr autorest.Response, err error)

func GetVM

func GetVM(ctx context.Context, vmName string) (compute.VirtualMachine, error)

func RestartVM

func RestartVM(ctx context.Context, vmName string) (osr autorest.Response, err error)

func StartVM

func StartVM(ctx context.Context, vmName string) (osr autorest.Response, err error)

func StopVM

func StopVM(ctx context.Context, vmName string) (osr autorest.Response, err error)

func UpdateVM

func UpdateVM(ctx context.Context, vmName string, tags map[string]*string) (vm compute.VirtualMachine, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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