Documentation ¶
Index ¶
- Constants
- Variables
- type Dashboard
- func (dash *Dashboard) Close()
- func (dash *Dashboard) ConfigCluster(cluster interface{}, cols int)
- func (dash *Dashboard) ConfigServer(server types.ServerStats)
- func (dash *Dashboard) GetOccupancyMode() types.InstanceOccupancyMode
- func (dash *Dashboard) Quit(reason string)
- func (dash *Dashboard) Start() error
- func (dash *Dashboard) Update()
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) ConfigCluster ¶
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
Click to show internal directories.
Click to hide internal directories.