azure

package
v0.0.0-...-ed41999 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeClient

func InitializeClient()

InitializeClient Initializes the azure storage client

Types

type StorageClient

type StorageClient struct {
	// contains filtered or unexported fields
}
var Client StorageClient

Client Global storage client used throughout the application.

func (*StorageClient) DeleteBlob

func (c *StorageClient) DeleteBlob(container string, fileName string) error

DeleteBlob Delete a blob from a given container

func (*StorageClient) DownloadFile

func (c *StorageClient) DownloadFile(container string, name string, path string) (bytes.Buffer, error)

DownloadFile Downloads a blob from a given container

func (*StorageClient) ListBlobs

func (c *StorageClient) ListBlobs(container string) ([]string, error)

ListBlobs Lists blobs in a given container

func (*StorageClient) UploadFile

func (c *StorageClient) UploadFile(container string, fileName string, data []byte) error

UploadFile Uploads a file to a given container

func (*StorageClient) UploadFileFromDisk

func (c *StorageClient) UploadFileFromDisk(container string, name string, path string, tier azblob.AccessTierType) error

UploadFileFromDisk Uploads a file to azure from disk

Jump to

Keyboard shortcuts

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