1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Brian Goff ebcb7d6b40 Remove string checking in API error handling
Use strongly typed errors to set HTTP status codes.
Error interfaces are defined in the api/errors package and errors
returned from controllers are checked against these interfaces.

Errors can be wraeped in a pkg/errors.Causer, as long as somewhere in the
line of causes one of the interfaces is implemented. The special error
interfaces take precedence over Causer, meaning if both Causer and one
of the new error interfaces are implemented, the Causer is not
traversed.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-08-15 16:01:11 -04:00
..
caps
cluster Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
config Implement none, private, and shareable ipc modes 2017-08-14 10:50:39 +03:00
discovery Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
events make engine support cluster config event 2017-07-11 17:21:15 +08:00
exec Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
graphdriver devmapper autosetup: add check for thin_check 2017-08-14 13:25:28 +03:00
initlayer [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
links
listeners Move pkg/listeners away 2017-08-08 18:14:04 +02:00
logger Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
network
stats Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
apparmor_default.go apparmor: make pkg/aaparser work on read-only root 2017-05-18 00:05:13 +10:00
apparmor_default_unsupported.go
archive.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
archive_tarcopyoptions.go Partial refactor of UID/GID usage to use a unified struct. 2017-06-07 11:44:33 -04:00
archive_tarcopyoptions_unix.go Fix vfs unit test and port VFS to the new IDMappings 2017-06-07 11:44:34 -04:00
archive_tarcopyoptions_windows.go
archive_unix.go Remove CopyOnBuild from the daemon. 2017-06-08 15:06:54 -04:00
archive_windows.go Remove CopyOnBuild from the daemon. 2017-06-08 15:06:54 -04:00
attach.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
auth.go
bindmount_solaris.go
bindmount_unix.go
build.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
cache.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
changes.go
checkpoint.go Fix checkpoint ls 2017-05-18 10:57:10 +08:00
cluster.go Fix race condition between swarm and libnetwork 2017-05-10 21:16:52 -07:00
commit.go LCOW: Rework after 33454 merged which refactored daemon/builder interface 2017-06-20 19:50:13 -07:00
configs.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
configs_linux.go Add config support to executor backend 2017-05-11 10:08:21 -07:00
configs_unsupported.go Add Windows configs support 2017-05-16 14:25:32 -07:00
configs_windows.go Add Windows configs support 2017-05-16 14:25:32 -07:00
container.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
container_linux.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
container_operations.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
container_operations_solaris.go Include Endpoint List for Shared Endpoints 2017-07-06 12:19:17 -07:00
container_operations_unix.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
container_operations_windows.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
container_windows.go
create.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
create_unix.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
create_windows.go
daemon.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
daemon_experimental.go
daemon_linux.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
daemon_linux_test.go
daemon_solaris.go Implement none, private, and shareable ipc modes 2017-08-14 10:50:39 +03:00
daemon_test.go Store container names in memdb 2017-07-13 12:35:00 -07:00
daemon_unix.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
daemon_unix_test.go avoid saving container state to disk before daemon.Register 2017-06-23 07:52:34 -07:00
daemon_unsupported.go
daemon_windows.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
debugtrap_unix.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
debugtrap_unsupported.go
debugtrap_windows.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
delete.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
delete_test.go LCOW: Remove CommonContainer - just Container 2017-06-20 08:55:46 -07:00
dependency.go Add config support to executor backend 2017-05-11 10:08:21 -07:00
disk_usage.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
errors.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
events.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
events_test.go LCOW: Remove CommonContainer - just Container 2017-06-20 08:55:46 -07:00
exec.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
exec_linux.go
exec_solaris.go
exec_windows.go LCOW: pass command arguments without extra quoting 2017-06-24 10:23:17 -07:00
export.go LCOW: Don't block export 2017-08-08 12:54:06 -07:00
getsize_unix.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
health.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
health_test.go Move checkpointing to the Container object 2017-06-23 07:52:32 -07:00
image.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
image_delete.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
image_exporter.go LCOW: Fix nits from 33241 2017-06-27 11:59:49 -07:00
image_history.go LCOW: Move daemon stores to per platform 2017-06-20 19:49:52 -07:00
image_inspect.go Set a LastUpdated time in image metadata when an image tag is updated. 2017-06-26 12:16:26 -07:00
image_pull.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
image_push.go LCOW: Fix nits from 33241 2017-06-27 11:59:49 -07:00
image_tag.go Set a LastUpdated time in image metadata when an image tag is updated. 2017-06-26 12:16:26 -07:00
images.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
import.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
info.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
info_unix.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
info_unix_test.go
info_windows.go
inspect.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
inspect_solaris.go Move platform specific mount data to Container 2017-06-23 07:22:47 -07:00
inspect_unix.go Move platform specific mount data to Container 2017-06-23 07:22:47 -07:00
inspect_windows.go Move platform specific mount data to Container 2017-06-23 07:22:47 -07:00
keys.go
keys_unsupported.go
kill.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
links.go Remove links when remove container 2017-07-18 12:09:26 +08:00
list.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
list_unix.go stop grabbing container locks during ps 2017-06-23 07:52:31 -07:00
list_windows.go stop grabbing container locks during ps 2017-06-23 07:52:31 -07:00
logdrivers_linux.go
logdrivers_windows.go
logs.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
logs_test.go
metrics.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
metrics_unix.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
metrics_unsupported.go Add support for metrics plugins 2017-05-12 00:30:09 -04:00
monitor.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
monitor_linux.go
monitor_solaris.go
monitor_windows.go
mounts.go Fix issue backporting mount spec to pre-1.13 obj 2017-05-11 12:31:53 -04:00
names.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
network.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
oci_linux.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
oci_solaris.go Remove error return from RootPair 2017-06-07 11:45:33 -04:00
oci_windows.go [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
pause.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
prune.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
reload.go Implement none, private, and shareable ipc modes 2017-08-14 10:50:39 +03:00
reload_test.go Add daemon option to push foreign layers 2017-05-16 14:36:36 -07:00
rename.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
resize.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
restart.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
search.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
search_test.go
seccomp_disabled.go
seccomp_linux.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
seccomp_unsupported.go
secrets.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
secrets_linux.go
secrets_unsupported.go Add Windows secrets support 2017-05-16 11:30:06 -07:00
secrets_windows.go Add Windows secrets support 2017-05-16 11:30:06 -07:00
selinux_linux.go
selinux_unsupported.go
start.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
start_unix.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
start_windows.go jhoward/opengcs --> Microsoft/opengcs 2017-08-08 14:43:43 -07:00
stats.go
stats_collector.go
stats_unix.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
stats_windows.go
stop.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
top_unix.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
top_unix_test.go
top_windows.go
unpause.go
update.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
update_linux.go
update_solaris.go
update_windows.go
volumes.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
volumes_unit_test.go
volumes_unix.go avoid saving container state to disk before daemon.Register 2017-06-23 07:52:34 -07:00
volumes_unix_test.go Spelling fixes 2017-07-03 13:13:09 -07:00
volumes_windows.go Partial refactor of UID/GID usage to use a unified struct. 2017-06-07 11:44:33 -04:00
wait.go Update ContainerWait API 2017-05-16 15:11:39 -07:00
workdir.go Remove error return from RootPair 2017-06-07 11:45:33 -04:00