Documentation ¶
Overview ¶
Package azure defines client to connect to Azure cloud
Index ¶
Constants ¶
View Source
const ( // ChinaCloud defines China cloud ChinaCloud = "AzureChinaCloud" // GermanCloud defines German cloud GermanCloud = "AzureGermanCloud" // PublicCloud defines Public cloud PublicCloud = "AzurePublicCloud" // USGovernmentCloud defines US Government cloud USGovernmentCloud = "AzureUSGovernmentCloud" )
View Source
const (
// ResourceTypeVirtualMachine defines virtualMachines resource type
ResourceTypeVirtualMachine = "virtualMachines"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { VerifyAccount(ctx context.Context) error ListResourceGroups(ctx context.Context, location string) ([]*models.AzureResourceGroup, error) ListVirtualNetworks(ctx context.Context, resourceGroup string, location string) ([]*models.AzureVirtualNetwork, error) CreateResourceGroup(ctx context.Context, resourceGroupName string, location string) error CreateVirtualNetwork(ctx context.Context, resourceGroupName string, virtualNetworkName string, cidrBlock string, location string) error GetAzureRegions(ctx context.Context) ([]*models.AzureLocation, error) GetAzureInstanceTypesForRegion(ctx context.Context, region string) ([]*models.AzureInstanceType, error) }
Client defines methods to access Azure inventory
Click to show internal directories.
Click to hide internal directories.