Print on start of mysql-fixperms in domtool-server
[hcoop/domtool2.git] / src / main.sig
CommitLineData
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
21signature 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
5ee41dd0 49
c9731b9b
AC
50 val requestSlavePing : unit -> OS.Process.status
51 val requestSlaveShutdown : unit -> unit
52
3b267643 53 val service : unit -> unit
36e42cb8 54 val slave : unit -> unit
559e89e9 55
44a5ce2f 56 val listBasis : unit -> string list
3196000d
AC
57 val autodocBasis : string -> unit
58
21d921a5 59 val requestDbUser : {dbtype : string, passwd : string option} -> unit
86aa5de7 60 val requestDbPasswd : {dbtype : string, passwd : string} -> unit
fe789bea 61 val requestDbTable : {dbtype : string, dbname : string, encoding : string option} -> unit
35659203 62 val requestDbDrop : {dbtype : string, dbname : string} -> unit
99cc4144 63 val requestDbGrant : {dbtype : string, dbname : string} -> unit
d541c618 64
1d3ef80e 65 val requestListMailboxes : string -> Vmail.listing
08688401
AC
66 val requestNewMailbox : {domain : string, user : string,
67 passwd : string, mailbox : string} -> unit
68 val requestPasswdMailbox : {domain : string, user : string, passwd : string}
69 -> unit
70 val requestRmMailbox : {domain : string, user : string} -> unit
2e96b9d4
AC
71
72 val requestSaQuery : string -> unit
73 val requestSaSet : string * bool -> unit
2bc5ed22
AC
74
75 val requestSmtpLog : string -> unit
75585a67 76
00a077ab
AC
77 val requestMysqlFixperms : unit -> unit
78
75585a67 79 val requestApt : {node : string, pkg : string} -> OS.Process.status
d351d679
AC
80 val requestCron : {node : string, uname : string} -> OS.Process.status
81 val requestFtp : {node : string, uname : string} -> OS.Process.status
4d5126e1 82 val requestTrustedPath : {node : string, uname : string} -> OS.Process.status
737c68d4 83 val requestSocketPerm : {node : string, uname : string} -> OS.Process.status
f9548f16 84 val requestFirewall : {node : string, uname : string} -> OS.Process.status
234b917a 85end