Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docker-java-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,28 @@
<version>1.18.18</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.7.2</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit5</artifactId>
<version>0.18.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit</artifactId>
<version>0.18.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -9,7 +10,7 @@
*/
@EqualsAndHashCode
@ToString
public class CreateConfigResponse {
public class CreateConfigResponse extends DockerObject {
@JsonProperty("ID")
private String id;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -11,7 +12,7 @@
*/
@EqualsAndHashCode
@ToString
public class CreateContainerResponse {
public class CreateContainerResponse extends DockerObject {

@JsonProperty("Id")
private String id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -12,7 +13,7 @@
*/
@EqualsAndHashCode
@ToString
public class CreateImageResponse {
public class CreateImageResponse extends DockerObject {

@JsonProperty("status")
private String id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@EqualsAndHashCode
@ToString
public class CreateNetworkResponse {
public class CreateNetworkResponse extends DockerObject {

@JsonProperty("Id")
private String id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -9,7 +10,7 @@
*/
@EqualsAndHashCode
@ToString
public class CreateSecretResponse {
public class CreateSecretResponse extends DockerObject {
@JsonProperty("ID")
private String id;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -9,7 +10,7 @@
*/
@EqualsAndHashCode
@ToString
public class CreateServiceResponse {
public class CreateServiceResponse extends DockerObject {
@JsonProperty("ID")
private String id;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -12,7 +13,7 @@
*/
@EqualsAndHashCode
@ToString
public class CreateVolumeResponse {
public class CreateVolumeResponse extends DockerObject {

@JsonProperty("Name")
private String name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@EqualsAndHashCode
@ToString
public class ExecCreateCmdResponse {
public class ExecCreateCmdResponse extends DockerObject {

@JsonProperty("Id")
private String id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -12,7 +13,7 @@
*/
@EqualsAndHashCode
@ToString
public class GraphData {
public class GraphData extends DockerObject {

@JsonProperty("RootDir")
private String rootDir;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -14,7 +15,7 @@
*/
@EqualsAndHashCode
@ToString
public class GraphDriver {
public class GraphDriver extends DockerObject {
/**
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_21}
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

public class HealthState {
@EqualsAndHashCode
@ToString
public class HealthState extends DockerObject {

@JsonProperty("Status")
private String status;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

public class HealthStateLog {
@EqualsAndHashCode
@ToString
public class HealthStateLog extends DockerObject {

@JsonProperty("Start")
private String start;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.ContainerConfig;
import com.github.dockerjava.api.model.DockerObject;
import com.github.dockerjava.api.model.HostConfig;
import com.github.dockerjava.api.model.NetworkSettings;
import com.github.dockerjava.api.model.Volume;
Expand All @@ -24,7 +25,7 @@
*/
@EqualsAndHashCode
@ToString
public class InspectContainerResponse {
public class InspectContainerResponse extends DockerObject {

@JsonProperty("Args")
private String[] args;
Expand Down Expand Up @@ -251,7 +252,7 @@ public String getPlatform() {

@EqualsAndHashCode
@ToString
public class ContainerState {
public class ContainerState extends DockerObject {

/**
* @since {@link RemoteApiVersion#VERSION_1_20}
Expand Down Expand Up @@ -456,7 +457,7 @@ public HealthState getHealth() {

@EqualsAndHashCode
@ToString
public static class Mount {
public static class Mount extends DockerObject {

/**
* @since {@link RemoteApiVersion#VERSION_1_20}
Expand Down Expand Up @@ -581,7 +582,7 @@ public Mount withSource(String source) {

@EqualsAndHashCode
@ToString
public class Node {
public class Node extends DockerObject {

@JsonProperty("ID")
private String id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import com.github.dockerjava.api.model.NetworkSettings;
import lombok.EqualsAndHashCode;
import lombok.ToString;
Expand All @@ -11,7 +12,7 @@

@EqualsAndHashCode
@ToString
public class InspectExecResponse {
public class InspectExecResponse extends DockerObject {
@JsonProperty("ID")
private String id;

Expand Down Expand Up @@ -152,7 +153,7 @@ public Long getPidLong() {

@EqualsAndHashCode
@ToString
public class ProcessConfig {
public class ProcessConfig extends DockerObject {

@JsonProperty("arguments")
private List<String> arguments;
Expand Down Expand Up @@ -190,7 +191,9 @@ public String getUser() {
}
}

public class Container {
@EqualsAndHashCode
@ToString
public class Container extends DockerObject {

@JsonProperty("NetworkSettings")
private NetworkSettings networkSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.ContainerConfig;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -15,7 +16,7 @@
*/
@EqualsAndHashCode
@ToString
public class InspectImageResponse {
public class InspectImageResponse extends DockerObject {

@JsonProperty("Architecture")
private String arch;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -12,7 +13,7 @@
*/
@EqualsAndHashCode
@ToString
public class InspectVolumeResponse {
public class InspectVolumeResponse extends DockerObject {

@JsonProperty("Name")
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -12,7 +13,7 @@
*/
@EqualsAndHashCode
@ToString
public class ListVolumesResponse {
public class ListVolumesResponse extends DockerObject {

@JsonProperty("Volumes")
private List<InspectVolumeResponse> volumes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -14,7 +15,7 @@
*/
@EqualsAndHashCode
@ToString
public class RootFS {
public class RootFS extends DockerObject {

@JsonProperty("Type")
private String type;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.dockerjava.api.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand All @@ -11,7 +12,7 @@
*/
@EqualsAndHashCode
@ToString
public class TopContainerResponse {
public class TopContainerResponse extends DockerObject {

@JsonProperty("Titles")
private String[] titles;
Expand Down
Loading