File tree 3 files changed +57
-1
lines changed
docker-java-api/src/main/java/com/github/dockerjava/api/model
3 files changed +57
-1
lines changed Original file line number Diff line number Diff line change
1
+ package com .github .dockerjava .api .model ;
2
+
3
+ import com .fasterxml .jackson .annotation .JsonProperty ;
4
+ import lombok .EqualsAndHashCode ;
5
+ import lombok .ToString ;
6
+
7
+ import java .io .Serializable ;
8
+
9
+ /**
10
+ * @since {@link RemoteApiVersion#VERSION_1_48}
11
+ */
12
+ @ EqualsAndHashCode
13
+ @ ToString
14
+ public class ImageOptions extends DockerObject implements Serializable {
15
+ private static final long serialVersionUID = 1L ;
16
+ @ JsonProperty ("Subpath" )
17
+ private String subpath ;
18
+
19
+ public String getSubpath () {
20
+ return subpath ;
21
+ }
22
+
23
+ public ImageOptions withSubpath (String subpath ) {
24
+ this .subpath = subpath ;
25
+ return this ;
26
+ }
27
+ }
Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ public class Mount extends DockerObject implements Serializable {
57
57
@ JsonProperty ("TmpfsOptions" )
58
58
private TmpfsOptions tmpfsOptions ;
59
59
60
+ /**
61
+ * @since 1.48
62
+ */
63
+ @ JsonProperty ("ImageOptions" )
64
+ private ImageOptions imageOptions ;
65
+
60
66
/**
61
67
* @see #type
62
68
*/
@@ -177,4 +183,23 @@ public Mount withTmpfsOptions(TmpfsOptions tmpfsOptions) {
177
183
}
178
184
return this ;
179
185
}
186
+
187
+ /**
188
+ * @see #imageOptions
189
+ */
190
+ @ CheckForNull
191
+ public ImageOptions getImageOptions () {
192
+ return imageOptions ;
193
+ }
194
+
195
+ /**
196
+ * @see #imageOptions
197
+ */
198
+ public Mount withImageOptions (ImageOptions imageOptions ) {
199
+ this .imageOptions = imageOptions ;
200
+ if (imageOptions != null ) {
201
+ this .type = MountType .IMAGE ;
202
+ }
203
+ return this ;
204
+ }
180
205
}
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ public enum MountType {
18
18
19
19
//@since 1.40
20
20
@ JsonProperty ("npipe" )
21
- NPIPE
21
+ NPIPE ,
22
+
23
+ //@since 1.48
24
+ @ JsonProperty ("image" )
25
+ IMAGE ,
22
26
23
27
}
You can’t perform that action at this time.
0 commit comments