MCPcopy
hub / github.com/cloudfoundry/cli / Dial

Method Dial

util/clissh/secure_dialer.go:20–33  ·  view source on GitHub ↗
(network string, address string, config *ssh.ClientConfig)

Source from the content-addressed store, hash-verified

18}
19
20func (secureDialer) Dial(network string, address string, config *ssh.ClientConfig) (SecureClient, error) {
21 conn, err := proxy.FromEnvironment().Dial(network, address)
22 if err != nil {
23 return secureClient{}, err
24 }
25
26 c, chans, reqs, err := ssh.NewClientConn(conn, address, config)
27 if err != nil {
28 return secureClient{}, err
29 }
30 client := ssh.NewClient(c, chans, reqs)
31
32 return secureClient{client: client}, nil
33}

Callers

nothing calls this directly

Calls 1

DialMethod · 0.65

Tested by

no test coverage detected