RegisterManagedSSHTransport registers a Go-native implementation of an SSH transport that doesn't rely on any system libraries (e.g. libssh2). If Shutdown or ReInit are called, make sure that the smart transports are freed before it.
(protocol string)
| 29 | // If Shutdown or ReInit are called, make sure that the smart transports are |
| 30 | // freed before it. |
| 31 | func RegisterManagedSSHTransport(protocol string) (*RegisteredSmartTransport, error) { |
| 32 | return NewRegisteredSmartTransport(protocol, false, sshSmartSubtransportFactory) |
| 33 | } |
| 34 | |
| 35 | func registerManagedSSH() error { |
| 36 | globalRegisteredSmartTransports.Lock() |
nothing calls this directly
no test coverage detected
searching dependent graphs…