Documentation
¶
Overview ¶
Package blobclient implements the client for blob container.
Index ¶
- type Client
- func (c *Client) CreateContainer(ctx context.Context, resourceGroupName, accountName, containerName string, ...) error
- func (c *Client) DeleteContainer(ctx context.Context, resourceGroupName, accountName, containerName string) error
- func (c *Client) GetContainer(ctx context.Context, resourceGroupName, accountName, containerName string) (storage.BlobContainer, error)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements the blobclient interface
func (*Client) CreateContainer ¶
func (c *Client) CreateContainer(ctx context.Context, resourceGroupName, accountName, containerName string, blobContainer storage.BlobContainer) error
CreateContainer creates a blob container
func (*Client) DeleteContainer ¶
func (c *Client) DeleteContainer(ctx context.Context, resourceGroupName, accountName, containerName string) error
DeleteContainer deletes a blob container
func (*Client) GetContainer ¶
func (c *Client) GetContainer(ctx context.Context, resourceGroupName, accountName, containerName string) (storage.BlobContainer, error)
GetContainer gets a blob container
type Interface ¶
type Interface interface { CreateContainer(ctx context.Context, resourceGroupName, accountName, containerName string, blobContainer storage.BlobContainer) error DeleteContainer(ctx context.Context, resourceGroupName, accountName, containerName string) error GetContainer(ctx context.Context, resourceGroupName, accountName, containerName string) (storage.BlobContainer, 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.