migration

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const JobType = "migration"
View Source
const WT_DELETE = 4
View Source
const WT_MOVE = 96

Variables

View Source
var JOB_RUN_TIME_MAX = 86400 //seconds, equals 1 day
View Source
var MiniSpeed int64 = 5 // 5KByte/Sec
View Source
var PART_SIZE int64 = 5 * 1024 * 1024 //The max object size that can be moved directly, default is 16M.

Functions

func CopyObj added in v0.7.0

func CopyObj(ctx context.Context, obj *osdss3.Object, destLoca *LocationInfo, job *flowtype.Job) error

func GetCtxTimeout added in v0.7.0

func GetCtxTimeout(key string, min, max, def int64) time.Duration

func GetMultipartSize added in v0.6.3

func GetMultipartSize() int64

func HandleMsg

func HandleMsg(msgData []byte) error

func Init

func Init()

func MultipartCopyObj added in v0.7.0

func MultipartCopyObj(ctx context.Context, obj *osdss3.Object, destLoca *LocationInfo, job *flowtype.Job) error

Types

type Migration

type Migration interface {
	Init()
	HandleMsg(msg string)
}

Jump to

Keyboard shortcuts

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