Documentation ¶
Index ¶
- Variables
- func KeySwitch(event interface{}, keyFunc func(ev *tcell.EventKey) bool) bool
- func NewStaticRowProvider(columns []string, rows []commander.Row) commander.RowProvider
- type InitFunc
- type ListTable
- func (lt *ListTable) BindOnChange(rowFunc RowFunc)
- func (lt *ListTable) BindOnInitFinish(initFunc InitFunc)
- func (lt *ListTable) BindOnInitStart(initFunc InitFunc)
- func (lt *ListTable) BindOnKeyPress(rowKeyEventFunc RowKeyEventFunc)
- func (lt *ListTable) Draw()
- func (lt *ListTable) End()
- func (lt *ListTable) HandleEvent(ev tcell.Event) bool
- func (lt *ListTable) Home()
- func (lt *ListTable) Left()
- func (lt *ListTable) MaxSize() (w int, h int)
- func (lt *ListTable) Next()
- func (lt *ListTable) NextPage()
- func (lt *ListTable) OnHide()
- func (lt *ListTable) OnShow()
- func (lt *ListTable) Prev()
- func (lt *ListTable) PrevPage()
- func (lt *ListTable) Render()
- func (lt *ListTable) Resize()
- func (lt *ListTable) Right()
- func (lt *ListTable) RowById(id string) commander.Row
- func (lt *ListTable) SelectId(id string)
- func (lt *ListTable) SelectIndex(index int)
- func (lt *ListTable) SelectedRow() commander.Row
- func (lt *ListTable) SelectedRowId() string
- func (lt *ListTable) SelectedRowIndex() int
- func (lt *ListTable) SetLeft(index int)
- func (lt *ListTable) SetView(view views.View)
- func (lt *ListTable) Size() (int, int)
- type ResourceListTable
- func (r *ResourceListTable) OnHide()
- func (r *ResourceListTable) OnKeyPress(row commander.Row, event *tcell.EventKey) bool
- func (r *ResourceListTable) OnShow()
- func (r ResourceListTable) RowMetadata(row commander.Row) (*metav1.PartialObjectMetadata, error)
- func (r *ResourceListTable) SetExtraRows(rows map[int]commander.Row)
- type RowFunc
- type RowKeyEventFunc
- type TableFormat
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewStaticRowProvider ¶
func NewStaticRowProvider(columns []string, rows []commander.Row) commander.RowProvider
Types ¶
type ListTable ¶
type ListTable struct { views.WidgetWatchers *focus.Focusable // contains filtered or unexported fields }
func NewListTable ¶
func NewListTable(prov commander.RowProvider, format TableFormat, screen commander.ScreenHandler) *ListTable
func NewStaticListTable ¶
func NewStaticListTable(columns []string, rows []commander.Row, format TableFormat, screen commander.ScreenHandler) *ListTable
func (*ListTable) BindOnChange ¶
func (*ListTable) BindOnInitFinish ¶
func (*ListTable) BindOnInitStart ¶
func (*ListTable) BindOnKeyPress ¶
func (lt *ListTable) BindOnKeyPress(rowKeyEventFunc RowKeyEventFunc)
func (*ListTable) SelectIndex ¶
func (*ListTable) SelectedRow ¶
func (*ListTable) SelectedRowId ¶
func (*ListTable) SelectedRowIndex ¶
type ResourceListTable ¶
type ResourceListTable struct { *ListTable // contains filtered or unexported fields }
func NewResourceListTable ¶
func NewResourceListTable(container commander.ResourceContainer, resource *commander.Resource, format TableFormat) *ResourceListTable
func (*ResourceListTable) OnHide ¶
func (r *ResourceListTable) OnHide()
func (*ResourceListTable) OnKeyPress ¶
func (*ResourceListTable) OnShow ¶
func (r *ResourceListTable) OnShow()
func (ResourceListTable) RowMetadata ¶
func (r ResourceListTable) RowMetadata(row commander.Row) (*metav1.PartialObjectMetadata, error)
func (*ResourceListTable) SetExtraRows ¶
func (r *ResourceListTable) SetExtraRows(rows map[int]commander.Row)
type TableFormat ¶
type TableFormat uint16
const ( WithHeaders TableFormat = 1 << iota Wide Short NameOnly NoHorizontalScroll NoVerticalScroll NoActions NoWatch WithFilter AlwaysFilter )
func (TableFormat) Has ¶
func (tf TableFormat) Has(flag TableFormat) bool
Click to show internal directories.
Click to hide internal directories.