Documentation
¶
Index ¶
- func InitializeClient()
- type StorageClient
- func (c *StorageClient) DeleteBlob(container string, fileName string) error
- func (c *StorageClient) DownloadFile(container string, name string, path string) (bytes.Buffer, error)
- func (c *StorageClient) ListBlobs(container string) ([]string, error)
- func (c *StorageClient) UploadFile(container string, fileName string, data []byte) error
- func (c *StorageClient) UploadFileFromDisk(container string, name string, path string, tier azblob.AccessTierType) error
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
Click to show internal directories.
Click to hide internal directories.