# Functions
AddPreRunE adds an error returning pre-run function to the supplied command, existing pre-run actions will run AFTER the supplied function, and only if the supplied pre-run function does not return an error.
ConfigGlobals sets up persistent globals for the supplied configuration.
HandleStart runs the supplied function with the server URL once the server is listening.
MapErrors wraps all of the error returning functions on the supplied command (and it's sub-commands) so that they pass any errors through the mapping function.
NewContextServer creates a new context server bound to the lifecycle of the supplied context.
NewResourceReader returns a new resource reader for the supplied byte stream.
SetApplicationsAPI creates a new application API interface from the supplied configuration.
SetExperimentsAPI creates a new experiments API interface from the supplied configuration.
SetFlagValues updates the named flag usage and completion to include possible choices.
SetKubePrinter assigns a client-go enabled resource printer during the pre-run of the supplied command.
SetPrinter assigns the resource printer during the pre-run of the supplied command.
SetStreams updates the streams using the supplied command.
ShutdownOnIdle shuts the server down when all connections have been idle for a specified duration.
ShutdownOnInterrupt shuts the server down in response to a SIGINT or SIGTERM.
StreamsPreRun is intended to be used as a pre-run function for commands when no other action is required.
WithContextE wraps a function that accepts a context in one that accepts a command and argument slice.
WithoutArgsE wraps a no-argument function in one that accepts a command and argument slice.
WithServerOptions exposes the underlying HTTP server for configuration.
# Constants
PrinterAllowedFormats is the configuration key for setting the list of allowed output formats.
PrinterColumns is the configuration key for setting the initial column list.
PrinterHideStatus is the configuration key for setting the initial hide status flag value.
PrinterNoHeader is the configuration key for setting the initial suppress header flag value.
PrinterOutputFormat is the configuration key for setting the initial output format.
PrinterShowLabels is the configuration key for setting the initial show labels flag value.
PrinterStreamList is the configuration key for setting the initial stream list status flag value.
# Variables
OnlyVersion is a group version that only resolves if there is a single possible kind.
# Structs
ContextServer is a server bound to a context lifecycle.
IOStreams allows individual commands access to standard process streams (or their overrides).
NoPrinterError is an error occurring when no suitable printer is available.
ResourceReader helps properly decode Kubernetes resources on the CLI.
# Interfaces
AdditionalFormat is a factory function for registering new formats.
ResourcePrinter formats an object to a byte stream.
TableMeta is used to inspect objects for formatting.
# Type aliases
ContextServerOption is an option that can be applied to a context server.
ResourcePrinterFunc allows a simple function to be used as resource printer.