MCPcopy Create free account
hub / github.com/libgit2/git2go / RegisterManagedSSHTransport

Function RegisterManagedSSHTransport

ssh.go:31–33  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

29// If Shutdown or ReInit are called, make sure that the smart transports are
30// freed before it.
31func RegisterManagedSSHTransport(protocol string) (*RegisteredSmartTransport, error) {
32 return NewRegisteredSmartTransport(protocol, false, sshSmartSubtransportFactory)
33}
34
35func registerManagedSSH() error {
36 globalRegisteredSmartTransports.Lock()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…