executorutil

package
v0.67.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvironmentIdFromLabelerType

func GetEnvironmentIdFromLabelerType(labeler Labeler) uid.ID

func GetGroupIDs

func GetGroupIDs(targetUser *user.User) ([]uint32, []string)

func GetValueFromLabelerType added in v0.49.0

func GetValueFromLabelerType(labeler Labeler, key string) string

func TruncateCommandBeforeTheLastPipe added in v0.57.0

func TruncateCommandBeforeTheLastPipe(cmd string, maxLength int) string

TruncateCommandBeforeTheLastPipe 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.

Types

type Labeler

type Labeler interface {
	GetLabels() *mesos.Labels
}

Jump to

Keyboard shortcuts

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