MCPcopy Create free account
hub / github.com/docker/cli / GetConnectionHelperWithSSHOpts

Function GetConnectionHelperWithSSHOpts

cli/connhelper/connhelper.go:38–40  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

36//
37// Requires Docker 18.09 or later on the remote host.
38func GetConnectionHelperWithSSHOpts(daemonURL string, sshFlags []string) (*ConnectionHelper, error) {
39 return getConnectionHelper(daemonURL, sshFlags)
40}
41
42func getConnectionHelper(daemonURL string, sshFlags []string) (*ConnectionHelper, error) {
43 u, err := url.Parse(daemonURL)

Callers

nothing calls this directly

Calls 1

getConnectionHelperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…