Documentation
¶
Overview ¶
Package tui provides the terminal user interface for Prism.
This package implements a full-featured TUI using the BubbleTea framework, providing an interactive alternative to the command-line interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents the TUI application
type AppMessageDispatcher ¶
type AppMessageDispatcher struct {
// contains filtered or unexported fields
}
AppMessageDispatcher manages app message handlers (Command Pattern - SOLID)
func NewAppMessageDispatcher ¶
func NewAppMessageDispatcher() *AppMessageDispatcher
NewAppMessageDispatcher creates app message dispatcher
type AppMessageHandler ¶
type AppMessageHandler interface {
CanHandle(msg tea.Msg) bool
Handle(m AppModel, msg tea.Msg) (AppModel, []tea.Cmd)
}
AppMessageHandler interface for handling different app messages (Command Pattern - SOLID)
type AppModel ¶
type AppModel struct {
// contains filtered or unexported fields
}
AppModel represents the main application model
type PageID ¶
type PageID int
PageID represents different pages in the TUI
const ( // DashboardPage shows the main dashboard DashboardPage PageID = iota // InstancesPage shows instance management InstancesPage // TemplatesPage shows template selection TemplatesPage // StoragePage shows storage management StoragePage // ProjectsPage shows project management (Phase 4 Enterprise) ProjectsPage // BudgetPage shows budget management (Phase 4 Enterprise) BudgetPage // UsersPage shows user management (Phase 5A.2) UsersPage // PolicyPage shows policy framework management (Phase 5A+) PolicyPage // MarketplacePage shows template marketplace (Phase 5B) MarketplacePage // IdlePage shows idle detection and hibernation management (Phase 3) IdlePage // AMIPage shows AMI management AMIPage // RightsizingPage shows rightsizing recommendations RightsizingPage // LogsPage shows logs viewer LogsPage // DaemonPage shows daemon management DaemonPage // SettingsPage shows application settings SettingsPage // ProfilesPage shows profile management ProfilesPage )
type PageModelUpdater ¶
type PageModelUpdater struct{}
PageModelUpdater handles updating the current page model
func (*PageModelUpdater) UpdateCurrentPage ¶
type PageNavigationHandler ¶
type PageNavigationHandler struct{}
PageNavigationHandler handles page navigation keys
type UpdateCheckHandler ¶ added in v0.7.0
type UpdateCheckHandler struct{}
UpdateCheckHandler handles update check messages
type UpdateCheckMsg ¶ added in v0.7.0
type UpdateCheckMsg struct {
UpdateInfo *update.UpdateInfo
Error error
}
UpdateCheckMsg represents the result of an update check
type WindowSizeHandler ¶
type WindowSizeHandler struct{}
WindowSizeHandler handles window size messages
Directories
¶
| Path | Synopsis |
|---|---|
|
Package api provides an API client for the TUI.
|
Package api provides an API client for the TUI. |
|
Package models contains the models for the TUI components.
|
Package models contains the models for the TUI components. |