printer

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TablesBuilder

type TablesBuilder struct {
	// contains filtered or unexported fields
}

TablesBuilder renders progress, events, and logs tables using kubedog's state stores. It is inspired by werf/nelm internal tracker printer, but suppresses healthy pod logs by default.

func NewTablesBuilder

func NewTablesBuilder(taskStore *statestore.TaskStore, logStore *kdutil.Concurrent[*logstore.LogStore], opts TablesBuilderOptions) *TablesBuilder

func (*TablesBuilder) BuildEventTables

func (b *TablesBuilder) BuildEventTables() (tables map[string]prtable.Writer, nonEmpty bool)

BuildEventTables returns per-resource event tables.

func (*TablesBuilder) BuildLogTables

func (b *TablesBuilder) BuildLogTables() (tables map[string]prtable.Writer, nonEmpty bool)

BuildLogTables returns per-resource log tables, optionally suppressing healthy pod logs.

func (*TablesBuilder) BuildProgressTable

func (b *TablesBuilder) BuildProgressTable() (table prtable.Writer, notEmpty bool)

BuildProgressTable returns a progress table with readiness/presence/absence information.

func (*TablesBuilder) SetMaxTableWidth

func (b *TablesBuilder) SetMaxTableWidth(maxTableWidth int)

type TablesBuilderOptions

type TablesBuilderOptions struct {
	DefaultNamespace string
	MaxTableWidth    int
	OnlyErrorLogs    bool // when true, print pod logs only if pod is failing (CrashLoop/ImagePull/etc.)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL