@@ -19,122 +19,6 @@ const (
1919 MediaTypeMultiplexedStream = "application/vnd.docker.multiplexed-stream"
2020)
2121
22- // RootFS returns Image's RootFS description including the layer IDs.
23- type RootFS struct {
24- Type string `json:",omitempty"`
25- Layers []string `json:",omitempty"`
26- }
27-
28- // ImageInspect contains response of Engine API:
29- // GET "/images/{name:.*}/json"
30- type ImageInspect struct {
31- // ID is the content-addressable ID of an image.
32- //
33- // This identifier is a content-addressable digest calculated from the
34- // image's configuration (which includes the digests of layers used by
35- // the image).
36- //
37- // Note that this digest differs from the `RepoDigests` below, which
38- // holds digests of image manifests that reference the image.
39- ID string `json:"Id"`
40-
41- // RepoTags is a list of image names/tags in the local image cache that
42- // reference this image.
43- //
44- // Multiple image tags can refer to the same image, and this list may be
45- // empty if no tags reference the image, in which case the image is
46- // "untagged", in which case it can still be referenced by its ID.
47- RepoTags []string
48-
49- // RepoDigests is a list of content-addressable digests of locally available
50- // image manifests that the image is referenced from. Multiple manifests can
51- // refer to the same image.
52- //
53- // These digests are usually only available if the image was either pulled
54- // from a registry, or if the image was pushed to a registry, which is when
55- // the manifest is generated and its digest calculated.
56- RepoDigests []string
57-
58- // Parent is the ID of the parent image.
59- //
60- // Depending on how the image was created, this field may be empty and
61- // is only set for images that were built/created locally. This field
62- // is empty if the image was pulled from an image registry.
63- Parent string
64-
65- // Comment is an optional message that can be set when committing or
66- // importing the image.
67- Comment string
68-
69- // Created is the date and time at which the image was created, formatted in
70- // RFC 3339 nano-seconds (time.RFC3339Nano).
71- //
72- // This information is only available if present in the image,
73- // and omitted otherwise.
74- Created string `json:",omitempty"`
75-
76- // Container is the ID of the container that was used to create the image.
77- //
78- // Depending on how the image was created, this field may be empty.
79- //
80- // Deprecated: this field is omitted in API v1.45, but kept for backward compatibility.
81- Container string `json:",omitempty"`
82-
83- // ContainerConfig is an optional field containing the configuration of the
84- // container that was last committed when creating the image.
85- //
86- // Previous versions of Docker builder used this field to store build cache,
87- // and it is not in active use anymore.
88- //
89- // Deprecated: this field is omitted in API v1.45, but kept for backward compatibility.
90- ContainerConfig * container.Config `json:",omitempty"`
91-
92- // DockerVersion is the version of Docker that was used to build the image.
93- //
94- // Depending on how the image was created, this field may be empty.
95- DockerVersion string
96-
97- // Author is the name of the author that was specified when committing the
98- // image, or as specified through MAINTAINER (deprecated) in the Dockerfile.
99- Author string
100- Config * container.Config
101-
102- // Architecture is the hardware CPU architecture that the image runs on.
103- Architecture string
104-
105- // Variant is the CPU architecture variant (presently ARM-only).
106- Variant string `json:",omitempty"`
107-
108- // OS is the Operating System the image is built to run on.
109- Os string
110-
111- // OsVersion is the version of the Operating System the image is built to
112- // run on (especially for Windows).
113- OsVersion string `json:",omitempty"`
114-
115- // Size is the total size of the image including all layers it is composed of.
116- Size int64
117-
118- // VirtualSize is the total size of the image including all layers it is
119- // composed of.
120- //
121- // Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead.
122- VirtualSize int64 `json:"VirtualSize,omitempty"`
123-
124- // GraphDriver holds information about the storage driver used to store the
125- // container's and image's filesystem.
126- GraphDriver storage.DriverData
127-
128- // RootFS contains information about the image's RootFS, including the
129- // layer IDs.
130- RootFS RootFS
131-
132- // Metadata of the image in the local cache.
133- //
134- // This information is local to the daemon, and not part of the image itself.
135- Metadata image.Metadata
136- }
137-
13822// Container contains response of Engine API:
13923// GET "/containers/json"
14024type Container struct {
0 commit comments