image/save&load: Support Platform parameter

Add `Platform` parameter that allows to select a specific platform to
save/load.

This is a breaking change to the Go client as it changes the signatures
of `ImageLoad` and `ImageSave`.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2024-08-08 17:57:24 +02:00
parent ab075ecd10
commit f143f4ec51
20 changed files with 164 additions and 46 deletions

View File

@@ -20,6 +20,10 @@ keywords: "API, Docker, rcli, REST, documentation"
* `GET /images/{name}/history` now supports a `platform` parameter (JSON
encoded OCI Platform type) that allows to specify a platform to show the
history of.
* `POST /images/{name}/load` and `GET /images/{name}/get` now support a
`platform` parameter (JSON encoded OCI Platform type) that allows to specify
a platform to load/save. Not passing this parameter will result in
loading/saving the full multi-platform image.
## v1.47 API changes