compute

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	DisksClient           compute.DisksClient
	VirtualMachinesClient compute.VirtualMachinesClient
	// contains filtered or unexported fields
}

Service provides the azure SDK clients to interact with the compute API.

func NewService

func NewService(subscriptionID string) *Service

NewService returns a new instance of Service.

func (*Service) DeleteManagedDisk

func (s *Service) DeleteManagedDisk(resourceGroup string, name string) (compute.DisksDeleteFuture, error)

DeleteManagedDisk deletes a managed disk resource.

func (*Service) DeleteVM

func (s *Service) DeleteVM(resourceGroup string, name string) (compute.VirtualMachinesDeleteFuture, error)

DeleteVM deletes the virtual machine.

func (*Service) RunCommand

func (s *Service) RunCommand(resoureGroup string, name string, cmd string) (compute.VirtualMachinesRunCommandFuture, error)

RunCommand executes a command on the VM.

func (*Service) SetAuthorizer

func (s *Service) SetAuthorizer(authorizer autorest.Authorizer)

SetAuthorizer sets the authorizer components of the azure clients.

func (*Service) VMIfExists

func (s *Service) VMIfExists(resourceGroup string, name string) (*compute.VirtualMachine, error)

VMIfExists returns the reference to the VM object if it exists.

func (*Service) WaitForDisksDeleteFuture

func (s *Service) WaitForDisksDeleteFuture(future compute.DisksDeleteFuture) error

WaitForDisksDeleteFuture returns when the DeleteManagedDisk operation completes.

func (*Service) WaitForVMDeletionFuture

func (s *Service) WaitForVMDeletionFuture(future compute.VirtualMachinesDeleteFuture) error

WaitForVMDeletionFuture returns when the DeleteVM operation completes.

func (*Service) WaitForVMRunCommandFuture

func (s *Service) WaitForVMRunCommandFuture(future compute.VirtualMachinesRunCommandFuture) error

WaitForVMRunCommandFuture returns when the RunCommand operation completes.

Jump to

Keyboard shortcuts

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