-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c8d/list: Embed platform specific information
Add the PlatformImages field to `ImageSummary` which describes each platform-specific manifest in that image. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
- Loading branch information
Showing
7 changed files
with
221 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package image | ||
|
||
import ( | ||
ocispec "github.com/opencontainers/image-spec/specs-go/v1" | ||
) | ||
|
||
type PlatformImage struct { | ||
// ID is the content-addressable ID of an image and is the same as the | ||
// digest of the platform-specific image manifest. | ||
// | ||
// Required: true | ||
ID string `json:"Id"` | ||
|
||
// Descriptor is the OCI descriptor of the image. | ||
// | ||
// Required: true | ||
Descriptor ocispec.Descriptor `json:"Descriptor"` | ||
|
||
// Available indicates whether the image is locally available. | ||
// | ||
// Required: true | ||
Available bool `json:"Available"` | ||
|
||
// Platform is the platform of the image | ||
// | ||
// Required: true | ||
Platform ocispec.Platform `json:"Platform"` | ||
|
||
// ContentSize is the size of all the locally available distributable content size. | ||
// | ||
// Required: true | ||
ContentSize int64 `json:"ContentSize"` | ||
|
||
// UnpackedSize is the size of the image when unpacked. | ||
// | ||
// Required: true | ||
UnpackedSize int64 `json:"UnpackedSize"` | ||
|
||
// Containers is the number of containers created from this image. | ||
// | ||
// Required: true | ||
Containers int64 `json:"Containers"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters