Documentation
¶
Index ¶
- Variables
- type AppView
- type EventHandler
- type PageTrack
- type PrimitiveQueue
- type TableView
- func (t *TableView) BackPage()
- func (t *TableView) GetAction() []types.Action
- func (t *TableView) GetApplication() *tview.Application
- func (t *TableView) GetClientSet() *kubernetes.Clientset
- func (t *TableView) GetCurrentPage() string
- func (t *TableView) GetCurrentPrimitive() tview.Primitive
- func (t *TableView) GetNestedTable(kind string) *TableView
- func (t *TableView) GetResourceKind() string
- func (t *TableView) GetSelectionName() string
- func (t *TableView) GetTable() *tview.Table
- func (t *TableView) GetTableView(kind string) *TableView
- func (t *TableView) InsertDialog(name string, page tview.Primitive, dialog tview.Primitive)
- func (t *TableView) LastPage()
- func (t *TableView) Navigate(r rune)
- func (t *TableView) NewNestTableView(kind types.ResourceKind, feeder datafeeder.DataSource, actions []types.Action, ...) *TableView
- func (t *TableView) Refresh()
- func (t *TableView) RefreshManual()
- func (t *TableView) RootPage()
- func (t *TableView) SetCurrentPage(page string)
- func (t *TableView) SetTableView(kind string, nt *TableView)
- func (t *TableView) ShowSearch()
- func (t *TableView) SwitchPage(page string, draw tview.Primitive)
- func (t *TableView) SwitchToRootPage()
- func (t *TableView) UpdateFeeder(kind string, feeder datafeeder.DataSource)
- func (t *TableView) UpdateStatus(status string, isError bool) tview.Primitive
- func (t *TableView) UpdateWithSearch(search string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EscapeEventHandler = func(app *AppView) func(event *tcell.EventKey) *tcell.EventKey { return func(event *tcell.EventKey) *tcell.EventKey { if event.Key() == tcell.KeyEscape || event.Rune() == 'q' { app.showMenu = false app.SwitchPage(app.currentPage, app.tableViews[app.currentPage], app.tableViews[app.currentPage].actions) } return event } } )
Functions ¶
This section is empty.
Types ¶
type AppView ¶
type AppView struct { *tview.Flex *tview.Application types.Drawer // contains filtered or unexported fields }
func NewAppView ¶
func NewAppView(clientset *kubernetes.Clientset, dr types.Drawer, handler EventHandler, refreshSignals map[string]chan struct{}) *AppView
NewAppView takes 4 parameters:
Clientset: Kubernetes client Drawer: Generic drawer to define how the table view looks like Handler: Event handler RefresherSignals: External Signal to trigger table refresh, mapped by resource kind
func (*AppView) CurrentPage ¶
func (*AppView) SwitchPage ¶
func (*AppView) SwitchToRootPage ¶
func (app *AppView) SwitchToRootPage()
type EventHandler ¶
type PrimitiveQueue ¶
type PrimitiveQueue struct { *AppView // contains filtered or unexported fields }
func (*PrimitiveQueue) Dequeue ¶
func (p *PrimitiveQueue) Dequeue() PageTrack
func (*PrimitiveQueue) Empty ¶
func (p *PrimitiveQueue) Empty() bool
func (*PrimitiveQueue) Enqueue ¶
func (p *PrimitiveQueue) Enqueue(t PageTrack)
func (*PrimitiveQueue) Last ¶
func (p *PrimitiveQueue) Last() PageTrack
type TableView ¶
func (*TableView) GetApplication ¶
func (t *TableView) GetApplication() *tview.Application
func (*TableView) GetClientSet ¶
func (t *TableView) GetClientSet() *kubernetes.Clientset
func (*TableView) GetCurrentPage ¶
func (*TableView) GetCurrentPrimitive ¶
func (*TableView) GetNestedTable ¶
func (*TableView) GetResourceKind ¶
func (*TableView) GetSelectionName ¶
func (*TableView) GetTableView ¶
func (*TableView) InsertDialog ¶
func (*TableView) NewNestTableView ¶
func (t *TableView) NewNestTableView(kind types.ResourceKind, feeder datafeeder.DataSource, actions []types.Action, pageNav map[rune]string, embeddedHandler EventHandler) *TableView
func (*TableView) RefreshManual ¶
func (t *TableView) RefreshManual()
func (*TableView) SetCurrentPage ¶
func (*TableView) SetTableView ¶
func (*TableView) ShowSearch ¶
func (t *TableView) ShowSearch()
func (*TableView) SwitchToRootPage ¶
func (t *TableView) SwitchToRootPage()
func (*TableView) UpdateFeeder ¶
func (t *TableView) UpdateFeeder(kind string, feeder datafeeder.DataSource)
func (*TableView) UpdateStatus ¶
func (*TableView) UpdateWithSearch ¶
Click to show internal directories.
Click to hide internal directories.