Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadKeysInDir ¶
ReadKeysInDir lists ssh public keys in a dir
Types ¶
type Key ¶
Key represents an SSH public key
func (Key) Fingerprint ¶
Fingerprint returns the SHA256 hash of the fingerprint base64 standard encoded without a "SHA256:" prefix to be compatible with gin-auth
func (Key) MarshalAuthorizedKey ¶
MarshalAuthorizedKey creates a string representation that can be used in an authorized_keys file.
Click to show internal directories.
Click to hide internal directories.