Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_KEYTYPE = "rsa"
Variables ¶
This section is empty.
Functions ¶
func PubKey ¶
PubKey reads the content of file, until a non-nil error and upto n times each retry sleeps for a second
func PubKeyFile ¶
PubKeyFile returns the path to the public key of the host key type passed in
Types ¶
type KeyType ¶
type KeyType int
const ( Rsa KeyType Ecdsa Ed25519 )
func (KeyType) MarshalJSON ¶
MarshalJSON marshals the enum as a quoted json string
func (*KeyType) UnmarshalJSON ¶
UnmarshalJSON unmashals a quoted json string to the enum value
Click to show internal directories.
Click to hide internal directories.