keys

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadKeys

func LoadKeys(m Model) tea.Cmd

LoadKeys returns the command necessary for loading the keys.

func NewProgram

func NewProgram(cfg *client.Config) *tea.Program

NewProgram creates a new Tea program.

Types

type Model

type Model struct {
	Exit bool
	Quit bool
	// contains filtered or unexported fields
}

Model is the Tea state model for this user interface.

func NewModel

func NewModel(cfg *client.Config) Model

NewModel creates a new model with defaults.

func (Model) Init added in v0.8.5

func (m Model) Init() tea.Cmd

Init is the Tea initialization function.

func (*Model) SetCharmClient

func (m *Model) SetCharmClient(cc *client.Client)

SetCharmClient sets a pointer to the charm client on the model. The Charm Client is necessary for all network-related operations.

func (Model) Update added in v0.8.5

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

Update is the tea update function which handles incoming messages.

func (*Model) UpdatePaging

func (m *Model) UpdatePaging(msg tea.Msg)

UpdatePaging runs an update against the underlying pagination model as well as performing some related tasks on this model.

func (Model) View added in v0.8.5

func (m Model) View() string

View renders the current UI into a string.

Jump to

Keyboard shortcuts

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