My 11th 2023 update

This commit is contained in:
Ned Wright
2023-05-11 18:54:44 +00:00
parent 240f58217a
commit 29bd82d125
92 changed files with 9301 additions and 135 deletions

View File

@@ -95,6 +95,7 @@ enum class Service {
HELLO_WORLD,
IDA,
IOT_ACCESS_CONTROL,
HORIZON_TELEMETRY,
COUNT
};
@@ -171,6 +172,7 @@ getServiceString(const Service service)
case (Service::HELLO_WORLD): return "hello-world";
case (Service::IDA): return "identity-awareness";
case (Service::IOT_ACCESS_CONTROL): return "iot-access-control";
case (Service::HORIZON_TELEMETRY): return "horizon-telemetry";
default:
cerr
<< "Internal Error: the provided service ("
@@ -359,6 +361,11 @@ getServiceConfig (const Service service)
filesystem_path + "/conf/cp-nano-iot-access-control-debug-conf.json",
log_files_path + "/nano_agent/cp-nano-iot-access-control.dbg"
);
case (Service::HORIZON_TELEMETRY):
return ServiceConfig(
filesystem_path + "/conf/cp-nano-horizon-telemetry-debug-conf.json",
log_files_path + "/nano_agent/cp-nano-horizon-telemetry.dbg"
);
default:
cerr
<< "Internal Error: the provided service ("
@@ -1287,6 +1294,8 @@ extractServices(const vector<string> &args)
services.push_back(Service::IDA);
} else if (getServiceString(Service::IOT_ACCESS_CONTROL).find(maybe_service) == 0) {
services.push_back(Service::IOT_ACCESS_CONTROL);
} else if (getServiceString(Service::HORIZON_TELEMETRY).find(maybe_service) == 0) {
services.push_back(Service::HORIZON_TELEMETRY);
} else {
break;
}