globus_gram_client.h(3)
π¦ globus_gram_client.h(3) β Library Functions Manual π¦
okay so bestie, welcome to the GRAM Client API manual page π this is the Library Functions Manual energy, and we're about to vibe check every single function, typedef, macro, and struct. no cap.
β¨ NAME β¨
globus_gram_client.h β GRAM Client API.
π§ SYNOPSIS π§
#include 'globus_common.h'
#include 'globus_io.h'
#include 'globus_gram_protocol_constants.h'
𧬠Data Structures π§¬
struct globus_gram_client_job_info_sβ Extensible job information structure.
π Macros π
#define GLOBUS_GRAM_CLIENT_NO_ATTRβ Default GRAM client operation attribute.
π¦ Typedefs π¦
- ```c typedef void(* globus_gram_client_callback_func_t) (void *user_callback_arg, char *job_contact, int state, int errorcode)
β Signature for GRAM state notification callback functions.
- ```c
typedef struct globus_gram_client_job_info_s
globus_gram_client_job_info_t
β Extensible job information structure.
- ```c typedef void(* globus_gram_client_info_callback_func_t) (void *user_callback_arg, const char *job_contact, globus_gram_client_job_info_t *job_info)
β Signature for GRAM state notification callback functions with extension support.
- ```c
typedef void * globus_gram_client_attr_t
β GRAM client operation attribute.
- ```c typedef void(* globus_gram_client_nonblocking_func_t) (void *user_callback_arg, globus_gram_protocol_error_t operation_failure_code, const char *job_contact, globus_gram_protocol_job_state_t job_state, globus_gram_protocol_error_t job_failure_code)
β Signature for callbacks signalling completion of non-blocking GRAM requests.
## π₯ Functions π₯
- ```c
int globus_gram_client_callback_allow
(globus_gram_client_callback_func_t callback_func, void
*user_callback_arg, char **callback_contact)
β Begin listening for job state change callbacks.
- ```c int globus_gram_client_info_callback_allow (globus_gram_client_info_callback_func_t callback_func, void *user_callback_arg, char **callback_contact)
β <pink>Begin listening for job state change callbacks.</pink>
- ```c
int globus_gram_client_register_job_request (const char
*resource_manager_contact, const char *description, int
job_state_mask, const char *callback_contact,
globus_gram_client_attr_t attr,
globus_gram_client_nonblocking_func_t register_callback, void
*register_callback_arg)
β Send a job request to a GRAM service.
- ```c int globus_gram_client_job_request (const char *resource_manager_contact, const char *description, int job_state_mask, const char *callback_contact, char **job_contact)
β <pink>Send a job request to a GRAM service.</pink>
- ```c
int globus_gram_client_register_job_request_with_info (const char
*resource_manager_contact, const char *description, int
job_state_mask, const char *callback_contact,
globus_gram_client_attr_t attr,
globus_gram_client_info_callback_func_t callback, void
*callback_arg)
β Send a job request to a GRAM service with extensions-aware callback.
- ```c int globus_gram_client_job_request_with_info (const char *resource_manager_contact, const char *description, int job_state_mask, const char *callback_contact, char **job_contact, globus_gram_client_job_info_t *info)
β <pink>Send a job request to a GRAM service and parse extensions in the response.</pink>
- ```c
int globus_gram_client_register_job_cancel (const char *job_contact,
globus_gram_client_attr_t attr,
globus_gram_client_nonblocking_func_t register_callback, void
*register_callback_arg)
β Cancel a GRAM job.
- ```c int globus_gram_client_job_cancel (const char *job_contact)
β <pink>Cancel a GRAM job.</pink>
- ```c
int globus_gram_client_register_job_status (const char *job_contact,
globus_gram_client_attr_t attr,
globus_gram_client_nonblocking_func_t register_callback, void
*register_callback_arg)
β Send a status query to a GRAM job.
- ```c int globus_gram_client_register_job_status_with_info (const char *job_contact, globus_gram_client_attr_t attr, globus_gram_client_info_callback_func_t info_callback, void *callback_arg)
β <pink>Send a status query to a GRAM job.</pink>
- ```c
int globus_gram_client_job_refresh_credentials (char *job_contact,
gss_cred_id_t creds)
β Delegate a new credential to a job.
- ```c int globus_gram_client_register_job_refresh_credentials (char *job_contact, gss_cred_id_t creds, globus_gram_client_attr_t attr, globus_gram_client_nonblocking_func_t register_callback, void *register_callback_arg)
β <pink>Delegate a new credential to a job.</pink>
- ```c
int globus_gram_client_job_status (const char *job_contact, int
*job_status, int *failure_code)
β Send a status query to a GRAM job.
- ```c int globus_gram_client_job_status_with_info (const char *job_contact, globus_gram_client_job_info_t *job_info)
β <pink>Send a status query to a GRAM job.</pink>
- ```c
int globus_gram_client_register_job_signal (const char *job_contact,
globus_gram_protocol_job_signal_t signal, const char *signal_arg,
globus_gram_client_attr_t attr,
globus_gram_client_nonblocking_func_t register_callback, void
*register_callback_arg)
β Send a signal a GRAM job.
- ```c int globus_gram_client_job_signal (const char *job_contact, globus_gram_protocol_job_signal_t signal, const char *signal_arg, int *job_status, int *failure_code)
β <pink>Send a signal a GRAM job.</pink>
- ```c
int globus_gram_client_register_job_callback_registration (const char
*job_contact, int job_state_mask, const char *callback_contact,
globus_gram_client_attr_t attr,
globus_gram_client_nonblocking_func_t register_callback, void
*register_callback_arg)
β Register a new callback contact to be notified for job state changes.
- ```c int globus_gram_client_job_callback_register (const char *job_contact, int job_state_mask, const char *callback_contact, int *job_status, int *failure_code)
β <pink>Register a new callback contact to be notified for job state changes.</pink>
- ```c
int globus_gram_client_register_job_callback_unregistration (const char
*job_contact, const char *callback_contact,
globus_gram_client_attr_t attr,
globus_gram_client_nonblocking_func_t register_callback, void
*register_callback_arg)
β Unregister a callback contact to stop job state change notifications.
- ```c int globus_gram_client_job_callback_unregister (const char *job_contact, const char *callback_contact, int *job_status, int *failure_code)
β <pink>Unregister a callback contact to stop job state change notifications.</pink>
- ```c
int globus_gram_client_callback_disallow (char *callback_contact)
β Stop listening for job state change callbacks.
- ```c int globus_gram_client_job_contact_free (char *job_contact)
β <pink>Free a job contact string.</pink>
- ```c
const char * globus_gram_client_error_string (int error_code)
β Get a description of a a GRAM error code.
- ```c int globus_gram_client_version (void)
β <pink>Return GRAM protocol version.</pink>
- ```c
int globus_gram_client_set_credentials (gss_cred_id_t new_credentials)
β Set the default GRAM credential.
- ```c int globus_gram_client_ping (const char *resource_manager_contact)
β <pink>Send a ping request to a GRAM service.</pink>
- ```c
int globus_gram_client_register_ping (const char
*resource_manager_contact, globus_gram_client_attr_t attr,
globus_gram_client_nonblocking_func_t register_callback, void
*register_callback_arg)
β Send a ping request to a GRAM service.
- ```c int globus_gram_client_get_jobmanager_version (const char *resource_manager_contact, globus_hashtable_t *extensions)
β <pink>Get version information from a job manager.</pink>
- ```c
int globus_gram_client_register_get_jobmanager_version (const char
*resource_manager_contact, globus_gram_client_attr_t attr,
globus_gram_client_info_callback_func_t info_callback, void
*callback_arg)
β Get version information from a job manager without blocking.
- ```c void globus_gram_client_debug (void)
β <pink>Enable GRAM debugging.</pink>
- ```c
int globus_gram_client_attr_init (globus_gram_client_attr_t *attr)
β Initialize a GRAM client attribute.
- ```c int globus_gram_client_attr_destroy (globus_gram_client_attr_t *attr)
β <pink>Destroy a GRAM client attribute.</pink>
- ```c
int globus_gram_client_attr_set_credential (globus_gram_client_attr_t
attr, gss_cred_id_t credential)
β Set a GRAM client attribute's security credential.
- ```c int globus_gram_client_attr_get_credential (globus_gram_client_attr_t attr, gss_cred_id_t *credential)
β <pink>Get a GRAM client attribute's security credential.</pink>
- ```c
int globus_gram_client_attr_set_delegation_mode
(globus_gram_client_attr_t attr, globus_io_secure_delegation_mode_t
mode)
β Set a GRAM client attribute's delegation mode.
- ```c int globus_gram_client_attr_get_delegation_mode (globus_gram_client_attr_t attr, globus_io_secure_delegation_mode_t *mode)
β <pink>Get a GRAM client attribute's security credential.</pink>
- ```c
void globus_gram_client_job_info_destroy (globus_gram_client_job_info_t
*info)
β Free memory associated with a globus_gram_client_job_info_t structure.
π Detailed Description π
GRAM Client API.
This header file contains the exported client interface of the Resource Allocation Management System. π
π Author π
Generated automatically by Doxygen for globus_gram_client from the source code. π
Sign-off: globus_gram_client, Version 14.7, globus_gram_client.h(3) β that's the source/version and manual page name, bestie. bye πβ¨
π¦ where this page comes from
- epel 10: globus-gram-client-doc 14.7-1.el10_2 Β· Apache-2.0
- fedora 43: globus-gram-client-doc 14.7-1.fc43 Β· Apache-2.0
- fedora 44: globus-gram-client-doc 14.7-2.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-gram-client-doc 14.7-1 Β· Apache-2.0
- ubuntu stonking: libglobus-gram-client-doc 14.7-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms