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