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, uri
public List<? extends Image> list()
list
in interface SaharaImageService
public List<? extends Image> list(String... tags)
list
in interface SaharaImageService
tags
- one or more tagspublic Image get(String imageId)
get
in interface SaharaImageService
imageId
- the image identifierpublic Image register(String imageId, String username, String description)
register
in interface SaharaImageService
imageId
- the image to registerusername
- the usernamedescription
- the descriptionpublic ActionResponse unregister(String imageId)
unregister
in interface SaharaImageService
imageId
- the image identifierpublic Image tag(String imageId, String... tags)
tag
in interface SaharaImageService
tags
- one or more tags to addpublic Image untag(String imageId, String... tags)
untag
in interface SaharaImageService
tags
- one or more tags to removeCopyright © 2017. All rights reserved.