obsmover

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListObjs

func ListObjs(loca *LocationInfo, filt *pb.Filter) ([]obs.Content, error)

TODO: Need to support list object page by page

Types

type ObsMover

type ObsMover struct {
	// contains filtered or unexported fields
}

func (*ObsMover) AbortMultipartUpload

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

func (*ObsMover) ChangeStorageClass added in v0.5.3

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

func (*ObsMover) CompleteMultipartUpload

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

func (*ObsMover) DeleteIncompleteMultipartUpload added in v0.5.3

func (mover *ObsMover) DeleteIncompleteMultipartUpload(objKey, uploadId string, loc *LocationInfo) error

func (*ObsMover) DeleteObj

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

func (*ObsMover) DownloadObj

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

func (*ObsMover) DownloadRange

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

func (*ObsMover) MultiPartDownloadInit

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

func (*ObsMover) MultiPartUploadInit

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

func (*ObsMover) UploadObj

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

func (*ObsMover) UploadPart

func (mover *ObsMover) 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