Documentation
¶
Overview ¶
Example (CreateTemplateDeployment) ¶
Output: validated VM template deployment created VM template deployment got public IP info via get generic resource
Index ¶
- func Cleanup(ctx context.Context)
- func CreateDeployment(ctx context.Context, deploymentName string, ...) (de resources.DeploymentExtended, err error)
- func CreateGroup(ctx context.Context, groupName string) (resources.Group, error)
- func CreateGroupWithAuthFile(ctx context.Context, groupName string) (resources.Group, error)
- func DeleteAllGroupsWithPrefix(ctx context.Context, prefix string) (futures []resources.GroupsDeleteFuture, groups []string)
- func DeleteGroup(ctx context.Context, groupName string) (result resources.GroupsDeleteFuture, err error)
- func GetGroup(ctx context.Context) (resources.Group, error)
- func GetResource(ctx context.Context, ...) (resources.GenericResource, error)
- func ListGroups(ctx context.Context) (resources.GroupListResultIterator, error)
- func RegisterProvider(ctx context.Context, provider string) (resources.Provider, error)
- func ValidateDeployment(ctx context.Context, deploymentName string, ...) (valid resources.DeploymentValidateResult, err error)
- func WaitForDeleteCompletion(ctx context.Context, wg *sync.WaitGroup, ...)
- func WithAPIVersion(apiVersion string) autorest.PrepareDecorator
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDeployment ¶
func CreateDeployment(ctx context.Context, deploymentName string, template, params *map[string]interface{}) (de resources.DeploymentExtended, err error)
CreateDeployment creates a template deployment using the referenced JSON files for the template and its parameters
func CreateGroup ¶
CreateGroup creates a new resource group named by env var
func CreateGroupWithAuthFile ¶
CreateGroupWithAuthFile creates a new resource group. The client authorizer is set up based on an auth file created using the Azure CLI.
func DeleteAllGroupsWithPrefix ¶
func DeleteAllGroupsWithPrefix(ctx context.Context, prefix string) (futures []resources.GroupsDeleteFuture, groups []string)
DeleteAllGroupsWithPrefix deletes all rescource groups that start with a certain prefix
func DeleteGroup ¶
func DeleteGroup(ctx context.Context, groupName string) (result resources.GroupsDeleteFuture, err error)
DeleteGroup removes the resource group named by env var
func GetResource ¶
func GetResource(ctx context.Context, resourceProvider, resourceType, resourceName, apiVersion string) (resources.GenericResource, error)
GetResource gets a resource, the generic way. The API version parameter overrides the API version in the SDK, this is needed because not all resources are supported on all API versions.
func ListGroups ¶
func ListGroups(ctx context.Context) (resources.GroupListResultIterator, error)
ListGroups gets an interator that gets all resource groups in the subscription
func RegisterProvider ¶
RegisterProvider registers an azure resource provider for the subscription
func ValidateDeployment ¶
func ValidateDeployment(ctx context.Context, deploymentName string, template, params *map[string]interface{}) (valid resources.DeploymentValidateResult, err error)
ValidateDeployment validates the template deployments and their parameters are correct and will produce a successful deployment.GetResource
func WaitForDeleteCompletion ¶
func WaitForDeleteCompletion(ctx context.Context, wg *sync.WaitGroup, futures []resources.GroupsDeleteFuture, groups []string)
WaitForDeleteCompletion concurrently waits for delete group operations to finish
func WithAPIVersion ¶
func WithAPIVersion(apiVersion string) autorest.PrepareDecorator
WithAPIVersion returns a prepare decorator that changes the request's query for api-version This can be set up as a client's RequestInspector.
Types ¶
This section is empty.