Documentation ¶
Index ¶
- Constants
- func GetBlockSizeForParallelTransfer(dataObjectLength int64) int64
- func GetCorrectIRODSPath(p string) string
- func GetIRODSDateTime(timestring string) (time.Time, error)
- func GetIRODSPathDirname(p string) string
- func GetIRODSPathFileName(p string) string
- func GetIRODSZone(p string) (string, error)
- func GetLogLevel() int
- func GetNumTasksForParallelTransfer(dataObjectLength int64) int
- func IsLogLevelDebug() bool
- func IsLogLevelError() bool
- func IsLogLevelInfo() bool
- func IsLogLevelWarn() bool
- func LogDebug(message interface{})
- func LogDebugf(format string, v ...interface{})
- func LogError(message interface{})
- func LogErrorf(format string, v ...interface{})
- func LogInfo(message interface{})
- func LogInfof(format string, v ...interface{})
- func LogWarn(message interface{})
- func LogWarningf(format string, v ...interface{})
- func MakeIRODSPath(collectionPath string, dataobjectName string) string
- func ReadBytes(socket net.Conn, buffer []byte, size int) (int, error)
- func Scramble(in, key string) string
- func SetLogLevel(level int)
- func SplitIRODSPath(p string) (string, string)
- func WriteBytes(socket net.Conn, buffer []byte, size int) error
Constants ¶
View Source
const ( // TransferTaskMinLength is a minimum data length of a task for parallel data transfer TransferTaskMinLength int64 = 4 * 1024 * 1024 // 4MB // TransferTaskMaxNum is a maximum number of tasks for parallel data transfer TransferTaskMaxNum int = 4 // TransferBlockSize is a block size of a task TransferBlockSize int64 = 1024 * 1024 // 1MB )
Variables ¶
This section is empty.
Functions ¶
func GetBlockSizeForParallelTransfer ¶ added in v0.5.2
GetBlockSizeForParallelTransfer returns the block size
func GetCorrectIRODSPath ¶
GetCorrectIRODSPath corrects the path
func GetIRODSDateTime ¶
GetIRODSDateTime returns time struct from string IRODS time
func GetIRODSPathDirname ¶
GetIRODSPathDirname returns the dir of the path
func GetIRODSPathFileName ¶
GetIRODSPathFileName returns the filename of the path
func GetIRODSZone ¶
GetIRODSZone returns the zone of the path
func GetNumTasksForParallelTransfer ¶ added in v0.5.2
GetNumTasksForParallelTransfer returns the number transfer tasks to be used
func IsLogLevelDebug ¶
func IsLogLevelDebug() bool
IsLogLevelDebug checks if current log level is debug
func IsLogLevelError ¶
func IsLogLevelError() bool
IsLogLevelError checks if current log level is error
func LogWarningf ¶
func LogWarningf(format string, v ...interface{})
LogWarningf logs warning level message
func MakeIRODSPath ¶
MakeIRODSPath makes the path from collection and data object
func SplitIRODSPath ¶
SplitIRODSPath splits the path into dir and file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.