Documentation ¶
Index ¶
- Variables
- func MenuExist(menu *Menu, name string) bool
- type Flex
- type Item
- type MapView
- func (mv *MapView) Clear()
- func (mv *MapView) DrawMapView()
- func (mv *MapView) KeyCell(key string) *tview.TableCell
- func (mv *MapView) SetMapKeyValue(key, value string)
- func (mv *MapView) SetMapKeys(keys []string)
- func (mv *MapView) SetMapValues(values []string)
- func (mv *MapView) ValueCell(value string) *tview.TableCell
- type Menu
- type Modal
- type Modal1
- type Pages
- func (p *Pages) AddHistory(name string)
- func (p *Pages) AddPageX(name string, item tview.Primitive, resize, visible bool)
- func (p *Pages) FlushHistory()
- func (p *Pages) GetActivePage() string
- func (p *Pages) GoBack()
- func (p *Pages) HistoryPop() string
- func (p *Pages) OpenPage1(name string, addHistory bool)
- func (p *Pages) OpenPageX(name string, addHistory bool)
- func (p *Pages) ShowPageX(name string)
- type Table
- func (t *Table) BindFunctions()
- func (t *Table) BindKeys()
- func (t *Table) ClearTable()
- func (t *Table) DrawCell(row, col int, value string, rowColor tcell.Color)
- func (t *Table) DrawHeader()
- func (t *Table) DrawHeaderLeft()
- func (t *Table) DrawLeftCell(row, col int, value string, rowColor tcell.Color)
- func (t *Table) GetSelectedItem() map[string]string
- func (t *Table) SetFocusBorderColor(color tcell.Color)
- func (t *Table) SetOnSelectFn(fn func(int, int))
- func (t *Table) SetOnTabPressFn(fn func())
- func (t *Table) SetTableTitle(count int, a, b string)
- type TextArea
- type TextView
- type UtilGauge
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnterMenu = Item{ Name: "enter", Icon: "enter", Description: "Select Row", } UpArrowMenu = Item{ Name: "up_arrow", Icon: "↑", Description: "Move UP", } DownArrowMenu = Item{ Name: "down_arrow", Icon: "↓", Description: "Move Down", } EscMenu = Item{ Name: "esc", Icon: "esc", Description: "Go Back", } ContextMenu = Item{ Name: "region_namespace", Icon: "2", Description: "Context", } CreateJobNMenu = Item{ Name: "create_new_jb", Icon: "3", Description: "Create New Job", } LogMenu = Item{ Name: "log", Icon: "l", Description: "Show Log", } StdoutMenu = Item{ Name: "stdout", Icon: "o", Description: "STDOUT Logs", } StderrMenu = Item{ Name: "stderr", Icon: "e", Description: "STDERR Logs", } VersionMenu = Item{ Name: "versions", Icon: "v", Description: "Show Job Versions", } RevertMenu = Item{ Name: "revert_version", Icon: "ctrl+v", Description: "Revert Version", } RestartTaskMenu = Item{ Name: "restart_task", Icon: "ctrl+t", Description: "Restart Task", } StopJobMenu = Item{ Name: "stop_job", Icon: "ctrl+q", Description: "Stop Job", } StartJobMenu = Item{ Name: "start_job", Icon: "ctrl+s", Description: "Start Job", } NodeMenu = Item{ Name: "nodes", Icon: "1", Description: "Nodes", } LogAutoScrollMenu = Item{ Name: "log_autoscroll", Icon: "a", Description: "Autoscroll", } DefinitionMenu = Item{ Name: "job_definition", Icon: "d", Description: "Definition", } RunJobMenu = Item{ Name: "run_job", Icon: "ctrl+j", Description: "Run Job", } )
View Source
var DefaultGlobalMenus = []Item{ NodeMenu, ContextMenu, CreateJobNMenu, }
View Source
var DefaultMenus = []Item{ EscMenu, UpArrowMenu, DownArrowMenu, EnterMenu, }
Functions ¶
Types ¶
type MapView ¶
func NewMapView ¶
func NewMapView() *MapView
func (*MapView) DrawMapView ¶
func (mv *MapView) DrawMapView()
func (*MapView) SetMapKeyValue ¶
func (*MapView) SetMapKeys ¶
func (*MapView) SetMapValues ¶
type Menu ¶
func (*Menu) RemoveMenus ¶
func (*Menu) RenderGlobalMenus ¶
func (m *Menu) RenderGlobalMenus()
func (*Menu) RenderMenu ¶
type Modal1 ¶
type Modal1 struct { *tview.Frame Content *tview.TextView Title string PageTitle string Buttons []string }
func (*Modal1) GetPageTitle ¶
func (*Modal1) SetModalInputHandler ¶
func (m *Modal1) SetModalInputHandler(handler func(event *tcell.EventKey) *tcell.EventKey)
func (*Modal1) SetModalTitle ¶
type Pages ¶
func (*Pages) AddHistory ¶
func (*Pages) FlushHistory ¶
func (p *Pages) FlushHistory()
func (*Pages) GetActivePage ¶
func (*Pages) HistoryPop ¶
type Table ¶
type Table struct { *tview.Table Title string Data map[string]string Headers []string OnSelectFn func(int, int) OnTabPress func() }
func (*Table) BindFunctions ¶
func (t *Table) BindFunctions()
func (*Table) ClearTable ¶
func (t *Table) ClearTable()
func (*Table) DrawHeader ¶
func (t *Table) DrawHeader()
func (*Table) DrawHeaderLeft ¶
func (t *Table) DrawHeaderLeft()
func (*Table) DrawLeftCell ¶
func (*Table) GetSelectedItem ¶
func (*Table) SetFocusBorderColor ¶
func (t *Table) SetFocusBorderColor(color tcell.Color)
func (*Table) SetOnSelectFn ¶
func (*Table) SetOnTabPressFn ¶
func (t *Table) SetOnTabPressFn(fn func())
func (*Table) SetTableTitle ¶
type TextView ¶
func NewTextView ¶
func (*TextView) SetTextAlignX ¶
func (*TextView) SetTextVTitle ¶
func (*TextView) SetTitleName ¶
type UtilGauge ¶
type UtilGauge struct { *tvxwidgets.UtilModeGauge Label string }
func NewUtilGauge ¶
func PrimitiveToGauge ¶
Click to show internal directories.
Click to hide internal directories.