inspect

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCert

func NewCert() tea.Model

NewCert returns a Bubble Tea model that inspects SSH certificates starting at the file picker.

func NewCertWithFile

func NewCertWithFile(path string) tea.Model

NewCertWithFile returns a Bubble Tea model pre-loaded with the given cert file, skipping the file-picker step.

func NewKey

func NewKey() tea.Model

NewKey returns a new SSH key inspect model starting at the file picker.

func NewKeyWithFile

func NewKeyWithFile(path string) tea.Model

NewKeyWithFile returns an inspect model pre-loaded with the given file path. If the file is an encrypted private key, the model jumps to the passphrase step; otherwise it goes directly to the result step.

func NewKeyWithFileEmbedded

func NewKeyWithFileEmbedded(path string) tea.Model

NewKeyWithFileEmbedded is like NewKeyWithFile but skips the banner when rendered (used when embedded inside another screen).

Types

type KeyInfo

type KeyInfo struct {
	Type              string // RSA, ED25519, ECDSA, DSA
	Bits              int
	FingerprintSHA256 string
	FingerprintMD5    string
	Comment           string
	IsPublic          bool
	IsEncrypted       bool
	PublicKeyPreview  string // first 64 chars of the key data + "..."
}

KeyInfo holds the parsed information about an SSH key.

type KeyModel

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

KeyModel is a Bubble Tea model that inspects SSH keys.

func (*KeyModel) Init

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

func (*KeyModel) Update

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

func (*KeyModel) View

func (m *KeyModel) View() string

Jump to

Keyboard shortcuts

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