# README
Blob Storage Container SDK for API version 2020-08-04
This package allows you to interact with the Containers Blob Storage API
Supported Authorizers
- Azure Active Directory (for the Resource Endpoint
https://storage.azure.com
) - SharedKeyLite (Blob, File & Queue)
Note: when using the ListBlobs
operation, only SharedKeyLite
authentication is supported.
Example Usage
package main
import (
"context"
"fmt"
"github.com/hashicorp/go-azure-sdk/sdk/auth"
"github.com/jackofallops/giovanni/storage/2020-08-04/blob/containers"
)
func Example() error {
accountName := "storageaccount1"
storageAccountKey := "ABC123...."
containerName := "mycontainer"
domainSuffix := "core.windows.net"
containersClient, err := containers.NewWithBaseUri(fmt.Sprintf("https://%s.blob.%s", accountName, domainSuffix))
if err != nil {
return fmt.Errorf("building client for environment: %+v", err)
}
auth, err := auth.NewSharedKeyAuthorizer(accountName, storageAccountKey, auth.SharedKey)
if err != nil {
return fmt.Errorf("building SharedKey authorizer: %+v", err)
}
containersClient.Client.SetAuthorizer(auth)
ctx := context.TODO()
createInput := containers.CreateInput{
AccessLevel: containers.Private,
}
if _, err := containersClient.Create(ctx, containerName, createInput); err != nil {
return fmt.Errorf("Error creating Container: %s", err)
}
return nil
}
# Functions
No description provided by the author
No description provided by the author
ParseContainerID parses `input` into a Container ID using a known `domainSuffix`.
# Variables
No description provided by the author
Blob specifies public read access for blobs.
No description provided by the author
No description provided by the author
Container specifies full public read access for container and blob data.
No description provided by the author
No description provided by the author
No description provided by the author
If this lease is for a Fixed Duration.
If this lease is for an Indefinite Duration.
No description provided by the author
No description provided by the author
No description provided by the author
Private specifies that container data is private to the account owner.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Client is the base client for Blob Storage Containers.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author