azblobext

package module
v0.0.0-...-43227a5 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 9 Imported by: 0

README

azblob Extensions

GoDoc Build Status

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,
	cpk azblob.ClientProvidedKeyOptions,
) 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

UploadFileToBlockBlob uploads a file in blocks to a block blob.

Types

This section is empty.

Jump to

Keyboard shortcuts

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