X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/e9f528ab975ac28c16b2c370e69206a48f584d78..421df4d714870f2aa1f54944c29884730973d098:/lib/domain.dtl diff --git a/lib/domain.dtl b/lib/domain.dtl index 55ac254..3d9b088 100644 --- a/lib/domain.dtl +++ b/lib/domain.dtl @@ -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}} @@ -39,6 +43,8 @@ extern type your_path; {{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 val end_in_slash : your_path -> your_path; +{{Add a slash at the end of a path, if there isn't one already.}} extern type readable_path; {{Like [your_path], but also includes some paths that everyone is allowed to