storage

package
v0.0.0-...-57c00fc Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStorageAccount

func CreateStorageAccount(ctx context.Context, accountName string) (s storage.Account, err error)

CreateStorageAccount creates a new storage account.

Example
ctx := context.Background()
defer hybridresources.Cleanup(ctx)

_, err := hybridresources.CreateGroup(ctx)
if err != nil {
	util.LogAndPanic(err)
}
_, err = CreateStorageAccount(context.Background(), accountName)
if err != nil {
	util.LogAndPanic(fmt.Errorf("cannot create storage account. Error details: %+v", err))
}
fmt.Println("Storage account created")
Output:

Storage account created

Types

This section is empty.

Jump to

Keyboard shortcuts

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