The nova.virt.vmwareapi.read_write_util Module

Classes to handle image files

Collection of classes to handle image upload/download to/from Image service (like Glance image storage and retrieval service) from/to ESX/ESXi server.

class GlanceFileRead(glance_read_iter)

Bases: object

Glance file read handler class.

close()

A dummy close just to maintain consistency.

get_next()

Get the next item from the image iterator.

read(chunk_size)

Read an item from the queue. The chunk size is ignored for the Client ImageBodyIterator uses its own CHUNKSIZE.

class VMwareHTTPFile(file_handle)

Bases: object

Base class for HTTP file.

close()

Close the file handle.

get_eof()

Check if the end of file has been reached.

get_size()

Get size of the file to be read.

read(chunk_size)

Read a chunk of data.

set_eof(eof)

Set the end of file marker.

write(data)

Write data to the file.

class VMwareHTTPReadFile(host, data_center_name, datastore_name, cookies, file_path, scheme='https')

Bases: nova.virt.vmwareapi.read_write_util.VMwareHTTPFile

VMware file read handler class.

get_size()

Get size of the file to be read.

read(chunk_size)

Read a chunk of data.

class VMwareHTTPWriteFile(host, data_center_name, datastore_name, cookies, file_path, file_size, scheme='https')

Bases: nova.virt.vmwareapi.read_write_util.VMwareHTTPFile

VMware file write handler class.

close()

Get the response and close the connection.

write(data)

Write to the file.

Previous topic

The nova.virt.vmwareapi.network_util Module

Next topic

The nova.virt.vmwareapi.vif Module

This Page