Documentation
¶
Index ¶
Constants ¶
View Source
const (
CgroupFlagName = "cgroup"
)
Names of the CLI flags defined and used in this package.
Variables ¶
View Source
var ControlGroupNameModes = map[ControlGroupNames][]string{ CgroupShortened: {"short"}, CgroupComplete: {"full", "complete"}, }
ControlGroupNameModes specifies the mapping between the user-facing CLI flag values and the program-internal flag values.
Functions ¶
func CgroupDisplayName ¶
CgroupDisplayName returns a function configured based on CLI flags, where the returned function takes a control group name (path) and returns a name better suited for display. In particular, it optionally shortens 64 hex digit IDs as used by Docker for identifying containers to the Docker-typical 12 hex digit "digest".
Types ¶
type ControlGroupNames ¶
ControlGroupNames defines the enumeration flag type for controlling optimizing control group names for display (or not).
const ( // CgroupShortened enables optimizing the display of Docker container IDs. CgroupShortened ControlGroupNames = iota // CgroupComplete switches off any display optimization of control group // names. CgroupComplete )
Click to show internal directories.
Click to hide internal directories.