MCPcopy
hub / github.com/moby/moby / Is

Method Is

client/errors.go:89–91  ·  view source on GitHub ↗
(target error)

Source from the content-addressed store, hash-verified

87}
88
89func (e *httpError) Is(target error) bool {
90 return errors.Is(e.errdef, target)
91}
92
93// httpErrorFromStatusCode creates an errdef error, based on the provided HTTP status-code
94func httpErrorFromStatusCode(err error, statusCode int) error {

Callers 15

TestEventsFunction · 0.45
doRequestMethod · 0.45
TestEtcCDIFunction · 0.45
TestCopyFromContainerFunction · 0.45
getEventActionsFunction · 0.45
RunAttachFunction · 0.45
LoadFunction · 0.45
collectPacketsFunction · 0.45
HasHubConnectivityFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestEventsFunction · 0.36
TestEtcCDIFunction · 0.36
TestCopyFromContainerFunction · 0.36
getEventActionsFunction · 0.36
TestEventsVolumeCreateFunction · 0.36
TestNotFoundFunction · 0.36
TestConflictFunction · 0.36
TestForbiddenFunction · 0.36
TestInvalidParameterFunction · 0.36