class OceanKit::Resource::Image

Overview

Images in DigitalOcean may refer to one of a few different kinds of objects. An image may refer to a snapshot that has been taken of a Droplet instance. It may also mean an image representing an automatic backup of a Droplet. The third category that it can represent is a public Linux distribution or application image that is used as a base to create Droplets.

Defined in:

ocean_kit/resources/image.cr

Instance Method Summary

Constructor methods inherited from class OceanKit::Resource::Base

new(headers : HTTP::Headers | Nil) new

Instance methods inherited from module OceanKit::Client::Connection

destroy(path, options = nil) destroy, get(path, options = nil) get, post(path, options) post, put(path, options) put, request(http_method, path, options) request

Instance Method Detail

def all #

To list all of the images available on your account

The response will be a JSON object with a key called images. This will be set to an array of image objects, each of which will contain the standard image attributes:


[View source]
def all_application #

Retrieve only application images


[View source]
def all_distribution #

Retrieve only distribution images


[View source]
def all_private #

To retrieve only the private images


[View source]
def delete(id) #

Delete an image


[View source]
def find(id) #

Retrieve information about an image (public or private), The response will be a JSON object with a key called image. The value of this will be an image object containing the standard image attributes.


[View source]
def images #

[View source]
def update(id, name) #

Update an image


[View source]