your_ip_to_ip
[hcoop/domtool2.git] / lib / domain.dtl
index f7e8a74..2b17089 100644 (file)
@@ -9,6 +9,10 @@ extern type no_newlines;
 extern type ip;
 {{An IP address}}
 
+extern type your_ip;
+extern val your_ip_to_ip : your_ip -> ip;
+{{An IP address that you're authorized to use; e.g., for an SSL web host}}
+
 extern type host;
 {{A hostname; that is, (more or less) an alphanumeric string}}
 
@@ -36,10 +40,14 @@ extern type your_group;
 {{UNIX users and groups that you're allowed to run as}}
 
 extern type your_path;
-{{A filesystem path that you're allowed to use.
+{{A filesystem path that you're allowed to write to.
   The set of permitted values is generated from a set of roots by closing it
   under the subdirectory relation.}}
 
+extern type readable_path;
+{{Like [your_path], but also includes some paths that everyone is allowed to
+  read.}}
+
 context Domain;
 {{Configuration directives specific to an Internet domain}}
 
@@ -80,4 +88,7 @@ extern val domain : your_domain -> Domain => [Root] {Aliases : [your_domain], DN
 
 extern type mail_node;
 {{A node offering SMTP services}}
-extern val mail_node_to_node : mail_node -> node;
\ No newline at end of file
+extern val mail_node_to_node : mail_node -> node;
+
+extern val domainHost : host -> [Domain] {} => { Hostname : domain };
+{{Appends the current domain onto a host.}}