Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NamespaceTypeIcons = map[species.NamespaceType]string{ species.CLONE_NEWCGROUP: "🔧", species.CLONE_NEWIPC: "✉ ", species.CLONE_NEWNS: "📁", species.CLONE_NEWNET: "⇄ ", species.CLONE_NEWPID: "🏃", species.CLONE_NEWUSER: "👤", species.CLONE_NEWUTS: "💻", }
NamespaceTypeIcons maps individual Linux-kernel namespace types (species.NNamespaceTypeIcons) to Unicode characters to be used as icons.
Functions ¶
func IconSetupCLI ¶
IconSetupCLI is a plugin function that registers the CLI "--icon" flag.
func NamespaceIcon ¶
NamespaceIcon returns an Unicode string which can be displayed as an "icon" for the specified namespace. If showing namespace icons is disabled, then an empty string is always returned instead. If necessary, the returned string contains padding.
func NamespaceReferenceLabel ¶
NamespaceReferenceLabel returns a string describing a reference to the specified namespace, either in form of a (leader) process name and PID, or if there is no such process then in form of a filesystem reference.
TODO: allow styling with simplified versus full representation (ealdorman versus all leader processes)
Types ¶
This section is empty.