glance.registry.api.v1.members module¶
-
class
glance.registry.api.v1.members.
Controller
[source]¶ Bases:
object
Retrieves images shared with the given member.
-
is_image_sharable
(context, image)[source]¶ Return True if the image can be shared to others in this context.
-
update
(req, image_id, id, body=None)[source]¶ Adds a membership to the image, or updates an existing one. If a body is present, it is a dict with the following format:
{'member': { 'can_share': [True|False] }}
If can_share is provided, the member’s ability to share is set accordingly. If it is not provided, existing memberships remain unchanged and new memberships default to False.