Documentation ¶
Index ¶
- func GetMatchingKeys(a agent.Agent, keyText string) ([]*agent.Key, error)
- func SetupSigningMethod(namespace string, a agent.Agent) (jwt.SigningMethod, error)
- func SignSSH(signingString, namespace, authorizedKey string, a agent.Agent) (string, error)
- func VerifySSHSignature(signingString, signature, namespace, authorizedKey string) error
- type Handler
- type SSHAgent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMatchingKeys ¶
GetMatchingKeys retrieves public keys from an agent which contain keyText as a substring.
func SetupSigningMethod ¶
SetupSigningMethod creates and registers a JWT signing method using SSH keys
func VerifySSHSignature ¶
Types ¶
type Handler ¶
type SSHAgent ¶
type SSHAgent struct { agent.ExtendedAgent // contains filtered or unexported fields }
func GetSSHAgent ¶
GetSSHAgent either connects to a running agent if keyFile is empty, or creates a new agent and loads the specified key into it.
Click to show internal directories.
Click to hide internal directories.