Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InitOptions ¶
type InitOptions struct {
ConfigFile string
Mock bool
Brokers []string
SchemaRegistry string
Cluster string
Verbose bool
// ReadOnly is the global --read-only flag: when true every cluster is
// treated read-only and all altering operations are denied (AA-4).
ReadOnly bool
// Topic deep-links directly to a topic page on startup (UI-9).
Topic string
// Resource pre-switches the main page to a resource type on startup (UI-9).
Resource string
// MetricsListen is the optional --metrics-listen address (e.g. ":9090"). When
// non-empty, kafui serves the current metrics snapshot in Prometheus
// exposition format for the lifetime of the program (MM-16). Default off.
MetricsListen string
}
InitOptions carries CLI-level configuration into the app.
type Model ¶
type Model struct {
Router *router.Router // Exported for testing
HelpSystem *core.HelpSystem // Help system
FocusManager *core.FocusManager
// contains filtered or unexported fields
}
Model represents the main application state
func NewUIModel ¶
func NewUIModel(dataSource api.KafkaDataSource) *Model
NewUIModel creates a new UI model using router-based navigation
func NewUIModelWithCommon ¶
NewUIModelWithCommon creates a new UI model with a pre-configured Common context
func NewUIModelWithRouter ¶
func NewUIModelWithRouter(dataSource api.KafkaDataSource) *Model
NewUIModelWithRouter creates a new UI model using router-based navigation
func (*Model) GetFocusState ¶
func (m *Model) GetFocusState() core.FocusState
GetFocusState returns the current focus state
Directories
¶
| Path | Synopsis |
|---|---|
|
datatable
Package datatable provides a reusable table component wrapping github.com/charmbracelet/bubbles/table.
|
Package datatable provides a reusable table component wrapping github.com/charmbracelet/bubbles/table. |
|
form
Package form provides a reusable, typed form model for create/edit flows.
|
Package form provides a reusable, typed form model for create/edit flows. |
|
menu
Package menu provides the filterable overlay list behind the two discovery surfaces the controls spec requires: the command palette (`:`) and the contextual actions menu (`a` / right-click).
|
Package menu provides the filterable overlay list behind the two discovery surfaces the controls spec requires: the command palette (`:`) and the contextual actions menu (`a` / right-click). |
|
tabstrip
Package tabstrip renders a tab bar whose tabs are click and hover targets.
|
Package tabstrip renders a tab bar whose tabs are click and hover targets. |
|
Package core provides core types and interfaces for the Kafui UI framework.
|
Package core provides core types and interfaces for the Kafui UI framework. |
|
Package debug provides debugging utilities for Kafui.
|
Package debug provides debugging utilities for Kafui. |
|
Package dialog provides the root-owned modal confirmation overlay used for destructive-action confirmation across all pages.
|
Package dialog provides the root-owned modal confirmation overlay used for destructive-action confirmation across all pages. |
|
Package keys is the single binding registry required by the controls specification (kafui-specification/controls).
|
Package keys is the single binding registry required by the controls specification (kafui-specification/controls). |
|
Package layout provides centralized layout management for the Kafui UI.
|
Package layout provides centralized layout management for the Kafui UI. |
|
Package notify provides the shell-owned notification (status line) system: severity-styled, auto-expiring, deduplicated transient messages rendered in the footer area.
|
Package notify provides the shell-owned notification (status line) system: severity-styled, auto-expiring, deduplicated transient messages rendered in the footer area. |
|
pages
|
|
|
appconfig_view
Package appconfig_view contains the read-only "Application Config" page.
|
Package appconfig_view contains the read-only "Application Config" page. |
|
broker
Package broker implements the broker detail page (dynamic page ID "broker:<id>").
|
Package broker implements the broker detail page (dynamic page ID "broker:<id>"). |
|
cluster_form
Package cluster_form implements the cluster setup-wizard page (AC-12/AC-13): add, edit or delete a cluster in the kafui-owned config, validate connectivity without saving, and apply changes with an in-place datasource reload.
|
Package cluster_form implements the cluster setup-wizard page (AC-12/AC-13): add, edit or delete a cluster in the kafui-owned config, validate connectivity without saving, and apply changes with an in-place datasource reload. |
|
clusters
Package clusters implements the cluster overview dashboard page (page ID "clusters").
|
Package clusters implements the cluster overview dashboard page (page ID "clusters"). |
|
connector
Package connector implements the connector detail page (dynamic page ID "connector:<connect>:<name>").
|
Package connector implements the connector detail page (dynamic page ID "connector:<connect>:<name>"). |
|
consumer_group
Package consumergroup implements the consumer-group detail page (dynamic page ID "consumer_group:<groupID>").
|
Package consumergroup implements the consumer-group detail page (dynamic page ID "consumer_group:<groupID>"). |
|
errorpage
Package errorpage provides a full-content error view used as the router's fallback for unknown/uncreatable routes (UI-10).
|
Package errorpage provides a full-content error view used as the router's fallback for unknown/uncreatable routes (UI-10). |
|
ksql
Package ksql implements the ksqlDB UI: an overview page (page ID "ksql") listing the cluster's streams and tables in two tabs, and a query editor page (page ID "ksql_query") for executing statements and streaming SELECT results.
|
Package ksql implements the ksqlDB UI: an overview page (page ID "ksql") listing the cluster's streams and tables in two tabs, and a query editor page (page ID "ksql_query") for executing statements and streaming SELECT results. |
|
main
Package mainpage contains the main page components for the Kafui application.
|
Package mainpage contains the main page components for the Kafui application. |
|
message_detail
Package messagedetail contains the message detail page components for the Kafui application.
|
Package messagedetail contains the message detail page components for the Kafui application. |
|
metrics
Package metrics implements the metrics & monitoring page (page ID "metrics").
|
Package metrics implements the metrics & monitoring page (page ID "metrics"). |
|
resource_detail
Package resource_detail contains the resource detail page components for the Kafui application.
|
Package resource_detail contains the resource detail page components for the Kafui application. |
|
topic
Package topic contains the topic page components for the Kafui application.
|
Package topic contains the topic page components for the Kafui application. |
|
aclcsv
Package aclcsv provides pure CSV serialization/parsing of ACL bindings and a declarative sync (diff + apply) between a desired binding set and the cluster.
|
Package aclcsv provides pure CSV serialization/parsing of ACL bindings and a declarative sync (diff + apply) between a desired binding set and the cluster. |
|
template
|
|
Click to show internal directories.
Click to hide internal directories.