Documentation ¶
Index ¶
- Constants
- func ColorizeKind(kind string) string
- func ColorizeStatus(status types.HealthStatusCode) string
- func EmojiFormat(name string, kind string) string
- func StandardizeKey(event *tcell.EventKey) tcell.Key
- func WorkflowStepFormat(name string, status v1alpha1.WorkflowStepPhase) string
- type App
- func (a *App) AddAction(actions model.KeyActions)
- func (a *App) Components() map[string]tview.Primitive
- func (a *App) Crumbs() *Crumbs
- func (a *App) DelAction(keys []tcell.Key)
- func (a *App) HasAction(key tcell.Key) (model.KeyAction, bool)
- func (a *App) InfoBoard() *InfoBoard
- func (a *App) Init()
- func (a *App) Logo() *Logo
- func (a *App) Menu() *Menu
- func (a *App) QueueUpdate(f func())
- func (a *App) QueueUpdateDraw(f func())
- type Crumbs
- type InfoBoard
- type Logo
- type Menu
- type Pages
- type Table
Constants ¶
const ( // KeyHelp corresponding value of keyboard key "?" KeyHelp = 63 // KeySlash corresponding value of keyboard key "/" KeySlash = 47 // KeyColon corresponding value of keyboard key ":" KeyColon = 58 // KeySpace corresponding value of keyboard key "SPACE" KeySpace = 32 )
const ( KeyA tcell.Key = iota + 97 KeyB KeyC KeyD KeyE KeyF KeyG KeyH KeyI KeyJ KeyK KeyL KeyM KeyN KeyO KeyP KeyQ KeyR KeyS KeyT KeyU KeyV KeyW KeyX KeyY KeyZ )
Defines char keystrokes.
Variables ¶
This section is empty.
Functions ¶
func ColorizeStatus ¶
func ColorizeStatus(status types.HealthStatusCode) string
ColorizeStatus colorize the status text
func EmojiFormat ¶
EmojiFormat format the name with the emoji
func StandardizeKey ¶
func StandardizeKey(event *tcell.EventKey) tcell.Key
StandardizeKey standardized combined key event and return corresponding key
func WorkflowStepFormat ¶
func WorkflowStepFormat(name string, status v1alpha1.WorkflowStepPhase) string
WorkflowStepFormat format the workflow step text with the emoji
Types ¶
type App ¶
type App struct { *tview.Application Main *tview.Pages // contains filtered or unexported fields }
App represent the ui of application
func (*App) AddAction ¶
func (a *App) AddAction(actions model.KeyActions)
AddAction add a new keyAction
func (*App) Components ¶
Components return the application root components.
func (*App) QueueUpdateDraw ¶
func (a *App) QueueUpdateDraw(f func())
QueueUpdateDraw queues up a ui action and redraw the ui.
type Crumbs ¶
Crumbs component lay on footer of app and indicate resource level
type InfoBoard ¶
InfoBoard a component which display system info
func (*InfoBoard) UpdateInfo ¶
UpdateInfo update the info of system info board
type Menu ¶
Menu is menu component which display key actions of app's main view
func (*Menu) UpdateMenu ¶
UpdateMenu update menu component
type Pages ¶
Pages is the app's main content view component