Documentation ¶ Index ¶ func NewSigner(t testing.TB) (ssh.Signer, ed25519.PrivateKey) func WritePrivateKey(t testing.TB, dir string, private ed25519.PrivateKey) string type Server func Start(t testing.TB) *Server func StartWithHostKeys(t testing.TB, extra ...ssh.Signer) *Server func (s *Server) Allow(key ssh.PublicKey) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewSigner ¶ func NewSigner(t testing.TB) (ssh.Signer, ed25519.PrivateKey) func WritePrivateKey ¶ func WritePrivateKey(t testing.TB, dir string, private ed25519.PrivateKey) string Types ¶ type Server ¶ type Server struct { Host string Port int HostKey ssh.Signer // contains filtered or unexported fields } func Start ¶ func Start(t testing.TB) *Server func StartWithHostKeys ¶ func StartWithHostKeys(t testing.TB, extra ...ssh.Signer) *Server func (*Server) Allow ¶ func (s *Server) Allow(key ssh.PublicKey) Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.