sftptest

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址