MCPcopy Create free account
hub / github.com/docker/secrets-engine / isDialError

Function isDialError

client/client.go:182–191  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

180}
181
182func isDialError(err error) bool {
183 if err == nil {
184 return false
185 }
186 var oe *net.OpError
187 if errors.As(err, &oe) && (oe.Op == "dial" || oe.Op == "connect") {
188 return true
189 }
190 return false
191}
192
193func New(options ...Option) (Client, error) {
194 cfg := &config{

Callers 6

TestIsDialErrorFunction · 0.85
GetSecretsMethod · 0.85
VersionMethod · 0.85
ListPluginsMethod · 0.85
EnablePluginMethod · 0.85
DisablePluginMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestIsDialErrorFunction · 0.68