Commit | Line | Data |
---|---|---|
234b917a AC |
1 | (* HCoop Domtool (http://hcoop.sourceforge.net/) |
2 | * Copyright (c) 2006, Adam Chlipala | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public License | |
6 | * as published by the Free Software Foundation; either version 2 | |
7 | * of the License, or (at your option) any later version. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License | |
15 | * along with this program; if not, write to the Free Software | |
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
dac62e84 | 17 | *) |
234b917a AC |
18 | |
19 | (* Main interface *) | |
20 | ||
21 | signature MAIN = sig | |
22 | ||
aa56e112 | 23 | val init : unit -> unit |
e1b99e23 | 24 | val setupUser : unit -> string |
234b917a | 25 | |
24248d62 | 26 | val check : Env.env -> string -> Env.env * Ast.exp option |
d189ec0e | 27 | val check' : Env.env -> string -> Env.env |
1824f573 | 28 | val checkDir : string -> unit |
d189ec0e AC |
29 | |
30 | val basis : unit -> Env.env | |
31 | ||
06bd8215 | 32 | val reduce : Env.env -> string -> Env.env * Ast.exp option |
24248d62 | 33 | val eval : Env.env -> Env.env_vars -> string -> Env.env * Env.env_vars |
234b917a | 34 | |
9a34b001 | 35 | val request : string * string option -> unit |
c53e82e4 AC |
36 | val requestDir : string -> unit |
37 | ||
62260c5f | 38 | val requestPing : unit -> OS.Process.status |
9f27d58f | 39 | val requestShutdown : unit -> unit |
5ee41dd0 | 40 | val requestGrant : Acl.acl -> unit |
411a85f2 | 41 | val requestRevoke : Acl.acl -> unit |
08a04eb4 | 42 | val requestListPerms : string -> (string * string list) list option |
094877b1 | 43 | val requestWhoHas : {class : string, value : string} -> string list option |
e69e60cc | 44 | val requestRmdom : string list -> unit |
1824f573 | 45 | val requestRegen : unit -> unit |
fb6fac97 | 46 | val requestRegenTc : unit -> unit |
e69e60cc | 47 | val requestRmuser : string -> unit |
1ffc47a6 | 48 | val requestDescribe : string -> unit |
563e7792 | 49 | val requestReUsers : unit -> unit |
5ee41dd0 | 50 | |
c9731b9b AC |
51 | val requestSlavePing : unit -> OS.Process.status |
52 | val requestSlaveShutdown : unit -> unit | |
53 | ||
3b267643 | 54 | val service : unit -> unit |
36e42cb8 | 55 | val slave : unit -> unit |
559e89e9 | 56 | |
44a5ce2f | 57 | val listBasis : unit -> string list |
3196000d AC |
58 | val autodocBasis : string -> unit |
59 | ||
21d921a5 | 60 | val requestDbUser : {dbtype : string, passwd : string option} -> unit |
86aa5de7 | 61 | val requestDbPasswd : {dbtype : string, passwd : string} -> unit |
fe789bea | 62 | val requestDbTable : {dbtype : string, dbname : string, encoding : string option} -> unit |
35659203 | 63 | val requestDbDrop : {dbtype : string, dbname : string} -> unit |
99cc4144 | 64 | val requestDbGrant : {dbtype : string, dbname : string} -> unit |
d541c618 | 65 | |
1d3ef80e | 66 | val requestListMailboxes : string -> Vmail.listing |
08688401 AC |
67 | val requestNewMailbox : {domain : string, user : string, |
68 | passwd : string, mailbox : string} -> unit | |
69 | val requestPasswdMailbox : {domain : string, user : string, passwd : string} | |
70 | -> unit | |
71 | val requestRmMailbox : {domain : string, user : string} -> unit | |
2e96b9d4 AC |
72 | |
73 | val requestSaQuery : string -> unit | |
74 | val requestSaSet : string * bool -> unit | |
2bc5ed22 AC |
75 | |
76 | val requestSmtpLog : string -> unit | |
75585a67 | 77 | |
00a077ab AC |
78 | val requestMysqlFixperms : unit -> unit |
79 | ||
75585a67 | 80 | val requestApt : {node : string, pkg : string} -> OS.Process.status |
4e1a9fdc | 81 | val requestAptExists : {node : string, pkg : string} -> OS.Process.status |
d351d679 AC |
82 | val requestCron : {node : string, uname : string} -> OS.Process.status |
83 | val requestFtp : {node : string, uname : string} -> OS.Process.status | |
4d5126e1 | 84 | val requestTrustedPath : {node : string, uname : string} -> OS.Process.status |
737c68d4 | 85 | val requestSocketPerm : {node : string, uname : string} -> OS.Process.status |
f9548f16 | 86 | val requestFirewall : {node : string, uname : string} -> OS.Process.status |
a8e88df7 CE |
87 | |
88 | val requestFirewallRegen : string -> OS.Process.status | |
234b917a | 89 | end |