compute

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver added in v0.0.9

type Driver struct {
	Client          *azapi.Client
	SubscriptionIDs []string
	LROPollDelay    time.Duration
	LROMaxPolls     int
}

func (*Driver) GetResource added in v0.0.9

func (d *Driver) GetResource(ctx context.Context) ([]schema.Host, error)

GetResource returns all the resources in the store for a provider.

func (*Driver) RunCommand added in v0.3.1

func (d *Driver) RunCommand(ctx context.Context, instanceID, osType, command string) (string, error)

RunCommand invokes Microsoft.Compute virtualMachines/runCommand on the instance identified by an ARM VM ID, `<subscription>/<resourceGroup>/<vmName>`, or the legacy `<resourceGroup>/<vmName>` shorthand. Caller's `osType` is used to pick the commandId — `linux` → RunShellScript, `windows` → RunPowerShellScript.

Jump to

Keyboard shortcuts

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