You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Damian Meden <dm...@apache.org> on 2023/04/11 14:06:09 UTC

Proposed new TS API function: TSRecYAMLConfigParse()

typedef TSReturnCode (*TSYAMLRecNodeHandler)(const TSYAMLRecCfgFieldData
*cfg, void *data);

tsapi TSReturnCode TSRecYAMLConfigParse(TSYaml node, TSYAMLRecNodeHandler
handler, void *data);


conf_remap currently has a copy of the records.config parsing logic inside
the plugin's code. The idea with this new proposed API is to have this as
part of ATS and let plugins not to deal with the record file parsing
themselves and instead just call this API to handle this.

It's important to note that this is meant to be used with YAML files and
not legacy config records. Also I would like to have the "YAML structure
to record name logic" in just one place.


Draft PR: https://github.com/apache/trafficserver/pull/9599

Regards

Damian

Yahoo