Documentation ¶
Overview ¶
Package sftp will eventually contain all implementations of SFTP components (that are currently within ./internal/old)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostCallback ¶
func HostCallback(s *Server) ssh.HostKeyCallback
HostCallback is called when setting up the connection to the SFTP server.
Types ¶
type Credentials ¶
type HostAuthorityCallback ¶
HostAuthorityCallback used when setting up the connection to the SFTP server.
func HostAuthCallback ¶
func HostAuthCallback() HostAuthorityCallback
HostAuthCallback is called when setting up the connection to the SFTP server.
type IsRevokedCallback ¶
type IsRevokedCallback func(cert *ssh.Certificate) bool
IsRevokedCallback used when setting up the connection to the SFTP server.
func CertCallback ¶
func CertCallback(s *Server) IsRevokedCallback
CertCallback is called when setting up the connection to the SFTP server.
type Server ¶
type Server struct { Address string // host:port Host string // IP address Port string // port IsSSH bool // true if server is running SSH on address:port Banner string // banner text, if any Cert ssh.Certificate // server's certificate Hostname string // hostname PublicKey ssh.PublicKey // server's public key }
Server contains connection data for connecting to an SFTP server.
Click to show internal directories.
Click to hide internal directories.