blobstorage

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobInfo

type BlobInfo struct {
	Name         string
	FileURL      string
	LastModified time.Time
}

type BlobInterface

type BlobInterface interface {
	GetBlobClient() *azblob.Client
	ListBlobs(containerName string) ([]*BlobInfo, error)
	UploadBlobBuffer(blobName, containerName string, data []byte) error
	UploadBlobStream(blobName, containerName string, data io.Reader) error
	UploadFile(blobName, containerName string, blobSize int) error
	DownloadBlob(blobInfo BlobInfo, containerName string) (*azblob.DownloadStreamResponse, error)
	DownloadFile(blobInfo BlobInfo, containerName string) error
	WriteToFile(blobName string, response azblob.DownloadStreamResponse) error
	GetSasUrl(blobName, containerName string) (string, error)
	// contains filtered or unexported methods
}

func New

func New(conf *config.Config) BlobInterface

Jump to

Keyboard shortcuts

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