veyron/...: Consolidate use of environment variables into named
constants.
There are still some strings left in the "playground" repository.
I'll switch those over once this commit is in.
Change-Id: Iad72c31f4a1b839d6469f7589967a9f5cf1f1f97
diff --git a/lib/flags/consts/consts.go b/lib/flags/consts/consts.go
new file mode 100644
index 0000000..7ed0112
--- /dev/null
+++ b/lib/flags/consts/consts.go
@@ -0,0 +1,12 @@
+// Package consts defines named constants whose values are interpreted by the flags package.
+package consts
+
+const (
+ // Environment variable whose value points to a directory containing
+ // the state of a Principal. (Private key, blessings, recognized root
+ // certificates etc.)
+ VeyronCredentials = "VEYRON_CREDENTIALS"
+ // Prefix of all environment variables that point to roots of the
+ // veyron namespace, used to resolve non-rooted object names.
+ NamespaceRootPrefix = "NAMESPACE_ROOT"
+)