Skip to content

Commit 708f4f4

Browse files
saffisbsideup
andauthored
Add missing fields to Image (#1345)
* Fields sharedSize, labels, containers added and array replaced by list * Replaced list with arrays to not break the public API Co-authored-by: Sergei Egorov <segorov@pivotal.io>
1 parent a09fefe commit 708f4f4

File tree

1 file changed

+31
-0
lines changed
  • docker-java-api/src/main/java/com/github/dockerjava/api/model

1 file changed

+31
-0
lines changed

docker-java-api/src/main/java/com/github/dockerjava/api/model/Image.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package com.github.dockerjava.api.model;
22

33
import com.fasterxml.jackson.annotation.JsonProperty;
4+
45
import lombok.EqualsAndHashCode;
56
import lombok.ToString;
67

78
import java.io.Serializable;
9+
import java.util.Map;
810

911
/**
1012
*
@@ -28,12 +30,24 @@ public class Image implements Serializable {
2830
@JsonProperty("RepoTags")
2931
private String[] repoTags;
3032

33+
@JsonProperty("RepoDigests")
34+
private String[] repoDigests;
35+
3136
@JsonProperty("Size")
3237
private Long size;
3338

3439
@JsonProperty("VirtualSize")
3540
private Long virtualSize;
3641

42+
@JsonProperty("SharedSize")
43+
private Long sharedSize;
44+
45+
@JsonProperty("Labels")
46+
public Map<String, String> labels;
47+
48+
@JsonProperty("Containers")
49+
private Integer containers;
50+
3751
public String getId() {
3852
return id;
3953
}
@@ -42,6 +56,10 @@ public String[] getRepoTags() {
4256
return repoTags;
4357
}
4458

59+
public String[] getRepoDigests() {
60+
return repoDigests;
61+
}
62+
4563
public String getParentId() {
4664
return parentId;
4765
}
@@ -57,4 +75,17 @@ public Long getSize() {
5775
public Long getVirtualSize() {
5876
return virtualSize;
5977
}
78+
79+
80+
public Long getSharedSize() {
81+
return sharedSize;
82+
}
83+
84+
public Map<String, String> getLabels() {
85+
return labels;
86+
}
87+
88+
public Integer getContainers() {
89+
return containers;
90+
}
6091
}

0 commit comments

Comments
 (0)