Versions in this module Expand all Collapse all v1 v1.24.10 Oct 24, 2017 v1.24.9 Oct 24, 2017 Changes in this version + func AppendAllLabels(showLabels bool, itemLabels map[string]string) string + func AppendLabels(itemLabels map[string]string, columnLabels []string) string + func DecorateTable(table *metav1alpha1.Table, options PrintOptions) error + func FormatResourceName(kind, name string, withKind bool) string + func GetNewTabWriter(output io.Writer) *tabwriter.Writer + func PrintTable(table *metav1alpha1.Table, output io.Writer, options PrintOptions) error + func RelaxedJSONPathExpression(pathExpression string) (string, error) + func ShortHumanDuration(d time.Duration) string + func ValidatePrintHandlerFunc(printFunc reflect.Value) error + func ValidateRowPrintHandlerFunc(printFunc reflect.Value) error + type Column struct + FieldSpec string + Header string + type CustomColumnsPrinter struct + Columns []Column + Decoder runtime.Decoder + NoHeaders bool + func NewCustomColumnsPrinterFromSpec(spec string, decoder runtime.Decoder, noHeaders bool) (*CustomColumnsPrinter, error) + func NewCustomColumnsPrinterFromTemplate(templateReader io.Reader, decoder runtime.Decoder) (*CustomColumnsPrinter, error) + func (s *CustomColumnsPrinter) AfterPrint(w io.Writer, res string) error + func (s *CustomColumnsPrinter) HandledResources() []string + func (s *CustomColumnsPrinter) IsGeneric() bool + func (s *CustomColumnsPrinter) PrintObj(obj runtime.Object, out io.Writer) error + type Describer interface + Describe func(namespace, name string, describerSettings DescriberSettings) (output string, err error) + type DescriberSettings struct + ShowEvents bool + type ErrNoDescriber struct + Types []string + func (e ErrNoDescriber) Error() string + type HumanReadablePrinter struct + func NewHumanReadablePrinter(encoder runtime.Encoder, decoder runtime.Decoder, options PrintOptions) *HumanReadablePrinter + func NewTablePrinter() *HumanReadablePrinter + func (a *HumanReadablePrinter) AddTabWriter(t bool) *HumanReadablePrinter + func (a *HumanReadablePrinter) With(fns ...func(PrintHandler)) *HumanReadablePrinter + func (h *HumanReadablePrinter) AfterPrint(output io.Writer, res string) error + func (h *HumanReadablePrinter) DefaultTableHandler(columnDefinitions []metav1alpha1.TableColumnDefinition, printFunc interface{}) error + func (h *HumanReadablePrinter) EnsurePrintHeaders() + func (h *HumanReadablePrinter) EnsurePrintWithKind(kind string) + func (h *HumanReadablePrinter) GetResourceKind() string + func (h *HumanReadablePrinter) HandledResources() []string + func (h *HumanReadablePrinter) Handler(columns, columnsWithWide []string, printFunc interface{}) error + func (h *HumanReadablePrinter) IsGeneric() bool + func (h *HumanReadablePrinter) PrintObj(obj runtime.Object, output io.Writer) error + func (h *HumanReadablePrinter) PrintTable(obj runtime.Object, options PrintOptions) (*metav1alpha1.Table, error) + func (h *HumanReadablePrinter) TableHandler(columnDefinitions []metav1alpha1.TableColumnDefinition, printFunc interface{}) error + type JSONPathPrinter struct + func NewJSONPathPrinter(tmpl string) (*JSONPathPrinter, error) + func (j *JSONPathPrinter) AfterPrint(w io.Writer, res string) error + func (j *JSONPathPrinter) PrintObj(obj runtime.Object, w io.Writer) error + func (p *JSONPathPrinter) HandledResources() []string + func (p *JSONPathPrinter) IsGeneric() bool + type JSONPrinter struct + func (p *JSONPrinter) AfterPrint(w io.Writer, res string) error + func (p *JSONPrinter) HandledResources() []string + func (p *JSONPrinter) IsGeneric() bool + func (p *JSONPrinter) PrintObj(obj runtime.Object, w io.Writer) error + type NamePrinter struct + Decoders []runtime.Decoder + Mapper meta.RESTMapper + Typer runtime.ObjectTyper + func (p *NamePrinter) AfterPrint(w io.Writer, res string) error + func (p *NamePrinter) HandledResources() []string + func (p *NamePrinter) IsGeneric() bool + func (p *NamePrinter) PrintObj(obj runtime.Object, w io.Writer) error + type ObjectDescriber interface + DescribeObject func(object interface{}, extra ...interface{}) (output string, err error) + type OutputOptions struct + AllowMissingKeys bool + FmtArg string + FmtType string + type PrintHandler interface + DefaultTableHandler func(columns []metav1alpha1.TableColumnDefinition, printFunc interface{}) error + Handler func(columns, columnsWithWide []string, printFunc interface{}) error + TableHandler func(columns []metav1alpha1.TableColumnDefinition, printFunc interface{}) error + type PrintOptions struct + AbsoluteTimestamps bool + ColumnLabels []string + Kind string + NoHeaders bool + ShowAll bool + ShowLabels bool + Wide bool + WithKind bool + WithNamespace bool + type ResourcePrinter interface + AfterPrint func(io.Writer, string) error + HandledResources func() []string + IsGeneric func() bool + PrintObj func(runtime.Object, io.Writer) error + func GetStandardPrinter(outputOpts *OutputOptions, noHeaders bool, mapper meta.RESTMapper, ...) (ResourcePrinter, error) + func NewVersionedPrinter(printer ResourcePrinter, converter runtime.ObjectConvertor, ...) ResourcePrinter + type ResourcePrinterFunc func(runtime.Object, io.Writer) error + func (fn ResourcePrinterFunc) AfterPrint(io.Writer, string) error + func (fn ResourcePrinterFunc) HandledResources() []string + func (fn ResourcePrinterFunc) IsGeneric() bool + func (fn ResourcePrinterFunc) PrintObj(obj runtime.Object, w io.Writer) error + type TablePrinter interface + PrintTable func(obj runtime.Object, options PrintOptions) (*metav1alpha1.Table, error) + type TemplatePrinter struct + func NewTemplatePrinter(tmpl []byte) (*TemplatePrinter, error) + func (p *TemplatePrinter) AfterPrint(w io.Writer, res string) error + func (p *TemplatePrinter) AllowMissingKeys(allow bool) + func (p *TemplatePrinter) HandledResources() []string + func (p *TemplatePrinter) IsGeneric() bool + func (p *TemplatePrinter) PrintObj(obj runtime.Object, w io.Writer) error + type VersionedPrinter struct + func (p *VersionedPrinter) AfterPrint(w io.Writer, res string) error + func (p *VersionedPrinter) HandledResources() []string + func (p *VersionedPrinter) IsGeneric() bool + func (p *VersionedPrinter) PrintObj(obj runtime.Object, w io.Writer) error + type YAMLPrinter struct + func (p *YAMLPrinter) AfterPrint(w io.Writer, res string) error + func (p *YAMLPrinter) HandledResources() []string + func (p *YAMLPrinter) IsGeneric() bool + func (p *YAMLPrinter) PrintObj(obj runtime.Object, w io.Writer) error