Reference implementation registry server WSGI controller
Bases: object
Registers a new image with the registry.
Parameters: |
|
---|
Deletes an existing image with the registry.
Parameters: |
|
---|
:retval Returns 200 if delete was successful, a fault if not. On success, the body contains the deleted image information as a mapping.
Return a filtered list of public, non-deleted images in detail
Parameters: | req – the Request object coming from the wsgi layer |
---|
:retval a mapping of the following form:
dict(images=[image_list])
Where image_list is a sequence of mappings containing all image model fields.
Return a basic filtered list of public, non-deleted images
Parameters: | req – the Request object coming from the wsgi layer |
---|
:retval a mapping of the following form:
dict(images=[image_list])
Where image_list is a sequence of mappings:
{
'id': <ID>,
'name': <NAME>,
'size': <SIZE>,
'disk_format': <DISK_FORMAT>,
'container_format': <CONTAINER_FORMAT>,
'checksum': <CHECKSUM>
}
Bases: object
Retrieves images shared with the given member.
Return True if the image can be shared to others in this context.
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.