X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/6ae327f88a6be8efd02cfe4b713444f9f3ac2672..b59d9074993cac46d6c33803c0b850974c088cf0:/src/slave.sig?ds=sidebyside diff --git a/src/slave.sig b/src/slave.sig index 10d2071..1fed991 100644 --- a/src/slave.sig +++ b/src/slave.sig @@ -53,4 +53,18 @@ signature SLAVE = sig (* Search through the result configuration hierarchy for all files matching * the predicate, writing a list of their domains to the file named by the * third argument, delimiting the entries with the second argument. *) + + val hostname : unit -> string + (* Get hostname of this machine *) + + val readList : string -> string list + val writeList : string * string list -> unit + (* Reading and writing lists of strings stored on separate lines in files *) + + val lineInFile : string -> string -> bool + (* Is there a line in the file (first arg) that matches that given? *) + + val inGroup : {user : string, group : string} -> bool + (* Check membership in a UNIX group. *) + end