Documentation
¶
Overview ¶
Package appconfig_view contains the read-only "Application Config" page.
It renders the effective merged kafui configuration (build info, app/UI settings, and per-cluster sections) as a scrollable, structured document. All secret values are masked through common.Redactor before display.
The intended router page ID is "appconfig" (registration lives in the router, not here). The page implements core.Page via the template UI system and uses a bubbles viewport for scrolling.
Architecture:
- appconfig_view_page.go: page model, document builder, and Page interface
- appconfig_view_providers.go: viewport-backed content provider
Index ¶
- type Model
- func (m *Model) ContextActions() []menu.Entry
- func (m *Model) GetCommon() *core.Common
- func (m *Model) GetHelp() []key.Binding
- func (m *Model) GetID() string
- func (m *Model) GetTitle() string
- func (m *Model) HandleNavigation(msg tea.Msg) (core.Page, tea.Cmd)
- func (m *Model) Init() tea.Cmd
- func (m *Model) KeyScope() keys.Scope
- func (m *Model) OnBlur() tea.Cmd
- func (m *Model) OnFocus() tea.Cmd
- func (m *Model) SetDimensions(width, height int)
- func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the read-only Application Config page. It renders the effective merged configuration as a scrollable, structured document with all secrets redacted.
func NewModelWithCommon ¶
NewModelWithCommon creates the Application Config page from the shared context.
func (*Model) ContextActions ¶ added in v0.1.35
ContextActions implements core.ActionProvider. This screen is read-only, so the menu is short — but `a` must never open an empty menu.
func (*Model) HandleNavigation ¶
HandleNavigation implements the Page interface.
func (*Model) SetDimensions ¶
SetDimensions implements the Page interface.