tacker.context
Module¶Context: context for security/db session.
tacker.context.
Context
(*args, **kwargs)¶Bases: tacker.context.ContextBaseWithSession
session
¶tacker.context.
ContextBase
(user_id, tenant_id, is_admin=None, roles=None, timestamp=None, request_id=None, tenant_name=None, user_name=None, overwrite=True, auth_token=None, **kwargs)¶Bases: oslo_context.context.RequestContext
Security context and request information.
Represents the user taking a given action within the system.
elevated
()¶Return a version of this context with admin flag set.
from_dict
(values)¶project_id
¶tenant_id
¶to_dict
()¶user_id
¶tacker.context.
ContextBaseWithSession
(user_id, tenant_id, is_admin=None, roles=None, timestamp=None, request_id=None, tenant_name=None, user_name=None, overwrite=True, auth_token=None, **kwargs)¶Bases: tacker.context.ContextBase
connection
¶session
¶transaction
¶transaction_ctx
¶tacker.context.
get_admin_context
()¶tacker.context.
get_admin_context_without_session
()¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.