The tacker.context
Module¶
Context: context for security/db session.
-
class
tacker.context.
Context
(*args, **kwargs)¶ Bases:
tacker.context.ContextBaseWithSession
-
session
¶
-
-
class
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.
-
classmethod
from_dict
(values)¶
-
project_id
¶
-
tenant_id
¶
-
to_dict
()¶
-
user_id
¶
-
-
class
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
()¶