blobclient

package
v0.7.4-premiumv2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package blobclient implements the client for blob container.

Index

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 New

func New(config *azclients.ClientConfig) *Client

New creates a blobContainersClient

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.

Jump to

Keyboard shortcuts

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