Versions in this module Expand all Collapse all v0 v0.1.0 Nov 1, 2024 Changes in this version + func AllowedOutputFormatsForHelp() []string + func Describe(w io.Writer, pairs []*DescriberKV) + type DefaultEventFetcher struct + func NewDefaultEventFetcher(factory common.Factory) *DefaultEventFetcher + func (d DefaultEventFetcher) FetchEventsFor(object client.Object) ([]*corev1.Event, error) + type DescriberKV struct + Key string + Value any + type DescriptionPrinter struct + func (p *DescriptionPrinter) Flush(io.Writer) error + func (p *DescriptionPrinter) PrintNode(node *topology.Node, w io.Writer) error + type JSONPrinter struct + Delegate *printers.OmitManagedFieldsPrinter + func NewJSONPrinter() *JSONPrinter + func (p *JSONPrinter) Flush(io.Writer) error + func (p *JSONPrinter) PrintNode(node *topology.Node, w io.Writer) error + type OutputFormat string + const OutputFormatGraph + const OutputFormatJSON + const OutputFormatTable + const OutputFormatWide + const OutputFormatYAML + func ValidateAndReturnOutputFormat(format string) (OutputFormat, error) + type Printer interface + Flush func(io.Writer) error + PrintNode func(node *topology.Node, w io.Writer) error + func NewPrinter(options PrinterOptions) Printer + type PrinterOptions struct + Clock clock.Clock + Description bool + EventFetcher eventFetcher + OutputFormat OutputFormat + type Table struct + ColumnNames []string + Rows [][]string + UseSeparator bool + func (t *Table) Write(w io.Writer, indent int) error + type TablePrinter struct + func (p *TablePrinter) Flush(w io.Writer) error + func (p *TablePrinter) PrintNode(node *topology.Node, w io.Writer) error + type YAMLPrinter struct + Delegate *printers.OmitManagedFieldsPrinter + func NewYAMLPrinter() *YAMLPrinter + func (p *YAMLPrinter) Flush(io.Writer) error + func (p *YAMLPrinter) PrintNode(node *topology.Node, w io.Writer) error