package
1.11.0-alpha.1
Repository: https://github.com/ceshihao/kubernetes.git
Documentation: pkg.go.dev
# Functions
Append all labels to a single column.
No description provided by the author
DecorateTable takes a table and attempts to add label columns and the namespace column.
FormatResourceName receives a resource kind, name, and boolean specifying whether or not to update the current name to "kind/name".
GetNewTabWriter returns a tabwriter that translates tabbed columns in input into properly aligned text.
No description provided by the author
GetStandardPrinter takes a format type, an optional format argument.
No description provided by the author
NewCustomColumnsPrinterFromSpec creates a custom columns printer from a comma separated list of <header>:<jsonpath-field-spec> pairs.
NewCustomColumnsPrinterFromTemplate creates a custom columns printer from a template stream.
NewCustomColumnsPrintFlags returns flags associated with custom-column printing, with default values set.
No description provided by the author
NewGoTemplatePrintFlags returns flags associated with --template printing, with default values set.
NewHumanPrintFlags returns flags associated with human-readable printing, with default values set.
NewHumanReadablePrinter creates a HumanReadablePrinter.
No description provided by the author
NewJSONPathPrintFlags returns flags associated with --template printing, with default values set.
NewJSONYamlPrintFlags returns flags associated with yaml or json printing, with default values set.
NewKubeTemplatePrintFlags returns flags associated with --template printing, with default values set.
NewNamePrintFlags returns flags associated with --name printing, with default values set.
No description provided by the author
NewTablePrinter creates a HumanReadablePrinter suitable for calling PrintTable().
NewVersionedPrinter wraps a printer to convert objects to a known API version prior to printing.
PrintTable prints a table to the provided output respecting the filtering rules for options for wide columns and filtered rows.
RelaxedJSONPathExpression attempts to be flexible with JSONPath expressions, it accepts: * metadata.name (no leading '.' or curly brances '{...}' * {metadata.name} (no leading '.') * .metadata.name (no curly braces '{...}') * {.metadata.name} (complete expression) And transforms them all into a valid jsonpath expression: {.metadata.name}.
ValidatePrintHandlerFunc validates print handler signature.
ValidateRowPrintHandlerFunc validates print handler signature.
# Structs
Column represents a user specified column.
CustomColumnPrinter is a printer that knows how to print arbitrary columns of data from templates specified in the `Columns` array.
CustomColumnsPrintFlags provides default flags necessary for printing custom resource columns from an inline-template or file.
DescriberSettings holds display configuration for each object describer to control what is printed.
ErrNoDescriber is a structured error indicating the provided object or objects cannot be described.
GoTemplatePrinter is an implementation of ResourcePrinter which formats data with a Go Template.
GoTemplatePrintFlags provides default flags necessary for template printing.
HumanPrintFlags provides default flags necessary for printing.
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.
JSONPathPrintFlags provides default flags necessary for template printing.
JSONPrinter is an implementation of ResourcePrinter which outputs an object as JSON.
JSONYamlPrintFlags provides default flags necessary for json/yaml printing.
KubeTemplatePrintFlags composes print flags that provide both a JSONPath and a go-template printer.
NamePrinter is an implementation of ResourcePrinter which outputs "resource/name" pair of an object.
NamePrintFlags provides default flags necessary for printing a resource's fully-qualified Kind.group/name, or a successful message about that resource if an Operation is provided.
No description provided by the author
PrintFlags composes common printer flag structs used across all commands, and provides a method of retrieving a known printer based on flag values provided.
No description provided by the author
VersionedPrinter takes runtime objects and ensures they are converted to a given API version prior to being passed to a nested printer.
YAMLPrinter is an implementation of ResourcePrinter which outputs an object as YAML.
# Interfaces
Describer generates output for the named resource or an error if the output could not be generated.
ObjectDescriber is an interface for displaying arbitrary objects with extra information.
No description provided by the author
ResourcePrinter is an interface that knows how to print runtime objects.
No description provided by the author
# Type aliases
ResourcePrinterFunc is a function that can print objects.