MCPcopy Create free account
hub / github.com/apache/trafficserver / TSMgmtStringCreate

Function TSMgmtStringCreate

src/api/InkAPI.cc:7731–7745  ·  view source on GitHub ↗

APIs to register new Mgmt (records) entries.

Source from the content-addressed store, hash-verified

7729
7730// APIs to register new Mgmt (records) entries.
7731TSReturnCode
7732TSMgmtStringCreate(TSRecordType rec_type, const char *name, const TSMgmtString data_default, TSRecordUpdateType update_type,
7733 TSRecordCheckType check_type, const char *check_regex, TSRecordAccessType access_type)
7734{
7735 if (check_regex == nullptr && check_type != TS_RECORDCHECK_NULL) {
7736 return TS_ERROR;
7737 }
7738 if (REC_ERR_OKAY != RecRegisterConfigString(static_cast<enum RecT>(rec_type), name, data_default,
7739 static_cast<enum RecUpdateT>(update_type), static_cast<enum RecCheckT>(check_type),
7740 check_regex, REC_SOURCE_PLUGIN, static_cast<enum RecAccessT>(access_type))) {
7741 return TS_ERROR;
7742 }
7743
7744 return TS_SUCCESS;
7745}
7746
7747TSReturnCode
7748TSMgmtIntCreate(TSRecordType rec_type, const char *name, TSMgmtInt data_default, TSRecordUpdateType update_type,

Callers 1

TSPluginInitFunction · 0.85

Calls 1

RecRegisterConfigStringFunction · 0.85

Tested by

no test coverage detected