MCPcopy Create free account
hub / github.com/containerd/nerdctl / IsErrTLSHandshakeFailure

Function IsErrTLSHandshakeFailure

pkg/errutil/errors_check.go:36–41  ·  view source on GitHub ↗

IsErrTLSHandshakeFailure returns whether err is a TLS handshake or certificate verification error

(err error)

Source from the content-addressed store, hash-verified

34
35// IsErrTLSHandshakeFailure returns whether err is a TLS handshake or certificate verification error
36func IsErrTLSHandshakeFailure(err error) bool {
37 errStr := err.Error()
38 return strings.Contains(errStr, "tls:") ||
39 strings.Contains(errStr, "x509:") ||
40 strings.Contains(errStr, "certificate")
41}

Callers 2

PullImageWithTransferFunction · 0.92
PushImageWithTransferFunction · 0.92

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…