Versions in this module Expand all Collapse all v0 v0.28.202 Oct 19, 2023 v0.28.201 Oct 19, 2023 Changes in this version + var InternalObjectPreventer = &illegalPackageSourceChecker + var InternalObjectPrinterErr = "a versioned object must be passed to a printer" + func AllowsColorOutput(w io.Writer) bool + func EscapeTerminal(in string) string + func GetNewTabWriter(output io.Writer) *tabwriter.Writer + func GetObjectGroupKind(obj runtime.Object) schema.GroupKind + func IsInternalObjectError(err error) bool + func IsTerminal(i interface{}) bool + func WriteEscaped(writer io.Writer, output string) error + type GoTemplatePrinter struct + func NewGoTemplatePrinter(tmpl []byte) (*GoTemplatePrinter, error) + func (p *GoTemplatePrinter) AllowMissingKeys(allow bool) + func (p *GoTemplatePrinter) PrintObj(obj runtime.Object, w io.Writer) error + type HumanReadablePrinter struct + func (h *HumanReadablePrinter) PrintObj(obj runtime.Object, output io.Writer) error + type JSONPathPrinter struct + func NewJSONPathPrinter(tmpl string) (*JSONPathPrinter, error) + func (j *JSONPathPrinter) PrintObj(obj runtime.Object, w io.Writer) error + type JSONPrinter struct + func (p *JSONPrinter) PrintObj(obj runtime.Object, w io.Writer) error + type NamePrinter struct + Operation string + ShortOutput bool + func (p *NamePrinter) PrintObj(obj runtime.Object, w io.Writer) error + type OmitManagedFieldsPrinter struct + Delegate ResourcePrinter + func (p *OmitManagedFieldsPrinter) PrintObj(obj runtime.Object, w io.Writer) error + type PrintOptions struct + AllowMissingKeys bool + ColumnLabels []string + Kind schema.GroupKind + NoHeaders bool + ShowLabels bool + SortBy string + Wide bool + WithKind bool + WithNamespace bool + type ResourcePrinter interface + PrintObj func(runtime.Object, io.Writer) error + func NewTablePrinter(options PrintOptions) ResourcePrinter + type ResourcePrinterFunc func(runtime.Object, io.Writer) error + func NewDiscardingPrinter() ResourcePrinterFunc + func (fn ResourcePrinterFunc) PrintObj(obj runtime.Object, w io.Writer) error + type TypeSetterPrinter struct + Delegate ResourcePrinter + Typer runtime.ObjectTyper + func NewTypeSetter(typer runtime.ObjectTyper) *TypeSetterPrinter + func (p *TypeSetterPrinter) PrintObj(obj runtime.Object, w io.Writer) error + func (p *TypeSetterPrinter) ToPrinter(delegate ResourcePrinter) ResourcePrinter + func (p *TypeSetterPrinter) WrapToPrinter(delegate ResourcePrinter, err error) (ResourcePrinter, error) + type WarningPrinter struct + func NewWarningPrinter(out io.Writer, opts WarningPrinterOptions) *WarningPrinter + func (w *WarningPrinter) Print(message string) + type WarningPrinterOptions struct + Color bool + type YAMLPrinter struct + func (p *YAMLPrinter) PrintObj(obj runtime.Object, w io.Writer) error