Help us shape the future of Go! Take the 2026 Go Developer Survey

appconfig_view

package
v0.1.38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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

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

func NewModelWithCommon(common *core.Common) *Model

NewModelWithCommon creates the Application Config page from the shared context.

func (*Model) ContextActions added in v0.1.35

func (m *Model) ContextActions() []menu.Entry

ContextActions implements core.ActionProvider. This screen is read-only, so the menu is short — but `a` must never open an empty menu.

func (*Model) GetCommon

func (m *Model) GetCommon() *core.Common

GetCommon returns the shared context.

func (*Model) GetHelp

func (m *Model) GetHelp() []key.Binding

GetHelp implements the Page interface.

func (*Model) GetID

func (m *Model) GetID() string

GetID implements the Page interface.

func (*Model) GetTitle

func (m *Model) GetTitle() string

GetTitle implements the Page interface.

func (*Model) HandleNavigation

func (m *Model) HandleNavigation(msg tea.Msg) (core.Page, tea.Cmd)

HandleNavigation implements the Page interface.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init implements the Page interface.

func (*Model) KeyScope added in v0.1.35

func (m *Model) KeyScope() keys.Scope

KeyScope implements core.KeyScoper.

func (*Model) OnBlur

func (m *Model) OnBlur() tea.Cmd

OnBlur implements the Page interface.

func (*Model) OnFocus

func (m *Model) OnFocus() tea.Cmd

OnFocus implements the Page interface.

func (*Model) SetDimensions

func (m *Model) SetDimensions(width, height int)

SetDimensions implements the Page interface.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements the Page interface.

func (*Model) View

func (m *Model) View() string

View implements the Page interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL