Documentation ¶
Overview ¶
Package components implements specific widgets for the dashboard.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseGraph ¶
BaseGraph represents the widget with some usage graph.
func NewBaseGraph ¶
NewBaseGraph initializes BaseGraph.
type BaseSparklineGroup ¶
type BaseSparklineGroup struct { widgets.SparklineGroup // contains filtered or unexported fields }
BaseSparklineGroup represents the widget with some sparklines.
func NewBaseSparklineGroup ¶
func NewBaseSparklineGroup(title string, labels, dataLabels []string) *BaseSparklineGroup
NewBaseSparklineGroup initializes BaseSparklineGroup.
func NewDiskSparkline ¶
func NewDiskSparkline() *BaseSparklineGroup
NewDiskSparkline creates disk sparkline.
func NewNetSparkline ¶
func NewNetSparkline() *BaseSparklineGroup
NewNetSparkline creates network sparkline.
func (*BaseSparklineGroup) OnAPIDataChange ¶
func (widget *BaseSparklineGroup) OnAPIDataChange(node string, data *apidata.Data)
OnAPIDataChange implements the APIDataListener interface.
type Footer ¶
type Footer struct { // contains filtered or unexported fields }
Footer represents the top bar with host info.
func (*Footer) OnNodeSelect ¶
OnNodeSelect implements the NodeSelectListener interface.
func (*Footer) SelectScreen ¶
SelectScreen refreshes the footer with the tabs and screens data.
type Header ¶
Header represents the top bar with host info.
func (*Header) OnAPIDataChange ¶
OnAPIDataChange implements the APIDataListener interface.
func (*Header) OnNodeSelect ¶
OnNodeSelect implements the NodeSelectListener interface.
func (*Header) OnResourceDataChange ¶
func (widget *Header) OnResourceDataChange(data resourcedata.Data)
OnResourceDataChange implements the ResourceDataListener interface.
type HorizontalLine ¶
HorizontalLine is a widget that draws a horizontal line.
func NewHorizontalLine ¶
func NewHorizontalLine() *HorizontalLine
NewHorizontalLine initializes HorizontalLine.
type KubernetesInfo ¶
KubernetesInfo represents the kubernetes info widget.
func NewKubernetesInfo ¶
func NewKubernetesInfo() *KubernetesInfo
NewKubernetesInfo initializes KubernetesInfo.
func (*KubernetesInfo) OnAPIDataChange ¶
func (widget *KubernetesInfo) OnAPIDataChange(node string, data *apidata.Data)
OnAPIDataChange implements the APIDataListener interface.
func (*KubernetesInfo) OnNodeSelect ¶
func (widget *KubernetesInfo) OnNodeSelect(node string)
OnNodeSelect implements the NodeSelectListener interface.
func (*KubernetesInfo) OnResourceDataChange ¶
func (widget *KubernetesInfo) OnResourceDataChange(data resourcedata.Data)
OnResourceDataChange implements the ResourceDataListener interface.
type LoadAvgInfo ¶
LoadAvgInfo represents the widget with load average info.
func (*LoadAvgInfo) OnAPIDataChange ¶
func (widget *LoadAvgInfo) OnAPIDataChange(node string, data *apidata.Data)
OnAPIDataChange implements the APIDataListener interface.
type NetworkInfo ¶
NetworkInfo represents the network info widget.
func (*NetworkInfo) OnNodeSelect ¶
func (widget *NetworkInfo) OnNodeSelect(node string)
OnNodeSelect implements the NodeSelectListener interface.
func (*NetworkInfo) OnResourceDataChange ¶
func (widget *NetworkInfo) OnResourceDataChange(data resourcedata.Data)
OnResourceDataChange implements the ResourceDataListener interface.
type ProcessTable ¶
ProcessTable represents the widget with process info.
func NewProcessTable ¶
func NewProcessTable() *ProcessTable
NewProcessTable initializes ProcessTable.
func (*ProcessTable) OnAPIDataChange ¶
func (widget *ProcessTable) OnAPIDataChange(node string, data *apidata.Data)
OnAPIDataChange implements the APIDataListener interface.
type SystemGauges ¶
type SystemGauges struct { *TermUIWrapper // contains filtered or unexported fields }
SystemGauges quickly show CPU/mem load.
func (*SystemGauges) OnAPIDataChange ¶
func (widget *SystemGauges) OnAPIDataChange(node string, data *apidata.Data)
OnAPIDataChange implements the APIDataListener interface.
type TalosInfo ¶
TalosInfo represents the Talos info widget.
func (*TalosInfo) OnNodeSelect ¶
OnNodeSelect implements the NodeSelectListener interface.
func (*TalosInfo) OnResourceDataChange ¶
func (widget *TalosInfo) OnResourceDataChange(data resourcedata.Data)
OnResourceDataChange implements the ResourceDataListener interface.
type TermUIWrapper ¶
TermUIWrapper is a custom tview component that wraps a legacy termui component and draws it.
func NewTermUIWrapper ¶
func NewTermUIWrapper(drawable termui.Drawable) *TermUIWrapper
NewTermUIWrapper initializes a new TermUIWrapper.
func (*TermUIWrapper) Draw ¶
func (w *TermUIWrapper) Draw(screen tcell.Screen)
Draw implements the tview.Primitive interface.