Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextKeySession = &struct{ string }{"session"}
ContextKeySession is the context key for the SSH session.
Functions ¶
func MarshalAuthorizedKey ¶
MarshalAuthorizedKey marshals a public key into an authorized key string.
This is the inverse of ParseAuthorizedKey. This function is a copy of ssh.MarshalAuthorizedKey, but without the trailing newline. It returns an empty string if pk is nil.
func ParseAuthorizedKey ¶
ParseAuthorizedKey parses an authorized key string into a public key.
func PublicKeyFromContext ¶
PublicKeyFromContext returns the public key from the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.