Documentation
¶
Index ¶
- Constants
- func EscapeXMLSpecialChars(in string) string
- func GetBlockSizeForParallelTransfer(dataObjectLength int64) int64
- func GetCorrectIRODSPath(p string) string
- func GetIRODSDateTime(timestring string) (time.Time, error)
- func GetIRODSPathDepth(p string) int
- func GetIRODSPathDirname(p string) string
- func GetIRODSPathFileName(p string) string
- func GetIRODSZone(p string) (string, error)
- func GetNumTasksForParallelTransfer(dataObjectLength int64) int
- func GetParentIRODSDirs(p string) []string
- func GetRelativeIRODSPath(base string, target string) (string, error)
- 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 SplitIRODSPath(p string) (string, string)
- func WaitTimeout(wg *sync.WaitGroup, timeout time.Duration) bool
- func WriteBytes(socket net.Conn, buffer []byte, size int) error
Constants ¶
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 EscapeXMLSpecialChars ¶ added in v0.9.7
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 GetIRODSPathDepth ¶ added in v0.9.4
GetIRODSPathDepth returns depth of the path "/" returns 0 "abc" returns -1 "/abc" returns 0 "/a/b" returns 1 "/a/b/c" returns 2
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 GetParentIRODSDirs ¶ added in v0.9.4
GetParentDirs returns all parent dirs
func GetRelativeIRODSPath ¶ added in v0.9.4
GetRelativePath returns relative path
func MakeIRODSPath ¶
MakeIRODSPath makes the path from collection and data object
func SplitIRODSPath ¶
SplitIRODSPath splits the path into dir and file
func WaitTimeout ¶ added in v0.9.3
WaitTimeout waits for the waitgroup for the specified max timeout. Returns true if waiting timed out.
Types ¶
This section is empty.