Documentation
¶
Overview ¶
Package sshagenttest serves an in-memory ssh-agent for tests, and pins SSH_AUTH_SOCK so a developer's own agent cannot change a result.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
Start serves an empty agent keyring on a fresh socket, points SSH_AUTH_SOCK at it for the rest of the test, and returns the keyring.
func WriteEncryptedKey ¶
func WriteEncryptedKey(t *testing.T, path, passphrase string) crypto.PrivateKey
WriteEncryptedKey writes a passphrase-protected ed25519 key and its .pub beside it at path, as the init wizard does, and returns the private key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.