Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCert ¶
NewCert returns a Bubble Tea model that inspects SSH certificates starting at the file picker.
func NewCertWithFile ¶
NewCertWithFile returns a Bubble Tea model pre-loaded with the given cert file, skipping the file-picker step.
func NewKeyWithFile ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.