Documentation ¶
Index ¶
- func ColorStatus(status string, theme *config.Theme) (config.Color, bool)
- type ApplyPrinter
- type DescribePrinter
- type ExplainPrinter
- type JsonPrinter
- type KubectlOutputColoredPrinter
- type OptionsPrinter
- type Printer
- type SingleColoredPrinter
- type TablePrinter
- type VersionClientPrinter
- type VersionPrinter
- type WithFuncPrinter
- type YamlPrinter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApplyPrinter ¶
type DescribePrinter ¶
type DescribePrinter struct { TablePrinter *TablePrinter // contains filtered or unexported fields }
DescribePrinter is a specific printer to print kubectl describe format.
type ExplainPrinter ¶
ExplainPrinter is a specific printer to print kubectl explain format.
type JsonPrinter ¶
type KubectlOutputColoredPrinter ¶
type KubectlOutputColoredPrinter struct { SubcommandInfo *kubectl.SubcommandInfo Recursive bool ObjFreshThreshold time.Duration Theme *config.Theme }
KubectlOutputColoredPrinter is a printer to print data depending on which kubectl subcommand is executed.
type OptionsPrinter ¶
type SingleColoredPrinter ¶
SingleColoredPrinter is a printer to print something in pre-configured color.
type TablePrinter ¶
type TablePrinter struct { WithHeader bool DarkBackground bool Theme *config.Theme ColorDeciderFn func(index int, column string) (config.Color, bool) // contains filtered or unexported fields }
func NewTablePrinter ¶
type VersionClientPrinter ¶ added in v0.3.0
type VersionPrinter ¶
type WithFuncPrinter ¶
WithFuncPrinter is a printer to print something based on injected logic.
Click to show internal directories.
Click to hide internal directories.