moby/api/server
Olli Janatuinen 80d7bfd54d Capabilities refactor
- Add support for exact list of capabilities, support only OCI model
- Support OCI model on CapAdd and CapDrop but remain backward compatibility
- Create variable locally instead of declaring it at the top
- Use const for magic "ALL" value
- Rename `cap` variable as it overlaps with `cap()` built-in
- Normalize and validate capabilities before use
- Move validation for conflicting options to validateHostConfig()
- TweakCapabilities: simplify logic to calculate capabilities

Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-01-22 21:50:41 +02:00
..
backend/build builder: add prune options to the API 2018-09-01 22:01:17 +00:00
httputils Replace deprecated grpc.ErrorDesc() and grpc.Code() calls 2018-12-30 12:34:28 +01:00
middleware api/server, dockerversion: modify context key 2018-08-22 11:20:22 +09:00
router Capabilities refactor 2019-01-22 21:50:41 +02:00
middleware.go Add canonical import comment 2018-02-05 16:51:57 -05:00
router_swapper.go Add canonical import comment 2018-02-05 16:51:57 -05:00
server.go Rely on request.Context() cancellation 2018-11-27 17:06:31 -08:00
server_test.go Various code-cleanup 2018-05-23 17:50:54 +02:00