diff options
Diffstat (limited to 'macaroonbakery/checkers/__init__.py')
-rw-r--r-- | macaroonbakery/checkers/__init__.py | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/macaroonbakery/checkers/__init__.py b/macaroonbakery/checkers/__init__.py new file mode 100644 index 0000000..9f0b022 --- /dev/null +++ b/macaroonbakery/checkers/__init__.py @@ -0,0 +1,50 @@ +# Copyright 2017 Canonical Ltd. +# Licensed under the LGPLv3, see LICENCE file for details. +from macaroonbakery.checkers.conditions import ( + STD_NAMESPACE, COND_DECLARED, COND_TIME_BEFORE, COND_ERROR, COND_ALLOW, + COND_DENY, COND_NEED_DECLARED +) +from macaroonbakery.checkers.caveat import ( + allow_caveat, deny_caveat, declared_caveat, parse_caveat, + time_before_caveat, Caveat +) +from macaroonbakery.checkers.declared import ( + context_with_declared, infer_declared, infer_declared_from_conditions, + need_declared_caveat +) +from macaroonbakery.checkers.operation import context_with_operations +from macaroonbakery.checkers.namespace import Namespace, deserialize_namespace +from macaroonbakery.checkers.time import context_with_clock +from macaroonbakery.checkers.checkers import ( + Checker, CheckerInfo, RegisterError +) +from macaroonbakery.checkers.auth_context import AuthContext, ContextKey + +__all__ = [ + 'AuthContext', + 'Caveat', + 'Checker', + 'CheckerInfo', + 'COND_ALLOW', + 'COND_DECLARED', + 'COND_DENY', + 'COND_ERROR', + 'COND_NEED_DECLARED', + 'COND_TIME_BEFORE', + 'ContextKey', + 'STD_NAMESPACE', + 'Namespace', + 'RegisterError', + 'allow_caveat', + 'context_with_declared', + 'context_with_operations', + 'context_with_clock', + 'declared_caveat', + 'deny_caveat', + 'deserialize_namespace', + 'infer_declared', + 'infer_declared_from_conditions', + 'need_declared_caveat', + 'parse_caveat', + 'time_before_caveat', +] |