table

package
v0.0.10-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TABLE_WIDTH_RATIO = 0.7
	TABLE_SCROLL_STEP = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

func NewModel

func NewModel(nodes []*kube.Node, objs []*unstructured.Unstructured) *Model

func (*Model) Blur

func (m *Model) Blur()

func (*Model) Focus

func (m *Model) Focus() tea.Cmd

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Keyword

func (m *Model) Keyword() string

func (*Model) TableWidth

func (m *Model) TableWidth() int

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

func (*Model) WillOverWidth

func (m *Model) WillOverWidth(node *kube.Node) bool

type SetCandidateMsg

type SetCandidateMsg struct {
	Candidate *kube.Node
}

type SetKeywordMsg

type SetKeywordMsg struct {
	Keyword string
}

type SetTableMsg

type SetTableMsg struct {
	Nodes []*kube.Node
	Objs  []*unstructured.Unstructured
}

Jump to

Keyboard shortcuts

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