forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInspectImageCmdImpl.java
More file actions
45 lines (36 loc) · 1.07 KB
/
Copy pathInspectImageCmdImpl.java
File metadata and controls
45 lines (36 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.github.dockerjava.core.command;
import com.github.dockerjava.api.NotFoundException;
import com.github.dockerjava.api.command.InspectImageCmd;
import com.github.dockerjava.api.command.InspectImageResponse;
import com.google.common.base.Preconditions;
/**
* Inspect the details of an image.
*/
public class InspectImageCmdImpl extends AbstrDockerCmd<InspectImageCmd, InspectImageResponse> implements InspectImageCmd {
private String imageId;
public InspectImageCmdImpl(InspectImageCmd.Exec exec, String imageId) {
super(exec);
withImageId(imageId);
}
@Override
public String getImageId() {
return imageId;
}
@Override
public InspectImageCmd withImageId(String imageId) {
Preconditions.checkNotNull(imageId, "imageId was not specified");
this.imageId = imageId;
return this;
}
@Override
public String toString() {
return "inspect " + imageId;
}
/**
* @throws NotFoundException No such image
*/
@Override
public InspectImageResponse exec() throws NotFoundException {
return super.exec();
}
}