The nova.virt.xenapi.image.utils Module

class GlanceImage(context, image_href_or_id)

Bases: object

data()
download_to(fileobj)
is_raw_tgz()
meta
class IterableToFileAdapter(iterable)

Bases: object

A degenerate file-like so that an iterable could be read like a file.

As Glance client returns an iterable, but tarfile requires a file like, this is the adapter between the two. This allows tarfile to access the glance stream.

read(size)
class RawImage(glance_image)

Bases: object

get_size()
stream_to(fileobj)
class RawTGZImage(glance_image)

Bases: object

get_size()
stream_to(target_file)

Previous topic

The nova.virt.xenapi.image.glance Module

Next topic

The nova.virt.xenapi.image.vdi_through_dev Module

Project Source

This Page