storage

package
v0.0.0-...-86c76a3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 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.PrintAndLog(err.Error())
}
_, err = CreateStorageAccount(context.Background(), accountName)
if err != nil {
	log.Fatal(fmt.Sprintf("Cannot create storage account. Error details: %s", err.Error()))
}
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