azresource

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskResourceGroupName

func AskResourceGroupName(
	ctx context.Context, config azconfig.AZConfig,
	cliAccountName, defaultAccountName string,
) (desiredName string, mustCreate bool)

AskResourceGroupName asks for a resource group, potentially overridable by a CLI arg.

func EnsureResourceGroup

func EnsureResourceGroup(ctx context.Context, config *azconfig.AZConfig, groupName string) bool

EnsureResourceGroup creates a resource group and saves it to the config. The program is aborted when creation is required but fails.

func ListResourceGroups added in v0.6.5

func ListResourceGroups(ctx context.Context, config azconfig.AZConfig) (groups []resources.Group)

ListResourceGroups returns the Azure Resource Groups available to this subscription.

Types

This section is empty.

Jump to

Keyboard shortcuts

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