ui

package
v0.0.0-...-250d599 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PageModal = "modal"
	PagePods  = "pods"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionBar

type ActionBar struct {
	*cview.TextView
	// contains filtered or unexported fields
}

func NewActionBar

func NewActionBar(input *event.Input) *ActionBar

func (*ActionBar) AddAction

func (a *ActionBar) AddAction(number int, text string, ev *tcell.EventKey, fn func() bool)

func (*ActionBar) Clear

func (a *ActionBar) Clear() *ActionBar
type Modal struct {
	*cview.Grid
}

func NewModal

func NewModal(p cview.Primitive) Modal

type ModalList

type ModalList struct {
	Modal
	// contains filtered or unexported fields
}

func NewModalList

func NewModalList() ModalList

func (ModalList) List

func (m ModalList) List() *cview.List

type StatusBar

type StatusBar struct {
	*cview.TextView
	// contains filtered or unexported fields
}

func NewStatusBar

func NewStatusBar(app *cview.Application) StatusBar

func (StatusBar) Clear

func (s StatusBar) Clear()

func (StatusBar) SetText

func (s StatusBar) SetText(text string)

func (StatusBar) ShowTextFor

func (s StatusBar) ShowTextFor(text string, d time.Duration)

func (StatusBar) SpinText

func (s StatusBar) SpinText(text string)

func (StatusBar) StopSpin

func (s StatusBar) StopSpin()

type UI

type UI struct {
	App               *cview.Application
	Pages             *cview.Pages
	NamespaceDropDown *cview.DropDown
	Picker            ModalList
	PodsTree          *cview.TreeView
	PodsDetails       *cview.Flex
	PodData           *cview.TextView
	PodEvents         *cview.Table
	StatusBar         StatusBar
	ActionBar         *ActionBar

	InputEvents *event.Input
}

func New

func New() *UI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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