glance.location module¶
- class glance.location.ImageFactoryProxy(factory, context, store_api, store_utils)[source]¶
Bases:
ImageFactory
- class glance.location.ImageProxy(image, context, store_api, store_utils)[source]¶
Bases:
Image
- property locations¶
- class glance.location.ImageRepoProxy(image_repo, context, store_api, store_utils)[source]¶
Bases:
Repo
- class glance.location.StoreLocations(image_proxy, value)[source]¶
Bases:
MutableSequence
The proxy for store location property. It takes responsibility for:
1. Location uri correctness checking when adding a new location. 2. Remove the image data from the store when a location is removed from an image.
- index(value[, start[, stop]]) integer -- return first index of value. [source]¶
Raises ValueError if the value is not present.
Supporting start and stop arguments is optional, but recommended.
- pop([index]) item -- remove and return item at index (default last). [source]¶
Raise IndexError if list is empty or index is out of range.