Section: globus rls client (3)Updated: Sat Oct 16 2010Local indexUp
NAME
Miscellaneous -
Miscellaneous functions and types.
Data Structures
struct globus_rls_attribute_t Object (LFN or PFN) attribute type.
struct globus_rls_stats_t Various configuration options and statistics about an RLS server returned in the following structures by globus_rls_client_stats().
Get server configuration. Client needs admin privilege.
Parameters:
h Handle connected to RLS server.
option Configuration option to get. If NULL all options are retrieved.
Return values:
conf_list List of configuration options.
GLOBUS_SUCCESS List of retrieved config options returned in conf_list, each datum is of type globus_rls_string2_t. conf_list should be freed with globus_rls_client_free_list(). There may be multiple 'acl' entries in the list, since the access control list can include more than one entry. Each acl configuration value is consists of a regular expression (matched against grid-mapfile users or DNs), a colon, and space separated list of permissions the matching users are granted.
Retrieve various statistics from RLS server. Requires stats privilege.
Parameters:
h Handle connected to RLS server.
rlsstats Stats returned here.
Return values:
GLOBUS_SUCCESS Stats returned in rlsstats.
char* globus_rls_client_attr2s (globus_rls_attribute_t * attr, char * buf, int buflen)
Map attribute value to string. Parameters:
attr Attribute to convert. If attr->type is globus_rls_attr_type_date then the resulting string will be in the format MySQL uses by default, which is YYYYMMDDHHMMSS.
buf Buffer to write string value to. Note if attr->type is globus_rls_attr_type_str then attr->val.s is returned, and buf is unused.
buflen Size of buf in bytes.
Return values:
String Value Attribute value converted to a string.
Set globus_rls_attribute_t type and val fields from a type and string value. Parameters:
type Attribute value type.
sval String value to convert to binary. If type is globus_rls_attr_type_datesval should be in the form YYYY-MM-DD HH:MM:SS.
attr Attribute whose type and val fields are to be set.
Return values:
GLOBUS_SUCCESSattr->type and attr->val successfully set.
globus_result_t globus_rls_client_error_info (globus_result_t r, int * rc, char * buf, int buflen, globus_bool_t preserve)
Get error code and message from globus_result_t returned by this API. Parameters:
r Result returned by RLS API function. r is freed by this call and should not be referenced again. If preserve is set then a new globus_result_t is constructed with the same values and returned as the function value.
rc Address to store error code at. If NULL error code is not returned.
buf Address to store error message at. If NULL error message is not returned.
preserve If GLOBUS_TRUE then a new globus_result_t is contructed with the same values as the old and returned as the function value.
buflen Size of buf.
Return values:
globus_result_t If preserve is set a new globus_result_t identical to r is returned, otherwise GLOBUS_SUCCESS.
int globus_list_len (globus_list_t * len)
Compute length of list. globus_list_size() is implemented using recursion, besides being inefficient it can run out of stack space when the list is large.
rc Status code.
specificmsg If not NULL prepended (with a colon) to error string.
buf Buffer to write error message to.
buflen Length of buf. Message will be truncated to fit if too long.
Return values:
char * Returns buf, error message written to buf.
Author
Generated automatically by Doxygen for globus rls client from the source code.