Bases: glance.domain.proxy.Image
Bases: glance.domain.proxy.Repo
Bases: object
Bases: list
Bases: object
Bases: object
Bases: object
Bases: object
Bases: object
Bases: object
Bases: dict
Bases: set
Bases: object
Bases: object
Bases: glance.domain.proxy.Task
Bases: glance.domain.proxy.TaskRepo
Return True if the image is mutable in this context.
Return True if the image is mutable in this context.
Return True if the meta_resource_type is mutable in this context.
Return True if the namespace is mutable in this context.
Return True if the object is mutable in this context.
Return True if the object is mutable in this context.
Return True if the tag is mutable in this context.
Return True if the task is mutable in this context.
Return True if the task stub is mutable in this context.
Controller for Image Cache Management API
Bases: glance.api.v1.controller.BaseController
A controller for managing cached images.
DELETE /cached_images/<IMAGE_ID>
Removes an image from the cache.
DELETE /cached_images - Clear all active cached images
Removes all images from the cache.
DELETE /queued_images/<IMAGE_ID>
Removes an image from the cache.
DELETE /queued_images - Clear all active queued images
Removes all images from the cache.
GET /cached_images
Returns a mapping of records about cached images.
Method called to see if the user is allowed to store an image.
Checks if it is allowed based on the given size in glance based on their quota and current usage.
Parameters: |
|
---|---|
Returns: |
Method called to see if the user is allowed to store an image.
Checks if it is allowed based on the given size in glance based on their quota and current usage.
Parameters: |
|
---|---|
Returns: | The number of bytes the user has remaining under their quota. None means infinity |
Initializes eventlet thread pool.
If thread pool is present in cache, then returns it from cache else create new pool, stores it in cache and return newly created pool.
@param lock_name: Name of the lock. @param size: Size of eventlet pool.
@return: eventlet pool
Policy Engine For Glance
Bases: oslo_policy.policy.Enforcer
Responsible for loading and enforcing rules
Verifies that the action is valid on the target in this context.
Parameters: |
|
---|---|
Returns: | A non-False value if access is allowed. |
Check if the given context is associated with an admin role, as defined via the ‘context_is_admin’ RBAC rule.
Parameters: | context – Glance request context |
---|---|
Returns: | A non-False value if context role is admin. |
Verifies that the action is valid on the target in this context.
Parameters: |
|
---|---|
Raises: | glance.common.exception.Forbidden |
Returns: | A non-False value if access is allowed. |
Bases: object
Bases: glance.domain.proxy.Repo
Bases: glance.domain.proxy.Image
Bases: glance.domain.proxy.Repo
Bases: object
Bases: glance.domain.proxy.MetadefTagRepo
Bases: glance.domain.proxy.Task
Bases: glance.domain.proxy.TaskRepo
Bases: glance.domain.proxy.TaskStub
Bases: glance.domain.proxy.Image