blobmover

package
Version: v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTTP_OK       = 200
	HTTP_CREATED  = 201
	HTTP_ACCEPTED = 202
)
View Source
var MaxTimeForSingleHttpRequest = 16 * time.Minute

TryTimeout indicates the maximum time allowed for any single try of an HTTP request. 60 seconds per MB as default.

Functions

func ListObjs

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

Types

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) ChangeStorageClass added in v0.5.3

func (mover *BlobMover) ChangeStorageClass(objKey *string, newClass *string, bkend *BackendInfo) error

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) DeleteIncompleteMultipartUpload added in v0.5.3

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

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) (string, 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