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
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.
Click to show internal directories.
Click to hide internal directories.