Documentation
¶
Index ¶
- type HelpView
- type InstancesView
- type OverviewPanel
- type StatusBar
- type UI
- func (ui *UI) GetColors() color.Colors
- func (ui *UI) RefreshInstances()
- func (ui *UI) SetFilter(filter string)
- func (ui *UI) ShowConfirmDialog(title, message string, onConfirm func())
- func (ui *UI) ShowFilterDialog()
- func (ui *UI) ShowHelpDialog()
- func (ui *UI) ShowInfoDialog(title, message string)
- func (ui *UI) Start() error
- func (ui *UI) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelpView ¶
type HelpView struct {
// contains filtered or unexported fields
}
HelpView represents the help bar at the bottom of the UI
type InstancesView ¶
type InstancesView struct {
// contains filtered or unexported fields
}
InstancesView represents the instances table view
func NewInstancesView ¶
func NewInstancesView(ui *UI) *InstancesView
NewInstancesView creates a new instances view
func (*InstancesView) GetSelectedInstance ¶
func (v *InstancesView) GetSelectedInstance() *model.Instance
GetSelectedInstance returns the currently selected instance
func (*InstancesView) ShowInstanceDetails ¶
func (v *InstancesView) ShowInstanceDetails(instance model.Instance)
ShowInstanceDetails displays a detailed view of an instance
func (*InstancesView) UpdateInstances ¶
func (v *InstancesView) UpdateInstances(instances []model.Instance)
UpdateInstances updates the instances table with new data
type OverviewPanel ¶
type OverviewPanel struct {
// contains filtered or unexported fields
}
OverviewPanel represents the overview panel at the top of the UI
func NewOverviewPanel ¶
func NewOverviewPanel(ui *UI) *OverviewPanel
NewOverviewPanel creates a new overview panel
func (*OverviewPanel) Update ¶
func (p *OverviewPanel) Update(total, running, stopped int, region string)
Update updates the overview panel content
func (*OverviewPanel) UpdateRegion ¶
func (p *OverviewPanel) UpdateRegion(region string)
UpdateRegion updates just the region information
func (*OverviewPanel) UpdateStats ¶
func (p *OverviewPanel) UpdateStats(total, running, stopped int)
UpdateStats updates just the instance statistics
func (*OverviewPanel) UpdateTheme ¶
func (p *OverviewPanel) UpdateTheme()
UpdateTheme updates the theme colors
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
StatusBar represents the status bar at the bottom of the UI
func (*StatusBar) UpdateTheme ¶
func (b *StatusBar) UpdateTheme()
UpdateTheme updates the status bar theme
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
UI manages the terminal UI for e2c
func (*UI) RefreshInstances ¶
func (ui *UI) RefreshInstances()
RefreshInstances refreshes the instances list
func (*UI) ShowConfirmDialog ¶
ShowConfirmDialog shows a confirmation dialog
func (*UI) ShowFilterDialog ¶
func (ui *UI) ShowFilterDialog()
ShowFilterDialog displays the filter dialog
func (*UI) ShowHelpDialog ¶
func (ui *UI) ShowHelpDialog()
func (*UI) ShowInfoDialog ¶
ShowInfoDialog shows an information dialog