Documentation ¶
Overview ¶
Package dashboard implements a text-based UI dashboard.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIDataListener ¶
APIDataListener is a listener which is notified when API-sourced data is updated.
type Dashboard ¶
type Dashboard struct {
// contains filtered or unexported fields
}
Dashboard implements the summary dashboard.
type LogDataListener ¶
LogDataListener is a listener which is notified when a log line is received.
type MonitorGrid ¶
MonitorGrid represents the monitoring grid with a process table and various metrics.
func NewMonitorGrid ¶
func NewMonitorGrid(app *tview.Application) *MonitorGrid
NewMonitorGrid initializes MonitorGrid.
func (*MonitorGrid) OnAPIDataChange ¶
func (widget *MonitorGrid) OnAPIDataChange(node string, data *apidata.Data)
OnAPIDataChange implements the APIDataListener interface.
type NetworkConfigGrid ¶
NetworkConfigGrid represents the network configuration widget.
func NewNetworkConfigGrid ¶
func NewNetworkConfigGrid(ctx context.Context, app *tview.Application, pages *tview.Pages, cli *client.Client) *NetworkConfigGrid
NewNetworkConfigGrid initializes NetworkConfigGrid.
func (*NetworkConfigGrid) OnNodeSelect ¶
func (widget *NetworkConfigGrid) OnNodeSelect(node string)
OnNodeSelect implements the NodeSelectListener interface.
func (*NetworkConfigGrid) OnResourceDataChange ¶
func (widget *NetworkConfigGrid) OnResourceDataChange(data resourcedata.Data)
OnResourceDataChange implements the ResourceDataListener interface.
type NodeSelectListener ¶
type NodeSelectListener interface {
OnNodeSelect(node string)
}
NodeSelectListener is a listener which is notified when a node is selected.
type NodeSetListener ¶
type NodeSetListener interface {
OnNodeSetChange(nodes []string)
}
NodeSetListener is a listener which is notified when the set of nodes changes.
type Option ¶
type Option func(*options)
Option is a functional option for Dashboard.
func WithAllowExitKeys ¶
WithAllowExitKeys sets whether the dashboard should allow exit keys (Ctrl + C).
func WithInterval ¶
WithInterval sets the interval for the dashboard.
func WithScreens ¶
WithScreens sets the screens to display. The order is preserved.
type ResourceDataListener ¶
type ResourceDataListener interface {
OnResourceDataChange(data resourcedata.Data)
}
ResourceDataListener is a listener which is notified when a resource is updated.
type SummaryGrid ¶
SummaryGrid represents the summary grid with the basic node information and the logs.
func NewSummaryGrid ¶
func NewSummaryGrid(app *tview.Application) *SummaryGrid
NewSummaryGrid initializes SummaryGrid.
func (*SummaryGrid) OnAPIDataChange ¶
func (widget *SummaryGrid) OnAPIDataChange(node string, data *apidata.Data)
OnAPIDataChange implements the APIDataListener interface.
func (*SummaryGrid) OnLogDataChange ¶
func (widget *SummaryGrid) OnLogDataChange(node string, logLine string)
OnLogDataChange implements the LogDataListener interface.
func (*SummaryGrid) OnNodeSelect ¶
func (widget *SummaryGrid) OnNodeSelect(node string)
OnNodeSelect implements the NodeSelectListener interface.
func (*SummaryGrid) OnResourceDataChange ¶
func (widget *SummaryGrid) OnResourceDataChange(nodeResource resourcedata.Data)
OnResourceDataChange implements the ResourceDataListener interface.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package apidata implements the types and the data sources for the data sourced from various Talos APIs.
|
Package apidata implements the types and the data sources for the data sourced from various Talos APIs. |
Package components implements specific widgets for the dashboard.
|
Package components implements specific widgets for the dashboard. |
Package logdata implements the types and the data sources for the data sourced from the Talos dmesg API.
|
Package logdata implements the types and the data sources for the data sourced from the Talos dmesg API. |
Package resourcedata implements the types and the data sources for the data sourced from the Talos resource API (COSI).
|
Package resourcedata implements the types and the data sources for the data sourced from the Talos resource API (COSI). |