resource

package
v0.0.0-...-8fb0621 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(ctx context.Context)

func CreateGroup

func CreateGroup(ctx context.Context, groupName string) (resources.Group, error)

CreateGroup creates a new resource group named by env var

func CreateGroupWithAuthFile

func CreateGroupWithAuthFile(ctx context.Context, groupName string) (resources.Group, error)

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 GetGroup

func GetGroup(ctx context.Context) (resources.Group, error)

GetGroup gets info on the resource group in use

func ListGroups

ListGroups gets an interator that gets all resource groups in the subscription

func WaitForDeleteCompletion

func WaitForDeleteCompletion(ctx context.Context, wg *sync.WaitGroup, futures []resources.GroupsDeleteFuture, groups []string)

WaitForDeleteCompletion concurrently waits for delete group operations to finish

Types

This section is empty.

Jump to

Keyboard shortcuts

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