Documentation
¶
Index ¶
- func EnsureTrailingSlash(path *string)
- func ExtractTaskClassName(taskName string) (string, error)
- func IsDirEmpty(path string) (bool, error)
- func NewUnixTimestamp() string
- func ParseExtraVars(extraVars string) (extraVarsMap map[string]string, err error)
- func ProtoString(s string) *string
- func StringSliceContains(s []string, str string) bool
- func TimeTrack(start time.Time, name string, log *logrus.Entry)
- func TimeTrackFunction(start time.Time, log *logrus.Entry)
- func TrimJitPrefix(taskClassName string) string
- func TruncateString(str string, length int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureTrailingSlash ¶
func EnsureTrailingSlash(path *string)
func ExtractTaskClassName ¶ added in v1.27.0
ExtractTaskClassName extracts the task class name from the provided task name string For example, we extract "readout" from the following string: "alio2-cr1-hv-gw01.cern.ch:/opt/git/ControlWorkflows/tasks/readout@12b11ac4bb652e1835e3e94806a688c951691d5f#2sP21PjpfCQ"
func IsDirEmpty ¶
func NewUnixTimestamp ¶ added in v0.12.90
func NewUnixTimestamp() string
func ParseExtraVars ¶ added in v0.17.0
func ProtoString ¶ added in v0.12.0
helper func to package strings up nicely for protobuf
func StringSliceContains ¶ added in v0.13.90
func TimeTrackFunction ¶ added in v0.23.1
func TrimJitPrefix ¶ added in v1.27.0
TrimJitPrefix removes the JIT prefix from task class names. For example, "jit-ad6f2b64b7502198430d7d7f93f15bf94c088cab-qc-pp-TPC-CalibQC_long" becomes "qc-pp-TPC-CalibQC_long". If input does not contain a JIT prefix, it is returned as it is.
func TruncateString ¶ added in v1.13.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.