v0.3.2 Latest Latest

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 11 Imported by: 0




This section is empty.


View Source
var (
	HTTP_OK      = 200
View Source
var MaxTimeForSingleHttpRequest = 50 * time.Minute

TryTimeout indicates the maximum time allowed for any single try of an HTTP request.


func ListObjs

func ListObjs(loca *LocationInfo) ([]azblob.BlobItem, error)


type BlobMover

type BlobMover struct {
	// contains filtered or unexported fields

func (*BlobMover) AbortMultipartUpload

func (mover *BlobMover) AbortMultipartUpload(objKey string, destLoca *LocationInfo) error

func (*BlobMover) Base64ToInt64

func (mover *BlobMover) Base64ToInt64(base64ID string) int64

func (*BlobMover) BinaryToBase64

func (mover *BlobMover) BinaryToBase64(binaryID []byte) string

func (*BlobMover) CompleteMultipartUpload

func (mover *BlobMover) CompleteMultipartUpload(objKey string, destLoca *LocationInfo) error

A blob can have up to 100,000 uncommitted blocks, but their total size cannot exceed 200,000 MB.

func (*BlobMover) DeleteObj

func (mover *BlobMover) DeleteObj(objKey string, loca *LocationInfo) error

func (*BlobMover) DownloadObj

func (mover *BlobMover) DownloadObj(objKey string, srcLoca *LocationInfo, buf []byte) (size int64, err error)

func (*BlobMover) DownloadRange

func (mover *BlobMover) DownloadRange(objKey string, srcLoca *LocationInfo, buf []byte, start int64, end int64) (size int64,
	err error)

func (*BlobMover) Init

func (mover *BlobMover) Init(endpoint *string, acountName *string, accountKey *string) error

func (*BlobMover) Int64ToBase64

func (mover *BlobMover) Int64ToBase64(blockID int64) string

func (*BlobMover) MultiPartDownloadInit

func (mover *BlobMover) MultiPartDownloadInit(srcLoca *LocationInfo) error

func (*BlobMover) MultiPartUploadInit

func (mover *BlobMover) MultiPartUploadInit(objKey string, destLoca *LocationInfo) error

func (*BlobMover) UploadObj

func (mover *BlobMover) UploadObj(objKey string, destLoca *LocationInfo, buf []byte) error

func (*BlobMover) UploadPart

func (mover *BlobMover) UploadPart(objKey string, destLoca *LocationInfo, upBytes int64, buf []byte, partNumber int64,
	offset int64) error

Jump to

Keyboard shortcuts

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