summaryrefslogtreecommitdiff
path: root/macaroonbakery/checkers/__init__.py
blob: 25c6b7d17bf5e94701ebf7238dec78a54245fbfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# 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,
    expiry_time,
    macaroons_expiry_time,
)
from macaroonbakery.checkers.checkers import (
    Checker,
    CheckerInfo,
    RegisterError,
)
from macaroonbakery.checkers.auth_context import (
    AuthContext,
    ContextKey,
)

from macaroonbakery.checkers.utils import (
    condition_with_prefix,
)

__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',
    'condition_with_prefix',
    'context_with_declared',
    'context_with_operations',
    'context_with_clock',
    'declared_caveat',
    'deny_caveat',
    'deserialize_namespace',
    'expiry_time',
    'infer_declared',
    'infer_declared_from_conditions',
    'macaroons_expiry_time',
    'need_declared_caveat',
    'parse_caveat',
    'time_before_caveat',
]