view

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

func NewContainer

func NewContainer() *Container

func (*Container) InfoHeader added in v0.4.0

func (view *Container) InfoHeader() []InfoItem

func (*Container) KeyBindings added in v0.3.0

func (view *Container) KeyBindings() []KeyBinding

func (*Container) Name

func (view *Container) Name() string

func (*Container) Populate

func (view *Container) Populate(shorts []container.Short)

type ErrorModal added in v0.2.0

type ErrorModal struct {
	*tview.Modal
	// contains filtered or unexported fields
}

func NewErrorModal added in v0.2.0

func NewErrorModal() *ErrorModal

func (*ErrorModal) Name added in v0.2.0

func (m *ErrorModal) Name() string

func (*ErrorModal) Populate added in v0.2.0

func (m *ErrorModal) Populate(err error)

type Files added in v0.3.0

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

func NewFiles added in v0.3.0

func NewFiles() *Files

func (*Files) InfoHeader added in v0.4.0

func (view *Files) InfoHeader() []InfoItem

func (*Files) KeyBindings added in v0.3.0

func (view *Files) KeyBindings() []KeyBinding

func (*Files) Name added in v0.3.0

func (view *Files) Name() string

func (*Files) Populate added in v0.3.0

func (view *Files) Populate(files []file.Info, short container.Short)
type Header struct {
	*tview.Flex
	// contains filtered or unexported fields
}

func NewHeader

func NewHeader(dhost, dversion string) *Header

func (*Header) Name

func (view *Header) Name() string

func (*Header) SetInfo added in v0.4.0

func (h *Header) SetInfo(items []InfoItem)

func (*Header) SetKeyBindings

func (h *Header) SetKeyBindings(bindings []KeyBinding)

SetKeyBindings updates the header display from a slice of KeyBindings. Views with more than 4 bindings are formatted in two columns; others single-column.

type InfoItem added in v0.4.0

type InfoItem struct {
	Key   string
	Value string
}

InfoItem is a single key-value entry for display in the Info panel.

type KeyBinding added in v0.3.0

type KeyBinding struct {
	Key  tcell.Key // Use tcell.KeyRune for printable characters.
	Rune rune      // Only meaningful when Key == tcell.KeyRune.
	Desc string
}

KeyBinding describes a single key binding for display in the header.

type Log

type Log struct {
	*tview.TextView
	// contains filtered or unexported fields
}

func NewLog

func NewLog() *Log

func (*Log) InfoHeader added in v0.4.0

func (view *Log) InfoHeader() []InfoItem

func (*Log) KeyBindings added in v0.3.0

func (view *Log) KeyBindings() []KeyBinding

func (*Log) Name

func (view *Log) Name() string

func (*Log) Populate

func (view *Log) Populate(logs client.LogSeq, short container.Short)

type Page added in v0.3.0

type Page interface {
	Name() string
	KeyBindings() []KeyBinding
	InfoHeader() []InfoItem
}

Page is implemented by all body views to expose their name and active key bindings.

Jump to

Keyboard shortcuts

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