@@ -157,57 +157,19 @@ type ImageBuildResponse struct {
157157 OSType string
158158}
159159
160- // ImageCreateOptions holds information to create images.
161- type ImageCreateOptions struct {
162- RegistryAuth string // RegistryAuth is the base64 encoded credentials for the registry.
163- Platform string // Platform is the target platform of the image if it needs to be pulled from the registry.
164- }
165-
166160// ImageImportSource holds source information for ImageImport
167161type ImageImportSource struct {
168162 Source io.Reader // Source is the data to send to the server to create this image from. You must set SourceName to "-" to leverage this.
169163 SourceName string // SourceName is the name of the image to pull. Set to "-" to leverage the Source attribute.
170164}
171165
172- // ImageImportOptions holds information to import images from the client host.
173- type ImageImportOptions struct {
174- Tag string // Tag is the name to tag this image with. This attribute is deprecated.
175- Message string // Message is the message to tag the image with
176- Changes []string // Changes are the raw changes to apply to this image
177- Platform string // Platform is the target platform of the image
178- }
179-
180- // ImageListOptions holds parameters to list images with.
181- type ImageListOptions struct {
182- // All controls whether all images in the graph are filtered, or just
183- // the heads.
184- All bool
185-
186- // Filters is a JSON-encoded set of filter arguments.
187- Filters filters.Args
188-
189- // SharedSize indicates whether the shared size of images should be computed.
190- SharedSize bool
191-
192- // ContainerCount indicates whether container count should be computed.
193- ContainerCount bool
194- }
195-
196166// ImageLoadResponse returns information to the client about a load process.
197167type ImageLoadResponse struct {
198168 // Body must be closed to avoid a resource leak
199169 Body io.ReadCloser
200170 JSON bool
201171}
202172
203- // ImagePullOptions holds information to pull images.
204- type ImagePullOptions struct {
205- All bool
206- RegistryAuth string // RegistryAuth is the base64 encoded credentials for the registry
207- PrivilegeFunc RequestPrivilegeFunc
208- Platform string
209- }
210-
211173// RequestPrivilegeFunc is a function interface that
212174// clients can supply to retry operations after
213175// getting an authorization error.
@@ -216,15 +178,6 @@ type ImagePullOptions struct {
216178// if the privilege request fails.
217179type RequestPrivilegeFunc func () (string , error )
218180
219- // ImagePushOptions holds information to push images.
220- type ImagePushOptions ImagePullOptions
221-
222- // ImageRemoveOptions holds parameters to remove images.
223- type ImageRemoveOptions struct {
224- Force bool
225- PruneChildren bool
226- }
227-
228181// ImageSearchOptions holds parameters to search images with.
229182type ImageSearchOptions struct {
230183 RegistryAuth string
0 commit comments