deckhand.context module

class deckhand.context.RequestContext(project=None, context_marker='-', end_user='-', **kwargs)[source]

Bases: oslo_context.context.RequestContext

User security context object

Stores information about the security context under which the user accesses the system, as well as additional request information.

classmethod from_dict(values)[source]

Construct a context object from a provided dictionary.

to_dict()[source]

Return a dictionary of context attributes.

deckhand.context.get_context()[source]

A helper method to get a blank context (useful for tests).