Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAuthorized = errors.New("not authorized")
ErrNotAuthorized means that the public key is not authorized.
Functions ¶
func ListAuthorized ¶ added in v0.4.0
ListAuthorized returns the authorized key names for the given upstream.
Types ¶
type Authorization ¶
func AlwaysAuthorized ¶
func AlwaysAuthorized(dataDir string, publicKey ssh.PublicKey) (*Authorization, error)
AlwaysAuthorized returns whether the given public key provides access to any upstream.
func Authorized ¶
Authorized returns the authorizations of the given public key on the given upstream.
Click to show internal directories.
Click to hide internal directories.