SmartRemoteConnectOptions gets a copy of the proxy options for this transport.
()
| 86 | |
| 87 | // SmartRemoteConnectOptions gets a copy of the proxy options for this transport. |
| 88 | func (t *Transport) SmartRemoteConnectOptions() (*RemoteConnectOptions, error) { |
| 89 | runtime.LockOSThread() |
| 90 | defer runtime.UnlockOSThread() |
| 91 | |
| 92 | var copts C.git_remote_connect_options |
| 93 | if ret := C.git_transport_remote_connect_options(&copts, t.ptr); ret < 0 { |
| 94 | return nil, MakeGitError(ret) |
| 95 | } |
| 96 | |
| 97 | return remoteConnectOptionsFromC(&copts), nil |
| 98 | } |
| 99 | |
| 100 | // SmartCredentials calls the credentials callback for this transport. |
| 101 | func (t *Transport) SmartCredentials(user string, methods CredentialType) (*Credential, error) { |
no test coverage detected