public interface ImageApi
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createImage(CreateImageOptions options)
Create an image, either by pull it from the registry or by importing it
|
InputStream |
deleteImage(String name) |
InputStream |
deleteImage(String name,
DeleteImageOptions options) |
List<ImageHistory> |
getHistory(String name)
Return the history of the image with given
name. |
Image |
inspectImage(String imageName)
Return low-level information on the image with given name.
|
List<ImageSummary> |
listImages() |
List<ImageSummary> |
listImages(ListImageOptions options) |
void |
tagImage(String name,
String repoName,
String tag,
boolean force)
Tag the image name into a repository.
|
@Named(value="images:list") List<ImageSummary> listImages()
@Named(value="images:list") List<ImageSummary> listImages(ListImageOptions options)
options - the configuration to list images (@see ListImageOptions)@Named(value="image:inspect") @Nullable Image inspectImage(String imageName)
Image instance
are populated by this method (e.g. Image.repoTags()).imageName - The id of the image to inspect.@Named(value="image:create") InputStream createImage(CreateImageOptions options)
options - the configuration to create an image (@see CreateImageOptions)@Named(value="image:delete") InputStream deleteImage(String name)
name - the image name to be deleted@Named(value="image:delete") InputStream deleteImage(String name, DeleteImageOptions options)
name - the name of the image to be removedoptions - the image deletion's options (@see DeleteImageOptions)@Named(value="image:tag") void tagImage(String name, String repoName, String tag, boolean force)
name - the name of the image to be taggedrepoName - the repository to tag intag - the new tag nameforce - force create if tag already exists@Named(value="image:history") List<ImageHistory> getHistory(String name)
name.name - the name of the image for which the history is retrievedCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.