glance.location module¶
-
class
glance.location.
ImageMemberRepoProxy
(repo, image, context, store_api)[source]¶ Bases:
glance.domain.proxy.Repo
-
class
glance.location.
ImageProxy
(image, context, store_api, store_utils)[source]¶ Bases:
glance.domain.proxy.Image
-
property
locations
¶
-
property
-
class
glance.location.
ImageRepoProxy
(image_repo, context, store_api, store_utils)[source]¶ Bases:
glance.domain.proxy.Repo
-
class
glance.location.
StoreLocations
(image_proxy, value)[source]¶ Bases:
collections.abc.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.
-