irods
4.3.0
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
![]() ![]() |
#include "irods/rcMisc.h"
#include "irods/msiHelper.hpp"
#include "irods/private/re/reFuncDefs.hpp"
#include <cstring>
Go to the source code of this file.
msiAddKeyValToMspStr | ( | msParam_t * | keyStr, |
msParam_t * | valStr, | ||
msParam_t * | msKeyValStr, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | keyStr | - a STR_MS_T key to be added to msKeyValStr. |
[in] | valStr | - a STR_MS_T value to be added to msKeyValStr. |
[in] | msKeyValStr | - a msKeyValStr to hold the new keyVal pair. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 230 of file msiHelper.cpp.
References addKeyValToMspStr(), LOG_ERROR, NULL, RE_TEST_MACRO, rodsLog(), and RuleExecInfo::status.
Referenced by initialize_microservice_table().
msiExit | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A STR_MS_T which specifies the status error to add to the error stack. |
[in] | inpParam2 | - A STR_MS_T which specifies the message to add to the error stack. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 753 of file msiHelper.cpp.
References addRErrorMsg(), ERR_MSG_LEN, MsParam::inOutStruct, LOG_ERROR, NULL, RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, RuleExecInfo::status, STR_MS_T, and MsParam::type.
Referenced by initialize_microservice_table().
msiGetSessionVarValue | ( | msParam_t * | inpVar, |
msParam_t * | outputMode, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpVar | - A STR_MS_T which specifies the name of the session variable to output. The input session variable should NOT start with the "$" character. An input value of "all" means output all valid session variables. |
[in] | outputMode | - A STR_MS_T which specifies the output mode. Valid modes are:
|
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 358 of file msiHelper.cpp.
References addRErrorMsg(), clearKeyVal(), ERR_MSG_LEN, getAllSessionVarValue(), getSessionVarValue(), i, MsParam::inOutStruct, KeyValPair::keyWord, KeyValPair::len, LOG_ERROR, NULL, RE_TEST_MACRO, RsComm::rError, rodsLog(), RuleExecInfo::rsComm, RuleExecInfo::status, STR_MS_T, MsParam::type, and KeyValPair::value.
Referenced by initialize_microservice_table().
msiGetStderrInExecCmdOut | ( | msParam_t * | inpExecCmdOut, |
msParam_t * | outStr, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpExecCmdOut | - a STR_MS_T which specifies the ExecCmdOut. |
[out] | outStr | - a STR_MS_T to hold the retrieved stderr buffer. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 92 of file msiHelper.cpp.
References fillStrInMsParam(), getStderrInExecCmdOut(), NULL, and RuleExecInfo::status.
Referenced by initialize_microservice_table().
msiGetStdoutInExecCmdOut | ( | msParam_t * | inpExecCmdOut, |
msParam_t * | outStr, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpExecCmdOut | - a STR_MS_T which specifies the ExecCmdOut. |
[out] | outStr | - a STR_MS_T to hold the retrieved stdout buffer. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 44 of file msiHelper.cpp.
References fillStrInMsParam(), getStdoutInExecCmdOut(), and RuleExecInfo::status.
Referenced by initialize_microservice_table().
msiSplitPath | ( | msParam_t * | inpPath, |
msParam_t * | outParentColl, | ||
msParam_t * | outChildName, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpPath | - a STR_MS_T which specifies the pathname to split. |
[out] | outParentColl | - a STR_MS_T to hold the returned parent path. |
[out] | outChildName | - a STR_MS_T to hold the returned child value. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 280 of file msiHelper.cpp.
References fillStrInMsParam(), MsParam::inOutStruct, LOG_ERROR, MAX_NAME_LEN, NULL, RE_TEST_MACRO, rodsLog(), splitPathByKey(), RuleExecInfo::status, STR_MS_T, and MsParam::type.
Referenced by initialize_microservice_table().
int msiSplitPathByKey | ( | msParam_t * | inpPath, |
msParam_t * | inpKey, | ||
msParam_t * | outParentColl, | ||
msParam_t * | outChildName, | ||
ruleExecInfo_t * | rei | ||
) |
Definition at line 837 of file msiHelper.cpp.
References fillStrInMsParam(), MsParam::inOutStruct, LOG_ERROR, MAX_NAME_LEN, NULL, RE_TEST_MACRO, rodsLog(), splitPathByKey(), RuleExecInfo::status, STR_MS_T, and MsParam::type.
Referenced by initialize_microservice_table().
int msiStrCat | ( | msParam_t * | targParam, |
msParam_t * | srcParam, | ||
ruleExecInfo_t * | rei | ||
) |
Definition at line 800 of file msiHelper.cpp.
References MsParam::inOutStruct, LOG_ERROR, NULL, RE_TEST_MACRO, rodsLog(), rstrcpy(), STR_MS_T, and MsParam::type.
Referenced by initialize_microservice_table().
msiStrchop | ( | msParam_t * | stringIn, |
msParam_t * | stringOut, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | stringIn | - a STR_MS_T which specifies the input string. |
[out] | stringOut | - a STR_MS_T to hold the string without the last char. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
the | length of the returned string |
Definition at line 548 of file msiHelper.cpp.
References fillStrInMsParam(), MsParam::inOutStruct, LOG_ERROR, NULL, RE_TEST_MACRO, rodsLog(), RuleExecInfo::status, STR_MS_T, and MsParam::type.
Referenced by initialize_microservice_table().
msiStrlen | ( | msParam_t * | stringIn, |
msParam_t * | lengthOut, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | stringIn | - a STR_MS_T which specifies the input string. |
[out] | lengthOut | - a STR_MS_T to hold the returned string length. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
the | length of the given string |
Definition at line 478 of file msiHelper.cpp.
References fillStrInMsParam(), MsParam::inOutStruct, len, LOG_ERROR, NAME_LEN, NULL, RE_TEST_MACRO, rodsLog(), RuleExecInfo::status, STR_MS_T, and MsParam::type.
Referenced by initialize_microservice_table().
msiSubstr | ( | msParam_t * | stringIn, |
msParam_t * | offset, | ||
msParam_t * | length, | ||
msParam_t * | stringOut, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | stringIn | - a STR_MS_T which specifies the input string. |
[in] | offset | - a STR_MS_T which specifies the position of the beginning of the substring (0 is first character). If negative, then offset specifies the position from the end of the string (-1 is the last character). |
[in] | length | - a STR_MS_T which specifies the length of substring to return. If length is not specified, too large, negative, or "null", then return the substring from the offset to the end of stringIn. |
[out] | stringOut | - a STR_MS_T to hold the resulting substring. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
the | length of the substring |
Definition at line 627 of file msiHelper.cpp.
References fillStrInMsParam(), MsParam::inOutStruct, LOG_ERROR, NULL, RE_TEST_MACRO, rodsLog(), RuleExecInfo::status, STR_MS_T, and MsParam::type.
Referenced by initialize_microservice_table().
msiWriteRodsLog | ( | msParam_t * | inpParam1, |
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A STR_MS_T which specifies the message to log. |
[out] | outParam | - An INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 156 of file msiHelper.cpp.
References fillIntInMsParam(), MsParam::inOutStruct, LOG_ERROR, LOG_NOTICE, NULL, RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, RuleExecInfo::status, STR_MS_T, and MsParam::type.
Referenced by initialize_microservice_table().