azurecompute

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Image

func Image(image string) imageOS

func ListAllVM

func ListAllVM() (vm []compute.VirtualMachine, err error)

Types

type DisksIn

type DisksIn struct {
	ResourceGroup string
	DiskName      string `json:"snapshotname,omitempty"`
	Location      string `json:"location,omitempty"`
}

func (DisksIn) DeleteDisk

func (d DisksIn) DeleteDisk() (ar autorest.Response, err error)

type SnapshotIn

type SnapshotIn struct {
	ResourceGroup string
	SnapshotName  string `json:"snapshotname,omitempty"`
	SourceImageID string `json:"sourceimageid,omitempty"`
	Location      string `json:"location,omitempty"`
}

func (SnapshotIn) CreateSnapshot

func (s SnapshotIn) CreateSnapshot() (ss compute.Snapshot, err error)

func (SnapshotIn) DeleteSnapshot

func (s SnapshotIn) DeleteSnapshot() (ar autorest.Response, err error)

func (SnapshotIn) GetSnapshot

func (s SnapshotIn) GetSnapshot() (ss compute.Snapshot, err error)

type VMIn

type VMIn struct {
	ResourceGroup    string
	VmName           string `json:"vmname,omitempty"`
	NicID            string `json:"nicid,omitempty"`
	UserName         string `json:"username,omitempty"`
	Password         string `json:"password,omitempty"`
	Flavour          string `json:"os,omitempty"`
	SSHPublicKeyPath string `json:"sshkeypath,omitempty"`
	Location         string `json:"location,omitempty"`
}

func (VMIn) CreateVM

func (v VMIn) CreateVM() (vm compute.VirtualMachine, err error)

CreateVM creates a new virtual machine with the specified name using the specified NIC. Username, password, and sshPublicKeyPath determine logon credentials.

func (VMIn) DeleteVM

func (v VMIn) DeleteVM() (ar autorest.Response, err error)

func (VMIn) GetVM

func (v VMIn) GetVM() (vm compute.VirtualMachine, err error)

func (VMIn) ListVM

func (v VMIn) ListVM() (vm []compute.VirtualMachine, err error)

Jump to

Keyboard shortcuts

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