Documentation ¶
Index ¶
- Constants
- Variables
- func CenterText(text string) string
- func CompareStruct(t interface{}, field string, i, j int, reverse bool) bool
- func ContainerFooter() *termui.Par
- func ContainersHandler(e termui.EvtKbd)
- func DashboardFooter() *termui.Par
- func DashboardHandler(e termui.EvtKbd)
- func DefaultHandler(e termui.Event)
- func EventsFooter() *termui.Par
- func Footer(text string) *termui.Par
- func GaugePanel(label string, barColor termui.Attribute) *termui.Gauge
- func KubeTop(kubeClient *kube.KubeClient, namespace string)
- func NewContainersPanel(height int) *termui.Table
- func NewEventsPanel(height int) *termui.Table
- func NewNodePanel() *termui.List
- func NodesFooter() *termui.Par
- func ShowContainers()
- func ShowDashboard()
- func ShowEvents()
- func ShowNodeWindow()
- func TimeToDurationStr(t time.Time) string
- func UpdatePanels()
- func UpdateResources()
- type Window
Constants ¶
View Source
const ( REFRESH_SECONDS = 3 EVENTS_PANEL_HEIGHT = 15 NODE_PANEL_HEIGHT = 9 NodesWindow Window = "Nodes" DashboardWindow Window = "Dashboard" EventsWindow Window = "Events" ContainersWindow Window = "Containers" )
Variables ¶
View Source
var ( ActiveWindow Window ContainerPanel *termui.Table Containers []*kube.ContainerInfo ContainerMaxes map[string]*kube.ContainerMaxes CpuColumn []termui.GridBufferer Events []api_v1.Event EventsPanel *termui.Table KubeClient *kube.KubeClient MemoryColumn []termui.GridBufferer Namespace string NodePanel *termui.List NodeResources []*kube.NodeResources Nodes []api_v1.Node SortField string SortOrder bool )
Functions ¶
func CenterText ¶
func ContainerFooter ¶
func ContainersHandler ¶
func DashboardFooter ¶
func DashboardHandler ¶
func DefaultHandler ¶
func EventsFooter ¶
func KubeTop ¶
func KubeTop(kubeClient *kube.KubeClient, namespace string)
func NewContainersPanel ¶
func NewEventsPanel ¶
func NewNodePanel ¶
func NodesFooter ¶
func ShowContainers ¶
func ShowContainers()
func ShowDashboard ¶
func ShowDashboard()
func ShowEvents ¶
func ShowEvents()
func ShowNodeWindow ¶
func ShowNodeWindow()
func TimeToDurationStr ¶
func UpdatePanels ¶
func UpdatePanels()
func UpdateResources ¶
func UpdateResources()
Types ¶
Click to show internal directories.
Click to hide internal directories.