summaryrefslogtreecommitdiff
path: root/macaroonbakery/checkers/_conditions.py
diff options
context:
space:
mode:
Diffstat (limited to 'macaroonbakery/checkers/_conditions.py')
-rw-r--r--macaroonbakery/checkers/_conditions.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/macaroonbakery/checkers/_conditions.py b/macaroonbakery/checkers/_conditions.py
new file mode 100644
index 0000000..74e863e
--- /dev/null
+++ b/macaroonbakery/checkers/_conditions.py
@@ -0,0 +1,17 @@
+# Copyright 2017 Canonical Ltd.
+# Licensed under the LGPLv3, see LICENCE file for details.
+
+# StdNamespace holds the URI of the standard checkers schema.
+STD_NAMESPACE = 'std'
+
+# Constants for all the standard caveat conditions.
+# First and third party caveat conditions are both defined here,
+# even though notionally they exist in separate name spaces.
+COND_DECLARED = 'declared'
+COND_TIME_BEFORE = 'time-before'
+COND_ERROR = 'error'
+COND_ALLOW = 'allow'
+COND_DENY = 'deny'
+
+
+COND_NEED_DECLARED = 'need-declared'