The glance_store._drivers.filesystem Module

The glance_store._drivers.filesystem Module

A simple filesystem-backed store

class glance_store._drivers.filesystem.ChunkedFile(filepath, offset=0, chunk_size=4096, partial_length=None)

Bases: object

We send this back to the Glance API server as something that can iterate over a large file

close()

Close the internal file pointer

class glance_store._drivers.filesystem.Store(conf)

Bases: glance_store.driver.Store

FILESYSTEM_STORE_METADATA = None
OPTIONS = [<oslo_config.cfg.StrOpt object>, <oslo_config.cfg.MultiStrOpt object>, <oslo_config.cfg.StrOpt object>, <oslo_config.cfg.IntOpt object>]
READ_CHUNKSIZE = 65536
WRITE_CHUNKSIZE = 65536
add(store, *args, **kwargs)
configure_add()

Configure the Store to use the stored configuration options Any store that needs special configuration should implement this method. If the store was not able to successfully configure itself, it should raise exceptions.BadStoreConfiguration

delete(store, *args, **kwargs)
get(store, *args, **kwargs)
get_schemes()
get_size(location, context=None)

Takes a glance_store.location.Location object that indicates where to find the image file and returns the image size

Parameters:locationglance_store.location.Location object, supplied from glance_store.location.get_location_from_uri()
Raises:glance_store.exceptions.NotFound if image does not exist
Return type:int
class glance_store._drivers.filesystem.StoreLocation(store_specs, conf)

Bases: glance_store.location.StoreLocation

Class describing a Filesystem URI.

get_uri()
parse_uri(uri)

Parse URLs. This method fixes an issue where credentials specified in the URL are interpreted differently in Python 2.6.1+ than prior versions of Python.

process_specs()
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.