Documentation ¶
Overview ¶
Package blobclient implements the client for blob container.
Index ¶
Constants ¶
View Source
const ( // APIVersion is the API version for storage. APIVersion = "2021-09-01" // AzureStackCloudAPIVersion is the API version for Azure Stack AzureStackCloudAPIVersion = "2019-06-01" // AzureStackCloudName is the cloud name of Azure Stack AzureStackCloudName = "AZURESTACKCLOUD" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // ARM throttling configures. RetryAfterReader time.Time RetryAfterWriter time.Time // contains filtered or unexported fields }
Client implements the blobclient interface
func (*Client) CreateContainer ¶
func (c *Client) CreateContainer(ctx context.Context, subsID, resourceGroupName, accountName, containerName string, parameters storage.BlobContainer) *retry.Error
CreateContainer creates a blob container
func (*Client) DeleteContainer ¶
func (c *Client) DeleteContainer(ctx context.Context, subsID, resourceGroupName, accountName, containerName string) *retry.Error
DeleteContainer deletes a blob container
func (*Client) GetContainer ¶
func (c *Client) GetContainer(ctx context.Context, subsID, resourceGroupName, accountName, containerName string) (storage.BlobContainer, *retry.Error)
GetContainer gets a blob container
type Interface ¶
type Interface interface { CreateContainer(ctx context.Context, subsID, resourceGroupName, accountName, containerName string, parameters storage.BlobContainer) *retry.Error DeleteContainer(ctx context.Context, subsID, resourceGroupName, accountName, containerName string) *retry.Error GetContainer(ctx context.Context, subsID, resourceGroupName, accountName, containerName string) (storage.BlobContainer, *retry.Error) }
Interface is the client interface for creating file shares, interface for test injection. Don't forget to run "hack/update-mock-clients.sh" command to generate the mock client.
Directories ¶
Path | Synopsis |
---|---|
Package mockblobclient implements the mock client for blob container.
|
Package mockblobclient implements the mock client for blob container. |
Click to show internal directories.
Click to hide internal directories.