components

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

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

type BaseGraph struct {
	widgets.Plot
}

BaseGraph represents the widget with some usage graph.

func NewBaseGraph

func NewBaseGraph(title string, labels []string) *BaseGraph

NewBaseGraph initializes BaseGraph.

func NewCPUGraph

func NewCPUGraph() *BaseGraph

NewCPUGraph creates CPU usage graph.

func NewLoadAvgGraph

func NewLoadAvgGraph() *BaseGraph

NewLoadAvgGraph creates loadavg graph.

func NewMemGraph

func NewMemGraph() *BaseGraph

NewMemGraph creates mem usage graph.

func (*BaseGraph) Update

func (widget *BaseGraph) Update(node string, data *data.Data)

Update implements the DataWidget interface.

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) Update

func (widget *BaseSparklineGroup) Update(node string, data *data.Data)

Update implements the DataWidget interface.

type CPUInfo

type CPUInfo struct {
	widgets.Paragraph
}

CPUInfo represents the widget with CPU info.

func NewCPUInfo

func NewCPUInfo() *CPUInfo

NewCPUInfo initializes CPUInfo.

func (*CPUInfo) Update

func (widget *CPUInfo) Update(node string, data *data.Data)

Update implements the DataWidget interface.

type LoadAvgInfo

type LoadAvgInfo struct {
	widgets.Paragraph
}

LoadAvgInfo represents the widget with load average info.

func NewLoadAvgInfo

func NewLoadAvgInfo() *LoadAvgInfo

NewLoadAvgInfo initializes LoadAvgInfo.

func (*LoadAvgInfo) Update

func (widget *LoadAvgInfo) Update(node string, data *data.Data)

Update implements the DataWidget interface.

type MemInfo

type MemInfo struct {
	widgets.Paragraph
}

MemInfo represents the widget with memory info.

func NewMemInfo

func NewMemInfo() *MemInfo

NewMemInfo initializes LoadAvgInfo.

func (*MemInfo) Update

func (widget *MemInfo) Update(node string, data *data.Data)

Update implements the DataWidget interface.

type NodeTabs

type NodeTabs struct {
	widgets.TabPane
}

NodeTabs represents the bottom bar with node list.

func NewNodeTabs

func NewNodeTabs() *NodeTabs

NewNodeTabs initializes NodeTabs.

func (*NodeTabs) Update

func (widget *NodeTabs) Update(node string, data *data.Data)

Update implements the DataWidget interface.

type ProcessTable

type ProcessTable struct {
	widgets.List
}

ProcessTable represents the widget with process info.

func NewProcessTable

func NewProcessTable() *ProcessTable

NewProcessTable initializes ProcessTable.

func (*ProcessTable) Update

func (widget *ProcessTable) Update(node string, data *data.Data)

Update implements the DataWidget interface.

type ProcsInfo

type ProcsInfo struct {
	widgets.Paragraph
}

ProcsInfo represents the widget with processes info.

func NewProcsInfo

func NewProcsInfo() *ProcsInfo

NewProcsInfo initializes ProcsInfo.

func (*ProcsInfo) Update

func (widget *ProcsInfo) Update(node string, data *data.Data)

Update implements the DataWidget interface.

type SystemGauges

type SystemGauges struct {
	ui.Block
	// contains filtered or unexported fields
}

SystemGauges quickly show CPU/mem load.

func NewSystemGauges

func NewSystemGauges() *SystemGauges

NewSystemGauges creates SystemGauges.

func (*SystemGauges) Draw

func (widget *SystemGauges) Draw(buf *ui.Buffer)

Draw implements io.Drawable.

func (*SystemGauges) Update

func (widget *SystemGauges) Update(node string, data *data.Data)

Update implements DataWidget interface.

type TopLine

type TopLine struct {
	widgets.Paragraph
}

TopLine represents the top bar with host info.

func NewTopLine

func NewTopLine() *TopLine

NewTopLine initializes TopLine.

func (*TopLine) Update

func (widget *TopLine) Update(node string, data *data.Data)

Update implements the DataWidget interface.

Jump to

Keyboard shortcuts

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