Documentation
¶
Overview ¶
Package virtualmachines serves Azure ARM Microsoft.Compute/virtualMachines requests against a CloudEmu compute driver. Real azure-sdk-for-go clients configured with a custom endpoint hit this handler the same way they hit management.azure.com.
Supported operations (instance lifecycle parity with AWS EC2):
PUT .../virtualMachines/{name} — CreateOrUpdate
GET .../virtualMachines/{name} — Get
GET .../virtualMachines — List in resource group
GET .../providers/.../virtualMachines — List in subscription
DELETE .../virtualMachines/{name} — Delete
POST .../virtualMachines/{name}/start — Start
POST .../virtualMachines/{name}/powerOff — Stop
POST .../virtualMachines/{name}/restart — Restart
Less-used operations (capture, deallocate, instance view, redeploy, etc.) are not yet wired and will return 501 Not Implemented.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves ARM JSON requests for Microsoft.Compute/virtualMachines.
func New ¶
func New(c computedriver.Compute) *Handler
New returns a virtualMachines handler backed by c.
Click to show internal directories.
Click to hide internal directories.