views

package
v0.0.0-...-a09db05 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Completed

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

The Completed view holds the last screen after the pod has been terminated.

func NewCompleted

func NewCompleted(common *common.Common) *Completed

NewCompleted returns a new Completed instance.

func (*Completed) Init

func (c *Completed) Init() tea.Cmd

Init implements tea.Model.

func (*Completed) Update

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

Update implements tea.Model.

func (*Completed) View

func (c *Completed) View() string

View implements tea.Model.

type Loading

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

Loading is the view that displays a loading message and a spinner.

func NewLoading

func NewLoading(cmn *common.Common) *Loading

NewLoading returns a new Loading instance.

func (*Loading) Init

func (l *Loading) Init() tea.Cmd

Init implements tea.Model.

func (*Loading) Update

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

Update implements tea.Model.

func (*Loading) View

func (l *Loading) View() string

View implements tea.Model.

type Tail

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

func NewTail

func NewTail(cmn *common.Common) *Tail

Returns a new Tail.

func (*Tail) Init

func (t *Tail) Init() tea.Cmd

Init implements tea.Model.

func (*Tail) Update

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

Update implements tea.Model.

func (*Tail) View

func (t *Tail) View() string

View implements tea.Model.

type View

type View interface {
	Init() tea.Cmd
	Update(tea.Msg) (tea.Model, tea.Cmd)
	View() string
}

View is the interface of an UI view.

Jump to

Keyboard shortcuts

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