moby/libcontainerd
Brian Goff 87a12421a9 Add helpers to create errdef errors
Instead of having to create a bunch of custom error types that are doing
nothing but wrapping another error in sub-packages, use a common helper
to create errors of the requested type.

e.g. instead of re-implementing this over and over:

```go
type notFoundError struct {
  cause error
}

func(e notFoundError) Error() string {
  return e.cause.Error()
}

func(e notFoundError) NotFound() {}

func(e notFoundError) Cause() error {
  return e.cause
}
```

Packages can instead just do:

```
  errdefs.NotFound(err)
```

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2018-01-11 21:21:43 -05:00
..
client_daemon.go Add helpers to create errdef errors 2018-01-11 21:21:43 -05:00
client_daemon_linux.go Use cio.FIFOSet.Close() to cleanup fifos 2018-01-09 12:00:28 -05:00
client_daemon_windows.go Use cio.FIFOSet.Close() to cleanup fifos 2018-01-09 12:00:28 -05:00
client_local_windows.go Use cio.FIFOSet.Close() to cleanup fifos 2018-01-09 12:00:28 -05:00
errors.go Add helpers to create errdef errors 2018-01-11 21:21:43 -05:00
process_windows.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
queue.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
queue_test.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
remote_daemon.go Fix typo in log-message 2017-12-11 10:59:51 -08:00
remote_daemon_linux.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
remote_daemon_options.go Update containerd to v1 beta3 2017-11-10 15:44:10 -05:00
remote_daemon_options_linux.go Update daemon code for containerd API changes 2017-11-30 09:55:03 -05:00
remote_daemon_windows.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
remote_local.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
types.go Remove libcontainerd.IOPipe 2018-01-09 12:00:28 -05:00
types_linux.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
types_windows.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
utils_linux.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
utils_windows.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
utils_windows_test.go Allow windows environment variables to contain = 2016-09-05 08:49:07 +10:00