moby/builder
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
..
dockerfile Add helpers to create errdef errors 2018-01-11 21:21:43 -05:00
dockerignore Fix behavior of absolute paths in .dockerignore 2017-03-31 10:43:59 +02:00
fscache Cleaning dead code out of the builder 2017-09-29 02:55:35 +02:00
remotecontext Add helpers to create errdef errors 2018-01-11 21:21:43 -05:00
builder.go LCOW: API: Add platform to /images/create and /build 2017-10-06 11:44:18 -07:00