This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-github
/
moby--moby
Watch
1
Star
0
Fork
You've already forked moby--moby
0
mirror of
https://github.com/moby/moby.git
synced
2022-11-09 12:21:53 -05:00
Code
Releases
Activity
d91c5f42eb
moby--moby
/
layer
/
ro_layer_unix.go
8 lines
77 B
Go
Raw
Normal View
History
Unescape
Escape
LCOW: Adds platform to the layer store Signed-off-by: John Howard <jhoward@microsoft.com>
2017-04-25 12:37:29 -04:00
// +build !windows
package
layer
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.
2017-08-08 15:43:48 -04:00
func
(
rl
*
roLayer
)
OS
(
)
OS
{
LCOW: Adds platform to the layer store Signed-off-by: John Howard <jhoward@microsoft.com>
2017-04-25 12:37:29 -04:00
return
""
}
Copy permalink