azblob

package
v0.0.0-...-0ecf4d6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlobsClientUsingEntra

func NewBlobsClientUsingEntra(serviceURL string, credential azcore.TokenCredential, options *arm.ClientOptions) (*blobsClient, error)

NewBlobsClientUsingEntra creates a new BlobsClient Microsoft Entra credentials

func NewBlobsClientUsingSAS

func NewBlobsClientUsingSAS(sasURL string, options *arm.ClientOptions) (*blobsClient, error)

NewBlobsClientUsingSAS creates a new BlobsClient using SAS

Types

type BlobsClient

type BlobsClient interface {
	DownloadStream(ctx context.Context, containerName string, blobName string, o *azblob.DownloadStreamOptions) (azblob.DownloadStreamResponse, error)
	UploadBuffer(ctx context.Context, containerName string, blobName string, buffer []byte, o *azblob.UploadBufferOptions) (azblob.UploadBufferResponse, error)
	DeleteBlob(ctx context.Context, containerName string, blobName string, o *azblob.DeleteBlobOptions) (azblob.DeleteBlobResponse, error)
	BlobsClientAddons
}

BlobsClient is a minimal interface for Azure BlobsClient

type BlobsClientAddons

type BlobsClientAddons interface {
	BlobExists(ctx context.Context, container string, blobPath string) (bool, error)
	DeleteContainer(ctx context.Context, container string) error
}

Jump to

Keyboard shortcuts

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