com.github.dockerjava.core.command.InspectImageCmdImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.core.command;
import static com.google.common.base.Preconditions.checkNotNull;
import com.github.dockerjava.api.NotFoundException;
import com.github.dockerjava.api.command.InspectImageCmd;
import com.github.dockerjava.api.command.InspectImageResponse;
/**
* Inspect the details of an image.
*/
public class InspectImageCmdImpl extends AbstrDockerCmd 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) {
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();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy