1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/plugin
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
..
executor/containerd Remove libcontainerd.IOPipe 2018-01-09 12:00:28 -05:00
v2 Remove redundant build-tags 2017-12-18 17:41:53 +01:00
backend_linux.go Add helpers to create errdef errors 2018-01-11 21:21:43 -05:00
backend_unsupported.go Make plugin emit strongly typed, consumable events 2017-07-06 14:26:06 -04:00
blobstore.go LCOW: API: Add platform to /images/create and /build 2017-10-06 11:44:18 -07:00
defs.go Make plugin emit strongly typed, consumable events 2017-07-06 14:26:06 -04:00
errors.go Add helpers to create errdef errors 2018-01-11 21:21:43 -05:00
events.go Make plugin emit strongly typed, consumable events 2017-07-06 14:26:06 -04:00
manager.go Nitpick plugin/manager.go: use loop to create directories 2017-11-01 11:29:37 +02:00
manager_linux.go Add helpers to create errdef errors 2018-01-11 21:21:43 -05:00
manager_linux_test.go Add test to check for plugin mounts on remove 2017-12-04 22:01:14 -05:00
manager_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
manager_windows.go Remove Solaris files 2017-12-18 17:22:25 +01:00
store.go Add helpers to create errdef errors 2018-01-11 21:21:43 -05:00
store_test.go Fixup some issues with plugin refcounting 2017-10-21 15:17:57 -04:00