ui

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRefreshInternalMS = 1000
View Source
const HELP_TEXT_VIEW_NAME = "helpTextTipsView"
View Source
const STATUS_VIEW_NAME = "statusView"

Variables

This section is empty.

Functions

This section is empty.

Types

type HelpTextTipsWidget added in v0.7.3

type HelpTextTipsWidget struct {
	// contains filtered or unexported fields
}

func NewHelpTextTipsWidget added in v0.7.3

func NewHelpTextTipsWidget(masterUI masterUIInterface.MasterUIInterface, name string, height int) *HelpTextTipsWidget

func (*HelpTextTipsWidget) Layout added in v0.7.3

func (w *HelpTextTipsWidget) Layout(g *gocui.Gui) error

func (*HelpTextTipsWidget) Name added in v0.7.3

func (w *HelpTextTipsWidget) Name() string

func (*HelpTextTipsWidget) SetHelpTextTips added in v0.7.3

func (w *HelpTextTipsWidget) SetHelpTextTips(g *gocui.Gui, helpTextTips string) error

type MasterUI

type MasterUI struct {
	// contains filtered or unexported fields
}

func NewMasterUI

func NewMasterUI(cliConnection plugin.CliConnection, pluginMetadata *plugin.PluginMetadata, privileged bool) *MasterUI

func (*MasterUI) AddCommonDataViewKeybindings added in v0.7.3

func (mui *MasterUI) AddCommonDataViewKeybindings(g *gocui.Gui, viewName string) error

Add common keybindings for all data views -- note that this does not include keybindings for "top level" data views which are ones that are selectable from the "select view" menu ('d' command)

func (*MasterUI) CliConnection

func (mui *MasterUI) CliConnection() plugin.CliConnection

func (*MasterUI) CloseView

func (mui *MasterUI) CloseView(m managerUI.Manager) error

func (*MasterUI) CloseViewByName

func (mui *MasterUI) CloseViewByName(viewName string) error

func (*MasterUI) GetAlertSize added in v0.7.8

func (mui *MasterUI) GetAlertSize() int

func (*MasterUI) GetCommonData added in v0.7.8

func (mui *MasterUI) GetCommonData() *dataCommon.CommonData

func (*MasterUI) GetCurrentView

func (mui *MasterUI) GetCurrentView(g *gocui.Gui) *gocui.View

func (*MasterUI) GetDisplayPaused added in v0.7.8

func (mui *MasterUI) GetDisplayPaused() bool

func (*MasterUI) GetHeaderSize added in v0.7.3

func (mui *MasterUI) GetHeaderSize() int

func (*MasterUI) GetRouter

func (mui *MasterUI) GetRouter() *eventrouting.EventRouter

func (*MasterUI) GetTargetDisplay added in v0.7.8

func (mui *MasterUI) GetTargetDisplay() string

func (*MasterUI) GetTopMargin added in v0.7.8

func (mui *MasterUI) GetTopMargin() int

func (*MasterUI) IsEditColumnMode added in v0.8.4

func (mui *MasterUI) IsEditColumnMode() bool

func (*MasterUI) IsHeaderMinimized added in v0.8.4

func (mui *MasterUI) IsHeaderMinimized() bool

func (*MasterUI) IsPrivileged added in v0.7.7

func (mui *MasterUI) IsPrivileged() bool

func (*MasterUI) IsWarmupComplete added in v0.7.3

func (mui *MasterUI) IsWarmupComplete() bool

func (*MasterUI) LayoutManager

func (mui *MasterUI) LayoutManager() managerUI.LayoutManagerInterface

func (*MasterUI) OpenView added in v0.7.3

func (mui *MasterUI) OpenView(g *gocui.Gui, dataView masterUIInterface.UpdatableView) error

func (*MasterUI) RefeshNow

func (mui *MasterUI) RefeshNow()

func (*MasterUI) SetCurrentViewOnTop

func (mui *MasterUI) SetCurrentViewOnTop(g *gocui.Gui) error

func (*MasterUI) SetDisplayPaused added in v0.7.8

func (mui *MasterUI) SetDisplayPaused(paused bool)

func (*MasterUI) SetEditColumnMode added in v0.8.4

func (mui *MasterUI) SetEditColumnMode(g *gocui.Gui, editColumnMode bool)

func (*MasterUI) SetHeaderMinimize added in v0.8.4

func (mui *MasterUI) SetHeaderMinimize(g *gocui.Gui, minimizeHeader bool)

func (*MasterUI) SetHelpTextTips added in v0.7.3

func (mui *MasterUI) SetHelpTextTips(g *gocui.Gui, helpTextTips string) error

func (*MasterUI) SetStatus added in v0.9.2

func (mui *MasterUI) SetStatus(g *gocui.Gui, status string) error

func (*MasterUI) Start

func (mui *MasterUI) Start(monitoredAppGuids map[string]bool)

type StatusWidget added in v0.9.2

type StatusWidget struct {
	// contains filtered or unexported fields
}

func NewStatusWidget added in v0.9.2

func NewStatusWidget(masterUI masterUIInterface.MasterUIInterface, name string) *StatusWidget

func (*StatusWidget) Layout added in v0.9.2

func (w *StatusWidget) Layout(g *gocui.Gui) error

func (*StatusWidget) Name added in v0.9.2

func (w *StatusWidget) Name() string

func (*StatusWidget) SetStatus added in v0.9.2

func (w *StatusWidget) SetStatus(g *gocui.Gui, status string) error

NOTE: To update/refresh UI with status, the function MasterUI.SetStatus() should be called

func (*StatusWidget) ShowStatus added in v0.9.2

func (w *StatusWidget) ShowStatus(g *gocui.Gui) error

Called by thread running within the gocui

Jump to

Keyboard shortcuts

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