ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 37 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollapseText

func CollapseText(node *tview.TreeNode)

func ExpandText

func ExpandText(node *tview.TreeNode)

func GetText

func GetText(node *tview.TreeNode) string

func LenOfFlex

func LenOfFlex(f *tview.Flex) int

func NewScrollingTextView

func NewScrollingTextView(title string) *tview.TextView

func NewTreeNode

func NewTreeNode(s string) *tview.TreeNode

func RecoverOut

func RecoverOut()

func RedirectionOut

func RedirectionOut(z zapcore.WriteSyncer)

func RunTviewApplication

func RunTviewApplication()

Types

type CliProfile

type CliProfile struct {
	LastPosition string `json:"lastPosition" json:"lastPosition"`
}

type ClusterInfo

type ClusterInfo struct {
	Cluster    string
	Context    string
	NameSpace  string
	KubeConfig string // path
	User       string
	K8sVer     string `json:"-" yaml:"-"`
	NhctlVer   string `json:"-" yaml:"-"`
	// contains filtered or unexported fields
}

type EnhancedPrimitive

type EnhancedPrimitive struct {
	tview.Primitive
	// contains filtered or unexported fields
}

func (*EnhancedPrimitive) Blur

func (e *EnhancedPrimitive) Blur()

func (*EnhancedPrimitive) Focus

func (e *EnhancedPrimitive) Focus(delegate func(p tview.Primitive))

func (*EnhancedPrimitive) SetBlurFunc

func (e *EnhancedPrimitive) SetBlurFunc(f func())

func (*EnhancedPrimitive) SetFocusFunc

func (e *EnhancedPrimitive) SetFocusFunc(f func())

type EnhancedTable

type EnhancedTable struct {
	*tview.Table
	// contains filtered or unexported fields
}

func NewRowSelectableTable

func NewRowSelectableTable(s string) *EnhancedTable

func NewSelectableTable

func NewSelectableTable(s string) *EnhancedTable

func (*EnhancedTable) Blur

func (e *EnhancedTable) Blur()

func (*EnhancedTable) Focus

func (e *EnhancedTable) Focus(delegate func(p tview.Primitive))

func (*EnhancedTable) SetBlurFunc

func (e *EnhancedTable) SetBlurFunc(f func())

func (*EnhancedTable) SetFocusFunc

func (e *EnhancedTable) SetFocusFunc(f func())

type EnhancedTreeNode

type EnhancedTreeNode struct {
	*tview.TreeNode
	Parent *EnhancedTreeNode
}

func (*EnhancedTreeNode) AddChild

type SyncBuilder

type SyncBuilder struct {
	WriteFunc func(p []byte) (int, error)
}

func (*SyncBuilder) Sync

func (s *SyncBuilder) Sync() error

func (*SyncBuilder) Write

func (s *SyncBuilder) Write(p []byte) (int, error)

type TviewApplication

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

func NewTviewApplication

func NewTviewApplication() *TviewApplication

func (*TviewApplication) ConfirmationBox

func (t *TviewApplication) ConfirmationBox(str string, ok, cancel func())

func (*TviewApplication) InfoBox

func (t *TviewApplication) InfoBox(str string, ok func())

func (*TviewApplication) NewBorderedTable

func (t *TviewApplication) NewBorderedTable(s string) *EnhancedTable

func (*TviewApplication) NewCentralPage

func (t *TviewApplication) NewCentralPage(pageName string, p tview.Primitive, width, height int) func()

func (*TviewApplication) NewScrollingTextViewForBody

func (t *TviewApplication) NewScrollingTextViewForBody(title string) *tview.TextView

func (*TviewApplication) QueueUpdateDraw

func (t *TviewApplication) QueueUpdateDraw(f func())

func (*TviewApplication) RefreshHeader

func (t *TviewApplication) RefreshHeader()

func (*TviewApplication) Run

func (t *TviewApplication) Run() error

func (*TviewApplication) ShowDevImageTable

func (t *TviewApplication) ShowDevImageTable(x, y, width, height int) *EnhancedTable

func (*TviewApplication) ShowInfo

func (t *TviewApplication) ShowInfo(str string)

func (*TviewApplication) UpdateTreeColor

func (t *TviewApplication) UpdateTreeColor(color tcell.Color)

Jump to

Keyboard shortcuts

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