widgets

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Banner struct {
	*tview.Flex
	// contains filtered or unexported fields
}

func NewBanner

func NewBanner(version, latest string) *Banner

func (*Banner) Height

func (b *Banner) Height() int

func (*Banner) SetClientInfo

func (b *Banner) SetClientInfo(client *kmipclient.Client)

type Help

type Help struct {
	*tview.Table
}

func NewHelp

func NewHelp() *Help

type Info

type Info struct {
	*tview.Table
}

func NewInfo

func NewInfo(server, kmipVersion, clientVersion, latestVersion string) *Info

func (*Info) UpdateKmipVersion

func (inf *Info) UpdateKmipVersion(vers string)

func (*Info) UpdateServerName

func (inf *Info) UpdateServerName(name string)
type Logo struct {
	*tview.TextView
}
func NewLogo() *Logo

func (*Logo) Width

func (l *Logo) Width() int

type MobTable

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

func NewMobTable

func NewMobTable() *MobTable

func (*MobTable) Clear

func (mtb *MobTable) Clear(scrollToBeginning bool)

func (*MobTable) GetSelection

func (tb *MobTable) GetSelection() *payloads.GetAttributesResponsePayload

func (*MobTable) InputHandler

func (mtb *MobTable) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

func (*MobTable) OnContentUpdate

func (tb *MobTable) OnContentUpdate(cb func()) *MobTable

func (*MobTable) OnSelected

func (tb *MobTable) OnSelected(cb func(*payloads.GetAttributesResponsePayload)) *MobTable

func (*MobTable) OnSelectionChanged

func (tb *MobTable) OnSelectionChanged(cb func(*payloads.GetAttributesResponsePayload)) *MobTable

func (*MobTable) RemoveObject

func (mtb *MobTable) RemoveObject(id string)

func (*MobTable) SetObjects

func (mtb *MobTable) SetObjects(objects []*payloads.GetAttributesResponsePayload)

func (*MobTable) SetTitle

func (mtb *MobTable) SetTitle(title string)

func (*MobTable) UpdateObject

func (mtb *MobTable) UpdateObject(object *payloads.GetAttributesResponsePayload)

type MobTypeTabs

type MobTypeTabs struct {
	*components.Tabs
	// contains filtered or unexported fields
}

func NewMobTypeTabs

func NewMobTypeTabs() *MobTypeTabs

func (*MobTypeTabs) Current

func (mtt *MobTypeTabs) Current() string

func (*MobTypeTabs) OnChange

func (mtt *MobTypeTabs) OnChange(cb func(kmip.ObjectType, string)) *MobTypeTabs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳