ui

package
v0.0.0-...-c83f773 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseStyle = lipgloss.NewStyle().
	BorderStyle(lipgloss.NormalBorder()).
	BorderForeground(lipgloss.Color("240"))

Functions

This section is empty.

Types

type LogModel

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

func NewLogModel

func NewLogModel() LogModel

func (LogModel) Init

func (m LogModel) Init() tea.Cmd

func (LogModel) Update

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

func (LogModel) View

func (m LogModel) View() string

type Model

type Model struct {
}

func NewModel

func NewModel() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Pane

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

func NewPane

func NewPane(model tea.Model) Pane

func (*Pane) Blur

func (p *Pane) Blur()

func (*Pane) Focus

func (p *Pane) Focus()

func (Pane) Init

func (p Pane) Init() tea.Cmd

func (Pane) Update

func (p Pane) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Pane) View

func (p Pane) View() string

type PodModel

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

func NewPodModel

func NewPodModel() PodModel

func (PodModel) Init

func (m PodModel) Init() tea.Cmd

func (PodModel) Update

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

func (*PodModel) UpdateTable

func (m *PodModel) UpdateTable()

func (PodModel) View

func (m PodModel) View() string

type Window

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

* This is the highest level construct and overall wrapper.

ATM only 1 pane is viewable at a time and handles focus between panes *

func NewWindow

func NewWindow(client *api.Client) Window

func (Window) Init

func (w Window) Init() tea.Cmd

func (Window) Update

func (w Window) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Window) View

func (m Window) View() string

Jump to

Keyboard shortcuts

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