Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFactory ¶
RegisterFactory registers one transfer factory to the registry
Types ¶
type Factory ¶
Factory creates a specific Transfer. The "Logger" is used to log the processing messages and the "StopFunc" can be used to check whether the task has been stopped during the processing progress
func GetFactory ¶
GetFactory gets the transfer factory by the specified name
type Logger ¶
type Logger interface { // For debuging Debug(v ...interface{}) // For debuging with format Debugf(format string, v ...interface{}) // For logging info Info(v ...interface{}) // For logging info with format Infof(format string, v ...interface{}) // For warning Warning(v ...interface{}) // For warning with format Warningf(format string, v ...interface{}) // For logging error Error(v ...interface{}) // For logging error with format Errorf(format string, v ...interface{}) }
Logger defines an interface for logging
type Options ¶
type Options struct { // Speed is the data transfer speed for replication, no limit by default. Speed int32 // CopyByChunk defines whether need to copy the artifact blob by chunk, copy by whole blob by default. CopyByChunk bool }
func NewOptions ¶
Click to show internal directories.
Click to hide internal directories.