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 ...any)
// For debuging with format
Debugf(format string, v ...any)
// For logging info
Info(v ...any)
// For logging info with format
Infof(format string, v ...any)
// For warning
Warning(v ...any)
// For warning with format
Warningf(format string, v ...any)
// For logging error
Error(v ...any)
// For logging error with format
Errorf(format string, v ...any)
}
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.