This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.1 docs or all OpenStack docs too.

The nova.image.local Module

class nova.image.local.LocalImageService

Bases: nova.image.service.BaseImageService

Image service storing images to local disk.

It assumes that image_ids are integers.

create(context, metadata, data=None)

Store the image data and return the new image.

delete(context, image_id)

Delete the given image. Raises NotFound if the image does not exist.

delete_all()

Clears out all images in local directory.

detail(context)
get(context, image_id, data)

Get image and metadata.

index(context)
show(context, image_id)
show_by_name(context, name)

Returns a dict containing image data for the given name.

update(context, image_id, metadata, data=None)

Replace the contents of the given image with the new data.