summaryrefslogtreecommitdiff
path: root/api/types/types.go
diff options
context:
space:
mode:
authorJohn Howard <jhoward@microsoft.com>2017-08-08 12:43:48 -0700
committerJohn Howard <jhoward@microsoft.com>2017-10-06 11:44:18 -0700
commit0380fbff37922cadf294851b1546f4c212c7f364 (patch)
tree89daeca0d0da34269add9dcdfa597db31deeda76 /api/types/types.go
parentb8571fd81c7d2223c9ecbf799c693e3ef1daaea9 (diff)
downloaddocker-0380fbff37922cadf294851b1546f4c212c7f364.tar.gz
LCOW: API: Add platform to /images/create and /build
Signed-off-by: John Howard <jhoward@microsoft.com> This PR has the API changes described in https://github.com/moby/moby/issues/34617. Specifically, it adds an HTTP header "X-Requested-Platform" which is a JSON-encoded OCI Image-spec `Platform` structure. In addition, it renames (almost all) uses of a string variable platform (and associated) methods/functions to os. This makes it much clearer to disambiguate with the swarm "platform" which is really os/arch. This is a stepping stone to getting the daemon towards fully multi-platform/arch-aware, and makes it clear when "operating system" is being referred to rather than "platform" which is misleadingly used - sometimes in the swarm meaning, but more often as just the operating system.
Diffstat (limited to 'api/types/types.go')
-rw-r--r--api/types/types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/types/types.go b/api/types/types.go
index f7ac772971..14f908157b 100644
--- a/api/types/types.go
+++ b/api/types/types.go
@@ -327,7 +327,7 @@ type ContainerJSONBase struct {
Name string
RestartCount int
Driver string
- Platform string
+ OS string
MountLabel string
ProcessLabel string
AppArmorProfile string