package
0.33.0-alpha.2
Repository: https://github.com/kubernetes/cli-runtime.git
Documentation: pkg.go.dev

# Functions

AllowsColorOutput returns true if the specified writer is a terminal and the process environment indicates color output is supported and desired.
EscapeTerminal escapes terminal special characters in a human readable (but non-reversible) format.
GetNewTabWriter returns a tabwriter that translates tabbed columns in input into properly aligned text.
No description provided by the author
No description provided by the author
IsTerminal returns whether the passed object is a terminal or not.
NewDiscardingPrinter is a printer that discards all objects.
No description provided by the author
No description provided by the author
NewTablePrinter creates a printer suitable for calling PrintObj().
NewTypeSetter constructs a wrapping printer with required params.
NewWarningPrinter returns an implementation of warningPrinter that outputs warnings to the specified writer.
WriteEscaped replaces unsafe terminal characters with replacement strings and writes them to the given writer.

# Variables

No description provided by the author
No description provided by the author

# Structs

GoTemplatePrinter is an implementation of ResourcePrinter which formats data with a Go Template.
HumanReadablePrinter is an implementation of ResourcePrinter which attempts to provide more elegant output.
JSONPathPrinter is an implementation of ResourcePrinter which formats data with jsonpath expression.
JSONPrinter is an implementation of ResourcePrinter which outputs an object as JSON.
NamePrinter is an implementation of ResourcePrinter which outputs "resource/name" pair of an object.
OmitManagedFieldsPrinter wraps an existing printer and omits the managed fields from the object before printing it.
PrintOptions struct defines a struct for various print options.
TypeSetterPrinter is an implementation of ResourcePrinter wraps another printer with types set on the objects.
No description provided by the author
WarningPrinterOptions controls the behavior of a WarningPrinter constructed using NewWarningPrinter().
YAMLPrinter is an implementation of ResourcePrinter which outputs an object as YAML.

# Interfaces

ResourcePrinter is an interface that knows how to print runtime objects.

# Type aliases

ResourcePrinterFunc is a function that can print objects.