Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing fields to Image #1345

Merged
merged 4 commits into from
May 23, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.github.dockerjava.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.Map;

/**
*
Expand All @@ -28,12 +30,24 @@ public class Image implements Serializable {
@JsonProperty("RepoTags")
private String[] repoTags;

@JsonProperty("RepoDigests")
private String[] repoDigests;

@JsonProperty("Size")
private Long size;

@JsonProperty("VirtualSize")
private Long virtualSize;

@JsonProperty("SharedSize")
private Long sharedSize;

@JsonProperty("Labels")
public Map<String, String> labels;

@JsonProperty("Containers")
private Integer containers;

public String getId() {
return id;
}
Expand All @@ -42,6 +56,10 @@ public String[] getRepoTags() {
return repoTags;
}

public String[] getRepoDigests() {
return repoDigests;
}

public String getParentId() {
return parentId;
}
Expand All @@ -57,4 +75,17 @@ public Long getSize() {
public Long getVirtualSize() {
return virtualSize;
}


public Long getSharedSize() {
return sharedSize;
}

public Map<String, String> getLabels() {
return labels;
}

public Integer getContainers() {
return containers;
}
}