MCPcopy Index your code
hub / github.com/docker/cli / Ping

Method Ping

cli/command/cli_test.go:142–152  ·  view source on GitHub ↗
(_ context.Context, options client.PingOptions)

Source from the content-addressed store, hash-verified

140}
141
142func (c *fakeClient) Ping(_ context.Context, options client.PingOptions) (client.PingResult, error) {
143 res, err := c.pingFunc()
144 if options.NegotiateAPIVersion {
145 if res.APIVersion != "" {
146 if c.negotiated || options.ForceNegotiate {
147 c.negotiated = true
148 }
149 }
150 }
151 return res, err
152}
153
154func (c *fakeClient) ClientVersion() string {
155 return c.version

Calls

no outgoing calls

Tested by

no test coverage detected