Documentation ¶
Index ¶
- Constants
- func GetBlockSizeForParallelTransfer(dataObjectLength int64) int64
- func GetCorrectIRODSPath(p string) string
- func GetDirname(p string) string
- func GetFileName(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 GetNumTasksForParallelTransfer(dataObjectLength int64) int
- func GetParentDirs(p string) []string
- func GetPathDepth(p string) int
- func GetRelativePath(p1 string, p2 string) (string, error)
- func IsAbsolutePath(p string) bool
- func JoinPath(dirPath string, filePath string) string
- 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 SplitPath(p string) (string, string)
- 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 GetBlockSizeForParallelTransfer ¶ added in v0.5.2
GetBlockSizeForParallelTransfer returns the block size
func GetCorrectIRODSPath ¶
GetCorrectIRODSPath corrects the path
func GetDirname ¶ added in v0.6.1
GetDirname returns the dir of the path
func GetFileName ¶ added in v0.6.1
GetFileName returns the filename of 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 GetParentDirs ¶ added in v0.6.1
GetParentDirs returns all parent dirs
func GetPathDepth ¶ added in v0.6.1
GetPathDepth returns depth of the path "/" returns 0 "abc" returns -1 "/abc" returns 0 "/a/b" returns 1 "/a/b/c" returns 2
func GetRelativePath ¶ added in v0.6.1
GetRelativePath returns relative path
func IsAbsolutePath ¶ added in v0.6.1
IsAbsolutePath returns true if the path is absolute
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.