azblobext

package module
v0.0.0-...-771b6df Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 9 Imported by: 0

README

azblob Extensions

Extensions for the Azure Storage Blob SDK for Go. The primary changes are around the "high level" functions of the SDK including:

  • DownloadBlobToFile
  • UploadFileToBlockBlob

The original code is from the SDK with modifications to support more efficient file operations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadBlobToFile

func DownloadBlobToFile(ctx context.Context, blobURL azblob.BlobURL, offset int64, count int64,
	file *os.File, o azblob.DownloadFromBlobOptions) error

DownloadBlobToFile downloads an Azure blob to a local file. The file would be truncated if the size doesn't match. Offset and count are optional, pass 0 for both to download the entire blob.

func UploadFileToBlockBlob

func UploadFileToBlockBlob(ctx context.Context, file *os.File,
	blockBlobURL azblob.BlockBlobURL, o azblob.UploadToBlockBlobOptions) (azblob.CommonResponse, error)

UploadFileToBlockBlob uploads a file in blocks to a block blob.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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