Documentation ¶
Index ¶
- Constants
- func KeyNavFmt(key string, info string) string
- func NewTableSelectedStyle(color tcell.Color) tcell.Style
- func TableFocus(table *tview.Table, gui *Gui, color tcell.Color)
- func TableUnFocus(table *tview.Table)
- func TextViewFocus(t *tview.TextView, gui *Gui, color tcell.Color)
- func TextViewUnFocus(t *tview.TextView)
- type Config
- type Gui
- func (g *Gui) AddPanels(page string, pa ...Panel)
- func (g *Gui) CloseAndSwitchPanel(removePage string, lastPage string, switchPanel string)
- func (g *Gui) CurrentPanel() Panel
- func (g *Gui) GetLoggieAgentPod(node string) *corev1.Pod
- func (g *Gui) NextPanel()
- func (g *Gui) PrevPanel()
- func (g *Gui) SetCurrentPage(page string)
- func (g *Gui) SetGlobalKeybinding(event *tcell.EventKey)
- func (g *Gui) SetLoggieAgentList(pod *corev1.PodList)
- func (g *Gui) Start() error
- func (g *Gui) Stop()
- func (g *Gui) SwitchPanel(panelName string)
- type K8sClient
- type Navigate
- type Panel
- type Panels
- type Stat
Constants ¶
View Source
const ( TsLayout = "2006-01-02T15:04:05" MainPage = "main" LogConfigDetailPage = "logConfigDetail" LogConfigListPage = "logConfigList" YamlDetailPage = "logConfigYamlDetail" ClusterLogConfigListPage = "clusterLogConfigList" ClusterLogConfigDetailPage = "clusterLogConfigDetail" LoggieDetailPage = "loggieDetail" LoggieListPage = "loggieList" LoggieLogsPage = "loggieLogs" LoggieProgressPage = "loggieProgress" )
View Source
const ( ColorSelectedForeground = tcell.ColorBlack ColorGreen = tcell.ColorGreen ColorTeal = tcell.ColorTeal ColorWhite = tcell.ColorWhite ColorRed = tcell.ColorRed ColorYellow = tcell.ColorYellow ColorTextWhite = "[white]" ColorTextPurple = "[purple]" ColorTextTeal = "[teal]" )
Considering that different terminals support limited colors, only the most common colors are used here
View Source
const ( KeyTab = "tab" KeyJ = "down" KeyK = "up" KeyEnter = "enter" KeyQ = "quit" KeyF = "filter" KeyR = "refresh" KeyO = "show all" KeyL = "logs" KeyCtrlF = "page down" KeyCtrlB = "page up" KeyG = "home" KeyShiftG = "end" )
Variables ¶
This section is empty.
Functions ¶
func NewTableSelectedStyle ¶
func NewTableSelectedStyle(color tcell.Color) tcell.Style
func TableFocus ¶
func TableUnFocus ¶
func TextViewFocus ¶
func TextViewUnFocus ¶
Types ¶
type Gui ¶
type Gui struct { App *tview.Application Pages *tview.Pages K8sClient *K8sClient Config *Config GlobalStat Stat // contains filtered or unexported fields }
func (*Gui) CloseAndSwitchPanel ¶
func (*Gui) CurrentPanel ¶
func (*Gui) SetCurrentPage ¶
func (*Gui) SetGlobalKeybinding ¶
func (g *Gui) SetGlobalKeybinding(event *tcell.EventKey)
func (*Gui) SetLoggieAgentList ¶
func (*Gui) SwitchPanel ¶
type K8sClient ¶
type K8sClient struct { KubeClient *kubeclientset.Clientset LgcClient *logconfigclientset.Clientset MetricsClient *metricsv.Clientset }
Click to show internal directories.
Click to hide internal directories.