azureblobstorage

package
v0.0.0-...-b593ba2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnonymousAccess        = 0
	ServicePrincipalAccess = 1
	ManagedIdentityAccess  = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureBlobStorage

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

func Create

func Create(tenantId string, userName string, password string, storageAccount string, authenticationType int) (abs *AzureBlobStorage, err error)

func (*AzureBlobStorage) Delete

func (abs *AzureBlobStorage) Delete(
	ctx context.Context,
	containerName string,
	blobName string) (err error)

func (*AzureBlobStorage) Download

func (abs *AzureBlobStorage) Download(
	ctx context.Context,
	containerName string,
	blobName string,
	localFileName string) (err error)

func (*AzureBlobStorage) Upload

func (abs *AzureBlobStorage) Upload(
	ctx context.Context,
	localFileName string,
	containerName string,
	blobName string) (err error)

Jump to

Keyboard shortcuts

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