connection

package
v0.9.20 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountPrimaryKey

func AccountPrimaryKey(ctx context.Context, accountName, accountGroupName string) string

AccountPrimaryKey return the primary key

func AccountProperties

func AccountProperties(ctx context.Context, rgName, accountName string) (storage.Account, error)

AccountProperties returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status

func CreateContainer

func CreateContainer(ctx context.Context, name, rgName, containerName string) (azblob.ContainerURL, error)

CreateContainer creates a new container with the specified name in the specified account

func CreateWithNetworkRuleSet

func CreateWithNetworkRuleSet(ctx context.Context, accountName, accountGroupName string, tags map[string]*string, httpsOnly bool, networkRuleSet *storage.NetworkRuleSet) (storage.Account, error)

CreateWithNetworkRuleSet starts creation of a new Storage Account and waits for the account to be created.

func DeleteAccount

func DeleteAccount(ctx context.Context, resourceGroupName, accountName string) error

DeleteAccount - deletes a storage account given the azure contect, resource group and account name

func DeleteContainer

func DeleteContainer(ctx context.Context, accountName, accountGroupName, containerName string) error

DeleteContainer deletes the named container.

func GetContainer

func GetContainer(ctx context.Context, accountName, accountGroupName, containerName string) (azblob.ContainerURL, error)

GetContainer gets info about an existing container.

func ListBlobs

func ListBlobs(ctx context.Context, accountName, accountGroupName, containerName string) (*azblob.ListBlobsFlatSegmentResponse, error)

ListBlobs lists blobs on the specified container

Types

This section is empty.

Jump to

Keyboard shortcuts

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