Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransferMethod ¶
type TransferMethod string
TransferMethod determines transfer method
const ( // TransferMethodGet is for get TransferMethodGet TransferMethod = "GET" // TransferMethodPut is for put TransferMethodPut TransferMethod = "PUT" // TransferMethodBput is for bput command TransferMethodBput TransferMethod = "BPUT" // TransferMethodCopy is for cp command TransferMethodCopy TransferMethod = "COPY" // TransferMethodDelete is for delete command TransferMethodDelete TransferMethod = "DELETE" // TransferMethodUnknown is for unknown command TransferMethodUnknown TransferMethod = "" )
func GetTransferMethod ¶
func GetTransferMethod(method string) TransferMethod
GetTransferMethod returns transfer method
type TransferMode ¶
type TransferMode string
const ( TransferModeICAT TransferMode = "icat" TransferModeWebDAV TransferMode = "webdav" )
func GetTransferMode ¶
func GetTransferMode(mode string) TransferMode
GetTransferMode returns transfer mode
func (TransferMode) Valid ¶
func (t TransferMode) Valid() bool
type TransferReportFile ¶
type TransferReportFile struct {
Method TransferMethod `json:"method"` // get, put, bput ...
StartAt time.Time `json:"start_time"`
EndAt time.Time `json:"end_at"`
SourcePath string `json:"source_path"`
DestPath string `json:"dest_path"`
SourceSize int64 `json:"source_size"`
SourceChecksumAlgorithm string `json:"source_checksum_algorithm"`
SourceChecksum string `json:"source_checksum"`
DestSize int64 `json:"dest_size"`
DestChecksumAlgorithm string `json:"dest_checksum_algorithm"`
DestChecksum string `json:"dest_checksum"`
Error error `json:"error,omitempty"`
Notes []string `json:"notes"` // additional notes
}
func NewTransferReportFileFromTransferResult ¶
func NewTransferReportFileFromTransferResult(result *irodsclient_fs.FileTransferResult, method TransferMethod, err error, notes []string) (*TransferReportFile, error)
type TransferReportManager ¶
type TransferReportManager struct {
// contains filtered or unexported fields
}
func NewTransferReportManager ¶
func NewTransferReportManager(report bool, reportPath string, reportToStdout bool) (*TransferReportManager, error)
NewTransferReportManager creates a new TransferReportManager
func (*TransferReportManager) AddFile ¶
func (manager *TransferReportManager) AddFile(file *TransferReportFile) error
AddFile adds a new file transfer
func (*TransferReportManager) AddTransfer ¶
func (manager *TransferReportManager) AddTransfer(result *irodsclient_fs.FileTransferResult, method TransferMethod, err error, notes []string) error
AddTransfer adds a new file transfer
func (*TransferReportManager) Release ¶
func (manager *TransferReportManager) Release()
Release releases resources
Click to show internal directories.
Click to hide internal directories.