util

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2021 License: BSD-3-Clause Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCorrectIRODSPath

func GetCorrectIRODSPath(p string) string

GetCorrectIRODSPath corrects the path

func GetIRODSDateTime

func GetIRODSDateTime(timestring string) (time.Time, error)

GetIRODSDateTime returns time struct from string IRODS time

func GetIRODSPathDirname

func GetIRODSPathDirname(p string) string

GetIRODSPathDirname returns the dir of the path

func GetIRODSPathFileName

func GetIRODSPathFileName(p string) string

GetIRODSPathFileName returns the filename of the path

func GetIRODSZone

func GetIRODSZone(p string) (string, error)

GetIRODSZone returns the zone of the path

func GetLogLevel

func GetLogLevel() int

GetLogLevel returns current log level

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 IsLogLevelInfo

func IsLogLevelInfo() bool

IsLogLevelInfo checks if current log level is info

func IsLogLevelWarn

func IsLogLevelWarn() bool

IsLogLevelWarn checks if current log level is warn

func LogDebug

func LogDebug(message interface{})

LogDebug logs debug level message

func LogDebugf

func LogDebugf(format string, v ...interface{})

LogDebugf logs debug level message

func LogError

func LogError(message interface{})

LogError logs error level message

func LogErrorf

func LogErrorf(format string, v ...interface{})

LogErrorf logs error level message

func LogInfo

func LogInfo(message interface{})

LogInfo logs info level message

func LogInfof

func LogInfof(format string, v ...interface{})

LogInfof logs info level message

func LogWarn

func LogWarn(message interface{})

LogWarn logs warn level message

func LogWarningf

func LogWarningf(format string, v ...interface{})

LogWarningf logs warning level message

func MakeIRODSPath

func MakeIRODSPath(collectionPath string, dataobjectName string) string

MakeIRODSPath makes the path from collection and data object

func ReadBytes

func ReadBytes(socket net.Conn, buffer []byte, size int) (int, error)

ReadBytes reads data from socket in a particular size

func SetLogLevel

func SetLogLevel(level int)

SetLogLevel sets log level

func SplitIRODSPath

func SplitIRODSPath(p string) (string, string)

SplitIRODSPath splits the path into dir and file

func WriteBytes

func WriteBytes(socket net.Conn, buffer []byte, size int) error

WriteBytes writes data to socket

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL