kubernetes/staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter.go

var _

type printHandler

var statusHandlerEntry

var statusColumnDefinitions

var defaultHandlerEntry

var objectMetaColumnDefinitions

var withEventTypePrefixColumns

var withNamespacePrefixColumns

type HumanReadablePrinter

// NewTablePrinter creates a printer suitable for calling PrintObj().
func NewTablePrinter(options PrintOptions) ResourcePrinter {}

func printHeader(columnNames []string, w io.Writer) error {}

// PrintObj prints the obj in a human-friendly format according to the type of the obj.
func (h *HumanReadablePrinter) PrintObj(obj runtime.Object, output io.Writer) error {}

// printTable prints a table to the provided output respecting the filtering rules for options
// for wide columns and filtered rows. It filters out rows that are Completed. You should call
// decorateTable if you receive a table from a remote server before calling printTable.
func printTable(table *metav1.Table, output io.Writer, options PrintOptions) error {}

type cellValueFunc

type columnAddPosition

const beginning

const end

func addColumns(pos columnAddPosition, table *metav1.Table, columns []metav1.TableColumnDefinition, valueFuncs []cellValueFunc) error {}

// decorateTable takes a table and attempts to add label columns and the
// namespace column. It will fill empty columns with nil (if the object
// does not expose metadata). It returns an error if the table cannot
// be decorated.
func decorateTable(table *metav1.Table, options PrintOptions) error {}

// printRowsForHandlerEntry prints the incremental table output (headers if the current type is
// different from lastType) including all the rows in the object. It returns the current type
// or an error, if any.
func printRowsForHandlerEntry(output io.Writer, handler *printHandler, eventType string, obj runtime.Object, options PrintOptions, includeHeaders bool) error {}

var formattedEventType

func formatEventType(eventType string) string {}

// printRows writes the provided rows to output.
func printRows(output io.Writer, eventType string, rows []metav1.TableRow, options PrintOptions) {}

func formatLabelHeaders(columnLabels []string) []string {}

// headers for --show-labels=true
func formatShowLabelsHeader(showLabels bool) []string {}

// labelValues returns a slice of value columns matching the requested print options.
func labelValues(itemLabels map[string]string, opts PrintOptions) []string {}

// appendLabelCells returns a slice of value columns matching the requested print options.
// Intended for use with tables.
func appendLabelCells(values []interface{}

func printStatus(obj runtime.Object, options PrintOptions) ([]metav1.TableRow, error) {}

func printObjectMeta(obj runtime.Object, options PrintOptions) ([]metav1.TableRow, error) {}

// translateTimestampSince returns the elapsed time since timestamp in
// human-readable approximation.
func translateTimestampSince(timestamp metav1.Time) string {}