ui

package
v0.1.3-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetStyles

func SetStyles()

func SetupHeader

func SetupHeader() *tview.TextView

TODO Get version properly

func SetupNavigation

func SetupNavigation(app *tview.Application, controller *UIController)

func SetupStatusBar

func SetupStatusBar() *tview.TextView

Types

type UIController

type UIController struct {
	UIManager        *UIManager
	Application      *tview.Application
	KubernetesClient kubernetes.KubernetesClient
}

func NewUIController

func NewUIController(app *tview.Application, uiManager *UIManager, client kubernetes.KubernetesClient) *UIController

func (*UIController) HandleBackNavigation

func (controller *UIController) HandleBackNavigation()

func (*UIController) HandleLogView

func (controller *UIController) HandleLogView()

func (*UIController) HandleNamespaceFilter

func (controller *UIController) HandleNamespaceFilter()

func (*UIController) HandleNodeSelection

func (controller *UIController) HandleNodeSelection()

func (*UIController) HandlePodSelection

func (controller *UIController) HandlePodSelection()

type UIManager

type UIManager struct {
	Header        *tview.TextView
	NodeListPanel *tview.Table
	PodListPanel  *tview.Table
	DetailsPanel  *tview.TextView
	LogsViewPanel *tview.TextView
	StatusBar     *tview.TextView
	CurrentPanel  int
	SelectedPod   string
	SelectedNode  string
	Layout        *tview.Flex
}

func SetupUILayout

func SetupUILayout(app *tview.Application, client kubernetes.KubernetesClient) (*UIManager, *tview.Flex)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳