Documentation
¶
Overview ¶
Package tabs implements Bubble Tea sub-model tabs for the BubbleFish Nexus TUI.
Index ¶
- type AuditTab
- type ConflictsTab
- type ControlTab
- type PipelineTab
- type SecurityTab
- type SettingsTab
- type Tab
- type TimeTravelTab
- func (t *TimeTravelTab) FireRefresh(_ *api.Client) tea.Cmd
- func (t *TimeTravelTab) Init() tea.Cmd
- func (t *TimeTravelTab) Name() string
- func (t *TimeTravelTab) SetClient(client *api.Client)
- func (t *TimeTravelTab) Update(msg tea.Msg) (Tab, tea.Cmd)
- func (t *TimeTravelTab) View(width, height int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditTab ¶
type AuditTab struct {
// contains filtered or unexported fields
}
AuditTab displays audit log records in a scrollable log table.
func (*AuditTab) FireRefresh ¶
FireRefresh dispatches the audit log API call.
type ConflictsTab ¶
type ConflictsTab struct {
// contains filtered or unexported fields
}
ConflictsTab shows conflict groups with navigation.
func NewConflictsTab ¶
func NewConflictsTab() *ConflictsTab
NewConflictsTab returns an initialised ConflictsTab.
func (*ConflictsTab) FireRefresh ¶
func (t *ConflictsTab) FireRefresh(client *api.Client) tea.Cmd
FireRefresh fetches fresh conflict data from the daemon.
func (*ConflictsTab) Init ¶
func (t *ConflictsTab) Init() tea.Cmd
Init returns the first command (none needed).
func (*ConflictsTab) View ¶
func (t *ConflictsTab) View(width, height int) string
View renders the conflicts display.
type ControlTab ¶
type ControlTab struct {
// contains filtered or unexported fields
}
ControlTab is the landing tab showing daemon health signals.
func (*ControlTab) FireRefresh ¶
func (t *ControlTab) FireRefresh(client *api.Client) tea.Cmd
FireRefresh dispatches parallel status and health API calls.
func (*ControlTab) Init ¶
func (t *ControlTab) Init() tea.Cmd
Init returns the initial command (none — data arrives via FireRefresh).
func (*ControlTab) View ¶
func (t *ControlTab) View(width, height int) string
View renders the control tab content.
type PipelineTab ¶
type PipelineTab struct {
// contains filtered or unexported fields
}
PipelineTab shows the 6-stage retrieval cascade and throughput gauges.
func NewPipelineTab ¶
func NewPipelineTab() *PipelineTab
NewPipelineTab returns an initialised PipelineTab.
func (*PipelineTab) FireRefresh ¶
func (t *PipelineTab) FireRefresh(client *api.Client) tea.Cmd
FireRefresh fetches fresh status data from the daemon.
func (*PipelineTab) Init ¶
func (t *PipelineTab) Init() tea.Cmd
Init returns the first command (none needed).
func (*PipelineTab) View ¶
func (t *PipelineTab) View(width, height int) string
View renders the pipeline visualisation.
type SecurityTab ¶
type SecurityTab struct {
// contains filtered or unexported fields
}
SecurityTab displays the hardening matrix, auth summary, and lint warnings.
func (*SecurityTab) FireRefresh ¶
func (t *SecurityTab) FireRefresh(client *api.Client) tea.Cmd
FireRefresh dispatches parallel summary and lint API calls.
func (*SecurityTab) View ¶
func (t *SecurityTab) View(width, height int) string
View renders the security tab content.
type SettingsTab ¶
type SettingsTab struct {
// contains filtered or unexported fields
}
SettingsTab displays read-only daemon configuration.
func NewSettingsTab ¶
func NewSettingsTab() *SettingsTab
NewSettingsTab returns an initialised SettingsTab.
func (*SettingsTab) FireRefresh ¶
func (t *SettingsTab) FireRefresh(client *api.Client) tea.Cmd
FireRefresh fetches fresh status and config data from the daemon.
func (*SettingsTab) Init ¶
func (t *SettingsTab) Init() tea.Cmd
Init returns the first command (none needed).
func (*SettingsTab) View ¶
func (t *SettingsTab) View(width, height int) string
View renders the settings display.
type Tab ¶
type Tab interface {
Init() tea.Cmd
Update(msg tea.Msg) (Tab, tea.Cmd)
View(width, height int) string
FireRefresh(client *api.Client) tea.Cmd
Name() string
}
Tab is the interface each tab sub-model must implement. This mirrors the tui.Tab interface to avoid an import cycle.
type TimeTravelTab ¶
type TimeTravelTab struct {
// contains filtered or unexported fields
}
TimeTravelTab provides manual time-travel queries against the memory store.
func NewTimeTravelTab ¶
func NewTimeTravelTab() *TimeTravelTab
NewTimeTravelTab returns an initialised TimeTravelTab.
func (*TimeTravelTab) FireRefresh ¶
func (t *TimeTravelTab) FireRefresh(_ *api.Client) tea.Cmd
FireRefresh is a no-op for time-travel: queries are manual only.
func (*TimeTravelTab) Init ¶
func (t *TimeTravelTab) Init() tea.Cmd
Init returns the first command (text input blink).
func (*TimeTravelTab) Name ¶
func (t *TimeTravelTab) Name() string
Name returns the tab display name.
func (*TimeTravelTab) SetClient ¶
func (t *TimeTravelTab) SetClient(client *api.Client)
SetClient stores the API client for manual queries.
func (*TimeTravelTab) View ¶
func (t *TimeTravelTab) View(width, height int) string
View renders the time-travel query interface and results.