dashboard

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DONE_CLOSE = 0
	DONE_QUIT  = 1
)

Variables

View Source
var (
	ErrClosed = errors.New("dashboard closed")
)

Functions

This section is empty.

Types

type Dashboard

type Dashboard struct {
	*ui.Grid
	ClusterView *views.ClusterView
	GroupedView *views.GroupedClusterView
	LogView     *views.LogView
	StatusView  *views.StatusView
	// contains filtered or unexported fields
}

func NewDashboard

func NewDashboard() *Dashboard

func (*Dashboard) Close

func (dash *Dashboard) Close()

func (*Dashboard) ConfigCluster

func (dash *Dashboard) ConfigCluster(cluster interface{}, cols int)

ConfigCluster configures the dashboard to display cluster stats.

func (*Dashboard) ConfigServer

func (dash *Dashboard) ConfigServer(server types.ServerStats)

ConfigServer configures the dashboard to display server stats.

func (*Dashboard) GetOccupancyMode

func (dash *Dashboard) GetOccupancyMode() types.InstanceOccupancyMode

func (*Dashboard) Quit

func (dash *Dashboard) Quit(reason string)

func (*Dashboard) Start

func (dash *Dashboard) Start() error

func (*Dashboard) Update

func (dash *Dashboard) Update()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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