model

package
v0.0.0-...-4da7fe4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	List() ([]Row, error)
	Get(name string) (Row, error)
}

type Model

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

func New

func New(client Client) *Model

func (*Model) Init

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

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

type Row

type Row struct {
	Object    string
	Status    string
	RunStatus string
	Age       string
	Warnings  string
}

func (Row) String

func (r Row) String() string

type UpdateListMsg

type UpdateListMsg struct {
	Items []Row
}

Jump to

Keyboard shortcuts

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