ui

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(resource metrics.Resource, interval int, options interface{}, showManagedFields bool, flags *genericclioptions.ConfigFlags) *App

func (App) Init

func (a App) Init() tea.Cmd

func (App) Update

func (a App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (App) View

func (a App) View() string

type Graphs

type Graphs struct {
	Height int
	Width  int
	// contains filtered or unexported fields
}

func NewGraphs

func NewGraphs(conf config.Colors, graphColor asciigraph.AnsiColor) *Graphs

func (Graphs) Init

func (g Graphs) Init() tea.Cmd

func (*Graphs) SetSize

func (g *Graphs) SetSize(width, height int)

func (*Graphs) Update

func (g *Graphs) Update(msg tea.Msg) (Graphs, tea.Cmd)

func (*Graphs) View

func (g *Graphs) View() string

type Info

type Info struct {
	Height int
	Width  int
	// contains filtered or unexported fields
}

func NewInfo

func NewInfo(conf config.Colors) *Info

func (Info) Init

func (i Info) Init() tea.Cmd

func (*Info) SetContent

func (i *Info) SetContent(s string)

func (*Info) SetSize

func (i *Info) SetSize(width, height int)

func (*Info) Update

func (i *Info) Update(msg tea.Msg) (Info, tea.Cmd)

func (Info) View

func (i Info) View() string

type List

type List struct {
	Height int
	Width  int
	// contains filtered or unexported fields
}

func NewList

func NewList(resource metrics.Resource, conf config.Colors) *List

func (List) GetNamespace added in v0.1.5

func (l List) GetNamespace() string

func (List) GetSelected

func (l List) GetSelected() string

func (List) Init

func (l List) Init() tea.Cmd

func (*List) SetSize

func (l *List) SetSize(width, height int)

func (*List) Update

func (l *List) Update(msg tea.Msg) (List, tea.Cmd)

func (List) View

func (l List) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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