public class SaharaImageServiceImpl extends BaseSaharaServices implements SaharaImageService
| Modifier and Type | Class and Description |
|---|---|
class |
SaharaImageServiceImpl.RegisterImageRequest |
class |
SaharaImageServiceImpl.UpdateTagsRequest |
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
SaharaImageServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Image |
get(String imageId)
Get an image by ID
|
List<? extends Image> |
list()
List all images
|
List<? extends Image> |
list(String... tags)
List images with specified tag(s)
|
Image |
register(String imageId,
String username,
String description)
Register a new image into Sahara image registry
|
Image |
tag(String imageId,
String... tags)
Add Tag(s) to image
|
ActionResponse |
unregister(String imageId)
Unregister the specified image from Sahara image registry
|
Image |
untag(String imageId,
String... tags)
Remove Tag(s) from image
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends Image> list()
list in interface SaharaImageServicepublic List<? extends Image> list(String... tags)
list in interface SaharaImageServicetags - one or more tagspublic Image get(String imageId)
get in interface SaharaImageServiceimageId - the image identifierpublic Image register(String imageId, String username, String description)
register in interface SaharaImageServiceimageId - the image to registerusername - the usernamedescription - the descriptionpublic ActionResponse unregister(String imageId)
unregister in interface SaharaImageServiceimageId - the image identifierpublic Image tag(String imageId, String... tags)
tag in interface SaharaImageServicetags - one or more tags to addpublic Image untag(String imageId, String... tags)
untag in interface SaharaImageServicetags - one or more tags to removeCopyright © 2017. All rights reserved.