Documentation
¶
Index ¶
Constants ¶
View Source
const ( Path = "~/.qscamel" ConfigPath = Path + "/qscamel.yaml" DatabasePath = Path + "/qscamel.db" LogPath = Path + "/qscamel.log" PIDPath = Path + "/qscamel.pid" )
Path store all path related constants.
View Source
const ( EndpointAliyun = "aliyun" EndpointFs = "fs" EndpointGCS = "gcs" EndpointQingStor = "qingstor" EndpointQiniu = "qiniu" EndpointS3 = "s3" EndpointUpyun = "upyun" )
Endpoint the const for all supported endpoint.
View Source
const ( SourceEndpoint uint8 = iota DestinationEndpoint )
Constants for endpoint type.
View Source
const ( TaskTypeCopy = "copy" TaskTypeFetch = "fetch" TaskTypeVerify = "verify" )
Constants for task type.
View Source
const ( TaskStatusRunning = "running" TaskStatusFinished = "finished" )
Constants for task status.
View Source
const ( KeyTaskList = "t" KeyTaskPrefix = "t:" KeyCurrentJob = "cj" KeyJobPrefix = "j:" KeyObjectPrefix = "o:" )
Constants for database key.
View Source
const ( Name = "qscamel" ShortDescription = "A command line tool to migrate data" LongDescription = "qscamel is a command line tool to migrate data between different endpoint efficiently." )
Name stores all name related const.
View Source
const DefaultConfigContent = `thread_num: 100
log_file: ~/.qscamel/qscamel.log
log_level: error
database_file: ~/.qscamel/qscamel.db
`
DefaultConfigContent is the default config config.
View Source
const Version = "2.0.0-beta.4"
Version number string.
Variables ¶
View Source
var ( // DefaultConcurrency is default num of objects being migrated concurrently. DefaultConcurrency = runtime.NumCPU() * 100 )
View Source
var ( // ErrTaskMismatch is returned when task content has been changed. ErrTaskMismatch = errors.New("task content mismatch") )
These errors can be returned when handle task.
Functions ¶
func FormatObjectKey ¶
FormatObjectKey will format a object key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.