keys

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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.

Types

type Fingerprint

type Fingerprint struct {
	Type      string
	Value     string
	Algorithm string
}

func FingerprintSHA256

func FingerprintSHA256(k *db.PublicKey) (Fingerprint, error)

FingerprintSHA256 returns the algorithm and SHA256 fingerprint for the given key.

func (Fingerprint) String

func (f Fingerprint) String() string

String outputs a string representation of the fingerprint.

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 *config.ConfigCms, dbpool db.DB, user *db.User) Model

NewModel creates a new model with defaults.

func (Model) Init

func (m Model) Init() tea.Cmd

Init is the Tea initialization function.

func (Model) Update

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

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