GetConnectionHelperWithSSHOpts returns Docker-specific connection helper for the given URL, and accepts additional options for ssh connections. It returns nil without error when no helper is registered for the scheme. Requires Docker 18.09 or later on the remote host.
(daemonURL string, sshFlags []string)
| 36 | // |
| 37 | // Requires Docker 18.09 or later on the remote host. |
| 38 | func GetConnectionHelperWithSSHOpts(daemonURL string, sshFlags []string) (*ConnectionHelper, error) { |
| 39 | return getConnectionHelper(daemonURL, sshFlags) |
| 40 | } |
| 41 | |
| 42 | func getConnectionHelper(daemonURL string, sshFlags []string) (*ConnectionHelper, error) { |
| 43 | u, err := url.Parse(daemonURL) |
nothing calls this directly
no test coverage detected
searching dependent graphs…