Versions in this module Expand all Collapse all v1 v1.0.7 Jan 20, 2025 v1.0.1 Jan 14, 2025 Changes in this version + func AmendTaskExtraAttr(origin, new string) string + func CheckFileLength(filepath string) error + func CheckMailType(mailtype string) bool + func CheckNameValid(name string) bool + func CheckNodeList(nodeStr string) bool + func CheckTaskArgs(task *protos.TaskToCtld) error + func CheckTaskExtraAttr(attr string) bool + func ErrMsg(err_code protos.ErrCode) string + func FoundFirstNumberWithoutBrackets(input string) (int, int, bool) + func HostNameListToStr(hostList []string) string + func HostNameListToStr_(hostList []string) ([]string, bool) + func InvalidDuration() *durationpb.Duration + func ParseDuration(time string, duration *durationpb.Duration) bool + func ParseFloatWithPrecision(val string, decimalPlaces int) (float64, error) + func ParseGres(gres string) *protos.DeviceMap + func ParseHostList(hostStr string) ([]string, bool) + func ParseInRamTaskStatusList(statesStr string) ([]protos.TaskStatus, error) + func ParseInterval(interval string, intervalpb *protos.TimeInterval) (err error) + func ParseJobIdList(jobIds string, splitStr string) ([]uint32, error) + func ParseMemStringAsByte(mem string) (uint64, error) + func ParseNodeList(nodeStr string) ([]string, bool) + func ParseStringParamList(parameters string, splitStr string) ([]string, error) + func ParseTaskStatusList(statesStr string) ([]protos.TaskStatus, error) + func ParseTaskStatusName(state string) (protos.TaskStatus, error) + func ParseTime(ts string) (time.Time, error) + func RemoveBracketsWithoutDashOrComma(input string) string + func SecondTimeFormat(second int64) string + type CraneCmdError = int + const ErrorBackend + const ErrorCmdArg + const ErrorGeneric + const ErrorInvalidFormat + const ErrorNetwork + const ErrorSuccess