Versions in this module Expand all Collapse all v0 v0.32.7 Nov 16, 2024 v0.32.6 Nov 10, 2024 v0.32.5 Jun 15, 2024 v0.32.4 Mar 20, 2024 v0.32.3 Mar 6, 2024 v0.32.2 Mar 6, 2024 v0.32.1 Mar 5, 2024 v0.32.0 Mar 2, 2024 Changes in this version + var AddColor tcell.Color + var CompletedColor tcell.Color + var ErrColor tcell.Color + var HighlightColor tcell.Color + var KillColor tcell.Color + var ModColor tcell.Color + var PendingColor tcell.Color + var StdColor tcell.Color + func DefaultColorer(ns string, h Header, re *RowEvent) tcell.Color + func GenericHydrate(ns string, table *metav1.Table, rr Rows, re Renderer) error + func Hydrate(ns string, oo []runtime.Object, rr Rows, re Renderer) error + func IsValid(ns string, h Header, r Row) bool + func Less(isNumber, isDuration, isCapacity bool, id1, id2, v1, v2 string) bool + type ColorerFunc func(ns string, h Header, re *RowEvent) tcell.Color + type DecoratorFunc func(string) string + type DeltaRow []string + func NewDeltaRow(o, n Row, h Header) DeltaRow + func (d DeltaRow) Clone() DeltaRow + func (d DeltaRow) Customize(cols []int, out DeltaRow) + func (d DeltaRow) Diff(r DeltaRow, ageCol int) bool + func (d DeltaRow) IsBlank() bool + func (d DeltaRow) Labelize(cols []int, labelCol int) DeltaRow + type Fields []string + func (f Fields) Clone() Fields + func (f Fields) Customize(cols []int, out Fields) + func (f Fields) Diff(ff Fields, ageCol int) bool + type FilterOpts struct + Filter string + Invert bool + Toast bool + type Generic interface + Header func(ns string) Header + Render func(o interface{}, ns string, row *Row) error + SetTable func(ns string, table *metav1.Table) + type Header []HeaderColumn + func (h Header) Clear() Header + func (h Header) Clone() Header + func (h Header) ColumnNames(wide bool) []string + func (h Header) Customize(cols []string, wide bool) Header + func (h Header) Diff(header Header) bool + func (h Header) Dump() + func (h Header) HasAge() bool + func (h Header) IndexOf(colName string, includeWide bool) (int, bool) + func (h Header) IsCapacityCol(col int) bool + func (h Header) IsMetricsCol(col int) bool + func (h Header) IsTimeCol(col int) bool + func (h Header) Labelize(cols []int, labelCol int, rr *RowEvents) Header + func (h Header) MapIndices(cols []string, wide bool) []int + type HeaderColumn struct + Align int + Capacity bool + Decorator DecoratorFunc + Hide bool + MX bool + Name string + Time bool + VS bool + Wide bool + func (h HeaderColumn) Clone() HeaderColumn + type ReRangeFn func(int, RowEvent) bool + type Renderer interface + ColorerFunc func() ColorerFunc + Header func(ns string) Header + IsGeneric func() bool + Render func(o interface{}, ns string, row *Row) error + type ResEvent int + const EventAdd + const EventClear + const EventDelete + const EventUnchanged + const EventUpdate + const NAValue + type Row struct + Fields Fields + ID string + func NewRow(size int) Row + func (r Row) Clone() Row + func (r Row) Customize(cols []int) Row + func (r Row) Diff(ro Row, ageCol int) bool + func (r Row) Labelize(cols []int, labelCol int, labels []string) Row + func (r Row) Len() int + type RowEvent struct + Deltas DeltaRow + Kind ResEvent + Row Row + func NewRowEvent(kind ResEvent, row Row) RowEvent + func NewRowEventWithDeltas(row Row, delta DeltaRow) RowEvent + func (r RowEvent) Clone() RowEvent + func (r RowEvent) Customize(cols []int) RowEvent + func (r RowEvent) Diff(re RowEvent, ageCol int) bool + func (r RowEvent) ExtractHeaderLabels(labelCol int) []string + func (r RowEvent) Labelize(cols []int, labelCol int, labels []string) RowEvent + type RowEventSorter struct + Asc bool + Events *RowEvents + Index int + IsCapacity bool + IsDuration bool + IsNumber bool + NS string + func (r RowEventSorter) Len() int + func (r RowEventSorter) Less(i, j int) bool + func (r RowEventSorter) Swap(i, j int) + type RowEvents struct + func NewRowEvents(size int) *RowEvents + func NewRowEventsWithEvts(ee ...RowEvent) *RowEvents + func (r *RowEvents) Add(re RowEvent) + func (r *RowEvents) At(i int) (RowEvent, bool) + func (r *RowEvents) Clear() + func (r *RowEvents) Clone() *RowEvents + func (r *RowEvents) Customize(cols []int) *RowEvents + func (r *RowEvents) Delete(fqn string) error + func (r *RowEvents) Diff(re *RowEvents, ageCol int) bool + func (r *RowEvents) Empty() bool + func (r *RowEvents) ExtractHeaderLabels(labelCol int) []string + func (r *RowEvents) FindIndex(id string) (int, bool) + func (r *RowEvents) Get(id string) (RowEvent, bool) + func (r *RowEvents) Labelize(cols []int, labelCol int, labels []string) *RowEvents + func (r *RowEvents) Len() int + func (r *RowEvents) Range(f ReRangeFn) + func (r *RowEvents) Set(i int, re RowEvent) + func (r *RowEvents) Sort(ns string, sortCol int, isDuration, numCol, isCapacity, asc bool) + func (r *RowEvents) Upsert(re RowEvent) + type RowSorter struct + Asc bool + Index int + IsCapacity bool + IsDuration bool + IsNumber bool + Rows Rows + func (s RowSorter) Len() int + func (s RowSorter) Less(i, j int) bool + func (s RowSorter) Swap(i, j int) + type Rows []Row + func (rr Rows) Delete(id string) Rows + func (rr Rows) Find(id string) (int, bool) + func (rr Rows) Sort(col int, asc, isNum, isDur, isCapacity bool) + func (rr Rows) Upsert(r Row) Rows + type SortColumn struct + ASC bool + Name string + type SortFn func(rows Rows, sortCol SortColumn) + type TableData struct + func NewTableData(gvr client.GVR) *TableData + func NewTableDataFromTable(td *TableData) *TableData + func NewTableDataFull(gvr client.GVR, ns string, h Header, re *RowEvents) *TableData + func NewTableDataWithRows(gvr client.GVR, h Header, re *RowEvents) *TableData + func (t *TableData) AddRow(re RowEvent) + func (t *TableData) Clear() + func (t *TableData) Clone() *TableData + func (t *TableData) ColumnNames(w bool) []string + func (t *TableData) Customize(vs *config.ViewSetting, sc SortColumn, manual, wide bool) (*TableData, SortColumn) + func (t *TableData) Delete(newKeys map[string]struct{}) + func (t *TableData) Diff(t2 *TableData) bool + func (t *TableData) Empty() bool + func (t *TableData) Filter(f FilterOpts) *TableData + func (t *TableData) FindRow(id string) (RowEvent, bool) + func (t *TableData) GetHeader() Header + func (t *TableData) GetNamespace() string + func (t *TableData) GetRowEvents() *RowEvents + func (t *TableData) HeadCol(n string, w bool) (HeaderColumn, int) + func (t *TableData) Header() Header + func (t *TableData) HeaderCount() int + func (t *TableData) IndexOfHeader(h string) (int, bool) + func (t *TableData) Labelize(labels []string) *TableData + func (t *TableData) Reconcile(ctx context.Context, r Renderer, oo []runtime.Object) error + func (t *TableData) Reset(ns string) + func (t *TableData) RowAt(idx int) (RowEvent, bool) + func (t *TableData) RowCount() int + func (t *TableData) RowsRange(f ReRangeFn) + func (t *TableData) SetHeader(ns string, h Header) + func (t *TableData) SetRow(idx int, re RowEvent) + func (t *TableData) SetRowEvents(re *RowEvents) + func (t *TableData) Sort(sc SortColumn) + func (t *TableData) Update(rows Rows)