MACS::RMA -- macs' Resource Management Agent internals.
use MACS::RMA; MACS::RMA::init(); @idpath = MACS::RMA::get_path_id(\@path); ...
The databasing in this module should be moved to MACS::DBI and
called from there.
MACS::RMA implements macs' Resource Management internals. It is
very simple to use, just 'use' it, call MACS::RMA::init(), and use any
of the following functions according to its instructions: (Note that
none of these functions are exportable to the callers namespace, and
therefore need to be fully qualified!)
init(ctx)MACS::CClient
context object. This function must be called before any others!
FIXME: There is a small race condition in this code. I think it's harmless, but there it is.
get_root_resources()get_resource_children(id)get_path_id(path)get_id_path(id)get_resource_perms(ids)get_groups()set_resource_perms(id,set,disable,owner,admin,read,write,groups)create_resource(parent,name)create_group(name)FIXME: This is not completely general. (Ie, it's a hack.)