{"modulePath":"github.com/AliceO2Group/Control","version":"v0.67.2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executorutil\n\n## Functions\n\n```go\nfunc GetEnvironmentIdFromLabelerType(labeler Labeler) uid.ID\n```\n\n```go\nfunc GetGroupIDs(targetUser *user.User) ([]uint32, []string)\n```\n\n```go\nfunc GetValueFromLabelerType(labeler Labeler, key string) string\n```\n\n```go\nfunc TruncateCommandBeforeTheLastPipe(cmd string, maxLength int) string\n```\nTruncateCommandBeforeTheLastPipe DPL commands are often aggregated in pipes, one after another. In certain contexts only the piece after the last pipe actually matters, while the previous ones only provide awareness of the whole topology. The current IL does not allow us to fit messages longer than 1024 characters, so we end up with truncated logs anyway. This method attempts to keep the piece after the last '|' intact, but will trim anything before if the total command length is going to exceed maxLength.\n\n## Types\n\n```go\ntype Labeler interface {\n\tGetLabels() *mesos.Labels\n}\n```\n\n","path":"github.com/AliceO2Group/Control/executor/executorutil","name":"executorutil","synopsis":"","isRedistributable":true}
