blobcontainer

package
v0.0.0-...-d6384ac Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureBlobContainerManager

type AzureBlobContainerManager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(creds config.Credentials) *AzureBlobContainerManager

NewManager returns a pointer to a new instance of a blob container client

func (*AzureBlobContainerManager) CreateBlobContainer

func (m *AzureBlobContainerManager) CreateBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string, accessLevel s.PublicAccess) (*s.BlobContainer, error)

Creates a blob container in a storage account. Parameters: resourceGroupName - name of the resource group within the azure subscription. accountName - the name of the storage account containerName - the name of the container accessLevel - 'PublicAccessContainer', 'PublicAccessBlob', or 'PublicAccessNone'

func (*AzureBlobContainerManager) Delete

Delete drops a blob container

func (*AzureBlobContainerManager) DeleteBlobContainer

func (m *AzureBlobContainerManager) DeleteBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result autorest.Response, err error)

Deletes a blob container in a storage account. Parameters: resourceGroupName - name of the resource group within the azure subscription. accountName - the name of the storage account containerName - the name of the container

func (*AzureBlobContainerManager) Ensure

Ensure creates a blob container

func (*AzureBlobContainerManager) GetBlobContainer

func (m *AzureBlobContainerManager) GetBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result s.BlobContainer, err error)

Get gets the description of the specified blob container. Parameters: resourceGroupName - name of the resource group within the azure subscription. accountName - the name of the storage account containerName - the name of the container

func (*AzureBlobContainerManager) GetParents

GetParents returns the parents of a blob container

func (*AzureBlobContainerManager) GetStatus

type BlobContainerManager

type BlobContainerManager interface {
	CreateBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string, accessLevel s.PublicAccess) (*storage.BlobContainer, error)

	// Get gets the description of the specified blob container.
	// Parameters:
	// resourceGroupName - name of the resource group within the azure subscription.
	// accountName - the name of the storage account
	// containerName - the name of the container
	GetBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result storage.BlobContainer, err error)

	// Deletes a blob container in a storage account.
	// Parameters:
	// resourceGroupName - name of the resource group within the azure subscription.
	// accountName - the name of the storage account
	// containerName - the name of the container
	DeleteBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result autorest.Response, err error)
}

BlobContainerManager exists in case we need it

Jump to

Keyboard shortcuts

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