moby/volume
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
..
drivers Fixup some issues with plugin refcounting 2017-10-21 15:17:57 -04:00
local Add helpers to create errdef errors 2018-01-11 21:21:43 -05:00
store modify log in order to be same below 2017-11-27 08:43:05 +08:00
testutils Replace vol plugin integration test w/ unit test 2017-11-15 13:13:22 -05:00
lcow_parser.go Re-validate Mounts on container start 2017-12-19 11:44:29 +01:00
linux_parser.go Re-validate Mounts on container start 2017-12-19 11:44:29 +01:00
parser.go Re-validate Mounts on container start 2017-12-19 11:44:29 +01:00
validate.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
validate_test.go Re-validate Mounts on container start 2017-12-19 11:44:29 +01:00
validate_unix_test.go Add deadcode linter 2017-08-21 18:18:50 -04:00
validate_windows_test.go Add deadcode linter 2017-08-21 18:18:50 -04:00
volume.go Simplify/fix MkdirAll usage 2017-11-27 17:32:12 -08:00
volume_copy.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volume_test.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volume_unix.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
volume_windows.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
windows_parser.go Re-validate Mounts on container start 2017-12-19 11:44:29 +01:00