MCPcopy
hub / github.com/moby/moby / System

Function System

errdefs/helpers.go:156–161  ·  view source on GitHub ↗

System creates an [ErrSystem] error from the given error. It returns the error as-is if it is either nil (no error) or already implements [ErrSystem],

(err error)

Source from the content-addressed store, hash-verified

154// It returns the error as-is if it is either nil (no error) or already implements
155// [ErrSystem],
156func System(err error) error {
157 if err == nil || cerrdefs.IsInternal(err) {
158 return err
159 }
160 return errSystem{err}
161}
162
163type errNotModified struct{ error }
164

Callers 15

ContainerStopMethod · 0.92
ContainerStatPathMethod · 0.92
ContainerArchivePathMethod · 0.92
ContainerExtractToDirMethod · 0.92
containerStartMethod · 0.92
containerInspectMethod · 0.92
initializeCreatedTaskMethod · 0.92
updateMethod · 0.92
ContainerExecStartMethod · 0.92
ContainerTopMethod · 0.92
WithNamespacesFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestSystemFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…