Commit | Line | Data |
---|---|---|
36e42cb8 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. | |
17 | *) | |
18 | ||
19 | (* Network message data structures *) | |
20 | ||
21 | structure MsgTypes = struct | |
22 | ||
a95a0107 AC |
23 | datatype query = |
24 | QApt of string | |
25 | (* Is this apt package installed? *) | |
d351d679 AC |
26 | | QCron of string |
27 | (* Is this user allowed to use cron? *) | |
28 | | QFtp of string | |
29 | (* Is this user allowed to use FTP? *) | |
a95a0107 | 30 | |
36e42cb8 AC |
31 | datatype msg = |
32 | MsgOk | |
33 | (* Your request was processed successfully. *) | |
34 | | MsgError of string | |
35 | (* Your request went wrong in some way. *) | |
36 | | MsgConfig of string | |
37 | (* Configuration source code *) | |
38 | | MsgFile of Slave.file_status | |
39 | (* The status of a configuration file has changed. *) | |
40 | | MsgDoFiles | |
41 | (* Perform the actions associated with the MsgFiles sent previously. *) | |
5ee41dd0 | 42 | | MsgGrant of Acl.acl |
411a85f2 AC |
43 | (* Grant a permission *) |
44 | | MsgRevoke of Acl.acl | |
45 | (* Revoke a permission *) | |
08a04eb4 AC |
46 | | MsgListPerms of string |
47 | (* List all of a user's permissions *) | |
48 | | MsgPerms of (string * string list) list | |
49 | (* A response to MsgListPerms, giving a permission class and all values | |
50 | * for which the user is authorized in that class *) | |
094877b1 AC |
51 | | MsgWhoHas of {class : string, value : string} |
52 | (* Which users have this permission? *) | |
53 | | MsgWhoHasResponse of string list | |
54 | (* These are the users! *) | |
c53e82e4 AC |
55 | | MsgMultiConfig of string list |
56 | (* Multiple Domtool sources in dependency order *) | |
e69e60cc AC |
57 | | MsgRmdom of string list |
58 | (* Remove all configuration associated with some domains and revoke | |
59 | * rights to those domains from all users. *) | |
1824f573 AC |
60 | | MsgRegenerate |
61 | (* Make a clean slate of it and reprocess all configuration from scratch. *) | |
e69e60cc AC |
62 | | MsgRmuser of string |
63 | (* Remove all ACL entries for a user, and remove all domains to which | |
64 | * that user and no one else has rights. *) | |
21d921a5 | 65 | | MsgCreateDbUser of {dbtype : string, passwd : string option} |
d541c618 | 66 | (* Request creation of a user for the named DBMS type *) |
90dd48df AC |
67 | | MsgCreateDbTable of {dbtype : string, dbname : string} |
68 | (* Request creation of a DBMS table *) | |
08688401 AC |
69 | | MsgNewMailbox of {domain : string, user : string, |
70 | passwd : string, mailbox : string} | |
71 | (* Request creation of a new vmail mapping *) | |
72 | | MsgPasswdMailbox of {domain : string, user : string, passwd : string} | |
73 | (* Change a vmail account's password *) | |
74 | | MsgRmMailbox of {domain : string, user : string} | |
75 | (* Remove a vmail mapping *) | |
1d3ef80e AC |
76 | | MsgListMailboxes of string |
77 | (* List all mailboxes for a domain *) | |
2fc6b0dd | 78 | | MsgMailboxes of {user : string, mailbox : string} list |
1d3ef80e | 79 | (* Reply to MsgListMailboxes *) |
2e96b9d4 AC |
80 | | MsgSaQuery of string |
81 | (* Check on the SpamAsssassin filtering status of a user or e-mail address *) | |
82 | | MsgSaStatus of bool | |
83 | (* Response to MsgSaQuery *) | |
84 | | MsgSaSet of string * bool | |
85 | (* Set the filtering status of a user or e-mail address *) | |
2bc5ed22 AC |
86 | | MsgSmtpLogReq of string |
87 | (* Request all current SMTP log lines about a domain *) | |
88 | | MsgSmtpLogRes of string | |
89 | (* One line of a response to MsgSmtpLogReq *) | |
86aa5de7 AC |
90 | | MsgDbPasswd of {dbtype : string, passwd : string} |
91 | (* Change a DBMS user's password *) | |
9f27d58f AC |
92 | | MsgShutdown |
93 | (* Halt the server *) | |
75585a67 AC |
94 | | MsgYes |
95 | | MsgNo | |
96 | (* Answers to boolean queries *) | |
a95a0107 AC |
97 | | MsgQuery of query |
98 | (* Ask for host-specific information *) | |
36e42cb8 AC |
99 | |
100 | end |