@Singleton public class DigitalOcean2ImageExtension extends Object implements ImageExtension
ImageExtension implementation for the DigitalOcean provider.| Modifier and Type | Method and Description |
|---|---|
ImageTemplate |
buildImageTemplateFromNode(String name,
String id)
Build an ImageTemplate from a running node, to use later to create a new
Image. |
com.google.common.util.concurrent.ListenableFuture<Image> |
createImage(ImageTemplate template)
Transform the
ImageTemplate on an Image that can be used to create nodes. |
boolean |
deleteImage(String id)
Delete an
Image on the provider. |
@Named(value="jclouds.compute") protected Logger logger
public ImageTemplate buildImageTemplateFromNode(String name, String id)
ImageExtensionImage.buildImageTemplateFromNode in interface ImageExtensionname - name to give the new imageid - node to base the template onpublic com.google.common.util.concurrent.ListenableFuture<Image> createImage(ImageTemplate template)
ImageExtensionImageTemplate on an Image that can be used to create nodes.createImage in interface ImageExtensiontemplate - template to base the new image onpublic boolean deleteImage(String id)
ImageExtensionImage on the provider.deleteImage in interface ImageExtensionid - the id of the image to deleteCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.