Documentation ¶
Index ¶
- func AppendToBlob(ctx context.Context, ...) error
- func CheckAccountNameAvailability(ctx context.Context, accountName string) (storage.CheckNameAvailabilityResult, error)
- func ClearPage(ctx context.Context, ...) error
- func CommitBlocks(ctx context.Context, ...) error
- func CreateAppendBlob(ctx context.Context, ...) (azblob.AppendBlobURL, error)
- func CreateBlockBlob(ctx context.Context, ...) (azblob.BlockBlobURL, error)
- func CreateContainer(ctx context.Context, accountName, accountGroupName, containerName string) (azblob.ContainerURL, error)
- func CreatePageBlob(ctx context.Context, ...) (azblob.PageBlobURL, error)
- func CreateStorageAccount(ctx context.Context, accountName, accountGroupName string) (storage.Account, error)
- func DeleteContainer(ctx context.Context, accountName, accountGroupName, containerName string) error
- func DeleteStorageAccount(ctx context.Context, accountName, accountGroupName string) (autorest.Response, error)
- func GetAccountKeys(ctx context.Context, accountName, accountGroupName string) (storage.AccountListKeysResult, error)
- func GetBlob(ctx context.Context, ...) (string, error)
- func GetContainer(ctx context.Context, accountName, accountGroupName, containerName string) (azblob.ContainerURL, error)
- func GetPageRanges(ctx context.Context, ...) (*azblob.PageList, error)
- func GetStorageAccount(ctx context.Context, accountName, accountGroupName string) (storage.Account, error)
- func GetUncommitedBlocks(ctx context.Context, ...) (*azblob.BlockList, error)
- func ListAccountsByResourceGroup(ctx context.Context, groupName string) (storage.AccountListResult, error)
- func ListAccountsBySubscription(ctx context.Context) (storage.AccountListResult, error)
- func ListBlobs(ctx context.Context, accountName, accountGroupName, containerName string) (*azblob.ListBlobsFlatSegmentResponse, error)
- func ListUsage(ctx context.Context) (storage.UsageListResult, error)
- func PutBlockOnBlob(ctx context.Context, ...) error
- func PutPage(ctx context.Context, ...) error
- func RegenerateAccountKey(ctx context.Context, accountName, accountGroupName string, key int) (storage.AccountListKeysResult, error)
- func UpdateAccount(ctx context.Context, accountName, accountGroupName string) (storage.Account, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToBlob ¶
func AppendToBlob(ctx context.Context, accountName, accountGroupName, containerName, blobName, message string) error
AppendToBlob appends new data to the specified append blob
func CheckAccountNameAvailability ¶
func CheckAccountNameAvailability(ctx context.Context, accountName string) (storage.CheckNameAvailabilityResult, error)
CheckAccountNameAvailability checks if the storage account name is available. Storage account names must be unique across Azure and meet other requirements.
func ClearPage ¶
func ClearPage(ctx context.Context, accountName, accountGroupName, containerName, blobName string, pageNumber int) error
ClearPage clears the specified page in the page blob
func CommitBlocks ¶
func CommitBlocks(ctx context.Context, accountName, accountGroupName, containerName, blobName string) error
CommitBlocks commits the uncommitted blocks to the blob
func CreateAppendBlob ¶
func CreateAppendBlob(ctx context.Context, accountName, accountGroupName, containerName, blobName string) (azblob.AppendBlobURL, error)
CreateAppendBlob creates an empty append blob
func CreateBlockBlob ¶
func CreateBlockBlob(ctx context.Context, accountName, accountGroupName, containerName, blobName string) (azblob.BlockBlobURL, error)
CreateBlockBlob creates a new block blob
func CreateContainer ¶
func CreateContainer(ctx context.Context, accountName, accountGroupName, containerName string) (azblob.ContainerURL, error)
CreateContainer creates a new container with the specified name in the specified account
func CreatePageBlob ¶
func CreatePageBlob(ctx context.Context, accountName, accountGroupName, containerName, blobName string, pages int) (azblob.PageBlobURL, error)
CreatePageBlob creates a new test blob in the container specified.
func CreateStorageAccount ¶
func CreateStorageAccount(ctx context.Context, accountName, accountGroupName string) (storage.Account, error)
CreateStorageAccount starts creation of a new storage account and waits for the account to be created.
func DeleteContainer ¶
func DeleteContainer(ctx context.Context, accountName, accountGroupName, containerName string) error
DeleteContainer deletes the named container.
func DeleteStorageAccount ¶
func DeleteStorageAccount(ctx context.Context, accountName, accountGroupName string) (autorest.Response, error)
DeleteStorageAccount deletes an existing storate account
func GetAccountKeys ¶
func GetAccountKeys(ctx context.Context, accountName, accountGroupName string) (storage.AccountListKeysResult, error)
GetAccountKeys gets the storage account keys
func GetBlob ¶
func GetBlob(ctx context.Context, accountName, accountGroupName, containerName, blobName string) (string, error)
GetBlob downloads the specified blob contents
func GetContainer ¶
func GetContainer(ctx context.Context, accountName, accountGroupName, containerName string) (azblob.ContainerURL, error)
GetContainer gets info about an existing container.
func GetPageRanges ¶
func GetPageRanges(ctx context.Context, accountName, accountGroupName, containerName, blobName string, pages int) (*azblob.PageList, error)
GetPageRanges gets a list of valid page ranges in the page blob
func GetStorageAccount ¶
func GetStorageAccount(ctx context.Context, accountName, accountGroupName string) (storage.Account, error)
GetStorageAccount gets details on the specified storage account
func GetUncommitedBlocks ¶
func GetUncommitedBlocks(ctx context.Context, accountName, accountGroupName, containerName, blobName string) (*azblob.BlockList, error)
GetUncommitedBlocks gets a list of uncommited blobs
func ListAccountsByResourceGroup ¶
func ListAccountsByResourceGroup(ctx context.Context, groupName string) (storage.AccountListResult, error)
ListAccountsByResourceGroup lists storage accounts by resource group.
func ListAccountsBySubscription ¶
func ListAccountsBySubscription(ctx context.Context) (storage.AccountListResult, error)
ListAccountsBySubscription lists storage accounts by subscription.
func ListBlobs ¶
func ListBlobs(ctx context.Context, accountName, accountGroupName, containerName string) (*azblob.ListBlobsFlatSegmentResponse, error)
ListBlobs lists blobs on the specified container
func ListUsage ¶
func ListUsage(ctx context.Context) (storage.UsageListResult, error)
ListUsage gets the usage count and limits for the resources in the subscription
func PutBlockOnBlob ¶
func PutBlockOnBlob(ctx context.Context, accountName, accountGroupName, containerName, blobName, message string, blockNum int) error
PutBlockOnBlob adds a block to a block blob. It does not commit the block.
func PutPage ¶
func PutPage(ctx context.Context, accountName, accountGroupName, containerName, blobName, page string, pages int) error
PutPage adds a page to the page blob TODO: page should be []byte
func RegenerateAccountKey ¶
func RegenerateAccountKey(ctx context.Context, accountName, accountGroupName string, key int) (storage.AccountListKeysResult, error)
RegenerateAccountKey regenerates the selected storage account key. `key` can be 0 or 1.
Types ¶
This section is empty.