Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
*tview.Application
// contains filtered or unexported fields
}
App is the main application component
func (*App) CloseContextMenu ¶
func (a *App) CloseContextMenu()
CloseContextMenu closes the context menu and restores the previous focus
func (*App) ShowNodeContextMenu ¶
func (a *App) ShowNodeContextMenu()
ShowNodeContextMenu displays the context menu for node actions
func (*App) ShowVMContextMenu ¶
func (a *App) ShowVMContextMenu()
ShowVMContextMenu displays the context menu for VM actions
type ClusterStatus ¶
ClusterStatus encapsulates the cluster status panel
func NewClusterStatus ¶
func NewClusterStatus() *ClusterStatus
NewClusterStatus creates a new cluster status panel
func (*ClusterStatus) Update ¶
func (cs *ClusterStatus) Update(cluster *api.Cluster)
Update populates both tables with current cluster data
type ContextMenu ¶
type ContextMenu struct {
// contains filtered or unexported fields
}
ContextMenu represents a popup menu with actions for a selected item
func NewContextMenu ¶
func NewContextMenu(title string, actions []string, onAction func(index int, action string)) *ContextMenu
NewContextMenu creates a new context menu component
func (*ContextMenu) SetApp ¶
func (cm *ContextMenu) SetApp(app *App)
SetApp sets the parent app reference
func (*ContextMenu) Show ¶
func (cm *ContextMenu) Show() *tview.List
Show displays the context menu as a modal
type Footer ¶
type Footer struct {
}
Footer encapsulates the application footer
func NewFooter ¶
func NewFooter() *Footer
NewFooter creates a new application footer with key bindings
func (*Footer) UpdateKeybindings ¶
UpdateKeybindings updates the footer text with custom key bindings
type Header ¶
Header encapsulates the application header
func (*Header) SetApp ¶
func (h *Header) SetApp(app *tview.Application)
SetApp sets the application reference for UI updates
func (*Header) ShowLoading ¶
ShowLoading displays an animated loading indicator
func (*Header) ShowSuccess ¶
ShowSuccess displays a success message temporarily
type NodeDetails ¶
NodeDetails encapsulates the node details panel
func NewNodeDetails ¶
func NewNodeDetails() *NodeDetails
NewNodeDetails creates a new node details panel
func (*NodeDetails) SetApp ¶
func (nd *NodeDetails) SetApp(app *App)
SetApp sets the parent app reference for focus management
type NodeList ¶
NodeList encapsulates the node list panel
func (*NodeList) GetSelectedNode ¶
GetSelectedNode returns the currently selected node
func (*NodeList) SetNodeChangedFunc ¶
SetChangedFunc sets the function to be called when selection changes
func (*NodeList) SetNodeSelectedFunc ¶
SetSelectedFunc sets the function to be called when a node is selected
type ScriptSelector ¶
ScriptSelector represents a modal dialog for selecting and running community scripts
func NewScriptSelector ¶
NewScriptSelector creates a new script selector dialog
type VMDetails ¶
VMDetails encapsulates the VM details panel
type VMList ¶
VMList encapsulates the VM list panel
func (*VMList) GetSelectedVM ¶
GetSelectedVM returns the currently selected VM
func (*VMList) SetVMChangedFunc ¶
SetVMChangedFunc sets the function to be called when selection changes
func (*VMList) SetVMSelectedFunc ¶
SetVMSelectedFunc sets the function to be called when a VM is selected