virtualmachine

package
v0.10.3-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VirtualMachineClient

type VirtualMachineClient struct {
	compute.BaseClient
	// contains filtered or unexported fields
}

func NewVirtualMachineClient

func NewVirtualMachineClient(cloudFQDN string, authorizer auth.Authorizer) (*VirtualMachineClient, error)

func (*VirtualMachineClient) CreateOrUpdate

func (c *VirtualMachineClient) CreateOrUpdate(ctx context.Context, group, name string, compute *compute.VirtualMachine) (*compute.VirtualMachine, error)

CreateOrUpdate methods invokes create or update on the client

func (*VirtualMachineClient) Delete

func (c *VirtualMachineClient) Delete(ctx context.Context, group string, name string) error

Delete methods invokes delete of the compute resource

func (*VirtualMachineClient) DiskAttach

func (c *VirtualMachineClient) DiskAttach(ctx context.Context, group string, vmName, diskName string) (err error)

func (*VirtualMachineClient) DiskDetach

func (c *VirtualMachineClient) DiskDetach(ctx context.Context, group string, vmName, diskName string) (err error)

func (*VirtualMachineClient) Get

func (c *VirtualMachineClient) Get(ctx context.Context, group, name string) (*[]compute.VirtualMachine, error)

Get methods invokes the client Get method

func (*VirtualMachineClient) NetworkInterfaceAdd

func (c *VirtualMachineClient) NetworkInterfaceAdd(ctx context.Context, group string, vmName, nicName string) (err error)

func (*VirtualMachineClient) NetworkInterfaceRemove

func (c *VirtualMachineClient) NetworkInterfaceRemove(ctx context.Context, group string, vmName, nicName string) (err error)

func (*VirtualMachineClient) Resize

func (c *VirtualMachineClient) Resize(ctx context.Context, group string, name string, newSize compute.VirtualMachineSizeTypes) (err error)

Resize the Virtual Machine

func (*VirtualMachineClient) Restart

func (c *VirtualMachineClient) Restart(ctx context.Context, group string, name string) (err error)

Restart the Virtual Machine

func (*VirtualMachineClient) Start

func (c *VirtualMachineClient) Start(ctx context.Context, group string, name string) (err error)

Start the Virtual Machine

func (*VirtualMachineClient) Stop

func (c *VirtualMachineClient) Stop(ctx context.Context, group string, name string) (err error)

Stop the Virtual Machine

Jump to

Keyboard shortcuts

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