output

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

NamespaceTypeIcons maps individual Linux-kernel namespace types (species.NNamespaceTypeIcons) to Unicode characters to be used as icons.

Functions

func IconSetupCLI

func IconSetupCLI(rootCmd *cobra.Command)

IconSetupCLI is a plugin function that registers the CLI "--icon" flag.

func NamespaceIcon

func NamespaceIcon(ns lxkns.Namespace) (icon string)

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

func NamespaceReferenceLabel(ns lxkns.Namespace) string

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.

Jump to

Keyboard shortcuts

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