Lines Matching refs:ServiceParser
53 Result<void> ServiceParser::ParseCapabilities(std::vector<std::string>&& args) { in ParseCapabilities()
81 Result<void> ServiceParser::ParseClass(std::vector<std::string>&& args) { in ParseClass()
86 Result<void> ServiceParser::ParseConsole(std::vector<std::string>&& args) { in ParseConsole()
95 Result<void> ServiceParser::ParseCritical(std::vector<std::string>&& args) { in ParseCritical()
100 Result<void> ServiceParser::ParseDisabled(std::vector<std::string>&& args) { in ParseDisabled()
106 Result<void> ServiceParser::ParseEnterNamespace(std::vector<std::string>&& args) { in ParseEnterNamespace()
120 Result<void> ServiceParser::ParseGroup(std::vector<std::string>&& args) { in ParseGroup()
137 Result<void> ServiceParser::ParsePriority(std::vector<std::string>&& args) { in ParsePriority()
148 Result<void> ServiceParser::ParseInterface(std::vector<std::string>&& args) { in ParseInterface()
183 Result<void> ServiceParser::ParseIoprio(std::vector<std::string>&& args) { in ParseIoprio()
201 Result<void> ServiceParser::ParseKeycodes(std::vector<std::string>&& args) { in ParseKeycodes()
235 Result<void> ServiceParser::ParseOneshot(std::vector<std::string>&& args) { in ParseOneshot()
240 Result<void> ServiceParser::ParseOnrestart(std::vector<std::string>&& args) { in ParseOnrestart()
249 Result<void> ServiceParser::ParseNamespace(std::vector<std::string>&& args) { in ParseNamespace()
264 Result<void> ServiceParser::ParseOomScoreAdjust(std::vector<std::string>&& args) { in ParseOomScoreAdjust()
273 Result<void> ServiceParser::ParseOverride(std::vector<std::string>&& args) { in ParseOverride()
278 Result<void> ServiceParser::ParseMemcgSwappiness(std::vector<std::string>&& args) { in ParseMemcgSwappiness()
285 Result<void> ServiceParser::ParseMemcgLimitInBytes(std::vector<std::string>&& args) { in ParseMemcgLimitInBytes()
292 Result<void> ServiceParser::ParseMemcgLimitPercent(std::vector<std::string>&& args) { in ParseMemcgLimitPercent()
299 Result<void> ServiceParser::ParseMemcgLimitProperty(std::vector<std::string>&& args) { in ParseMemcgLimitProperty()
304 Result<void> ServiceParser::ParseMemcgSoftLimitInBytes(std::vector<std::string>&& args) { in ParseMemcgSoftLimitInBytes()
311 Result<void> ServiceParser::ParseProcessRlimit(std::vector<std::string>&& args) { in ParseProcessRlimit()
319 Result<void> ServiceParser::ParseRebootOnFailure(std::vector<std::string>&& args) { in ParseRebootOnFailure()
331 Result<void> ServiceParser::ParseRestartPeriod(std::vector<std::string>&& args) { in ParseRestartPeriod()
340 Result<void> ServiceParser::ParseSeclabel(std::vector<std::string>&& args) { in ParseSeclabel()
345 Result<void> ServiceParser::ParseSigstop(std::vector<std::string>&& args) { in ParseSigstop()
350 Result<void> ServiceParser::ParseSetenv(std::vector<std::string>&& args) { in ParseSetenv()
355 Result<void> ServiceParser::ParseShutdown(std::vector<std::string>&& args) { in ParseShutdown()
363 Result<void> ServiceParser::ParseTaskProfiles(std::vector<std::string>&& args) { in ParseTaskProfiles()
369 Result<void> ServiceParser::ParseTimeoutPeriod(std::vector<std::string>&& args) { in ParseTimeoutPeriod()
379 Result<void> ServiceParser::ParseSocket(std::vector<std::string>&& args) { in ParseSocket()
444 Result<void> ServiceParser::ParseStdioToKmsg(std::vector<std::string>&& args) { in ParseStdioToKmsg()
453 Result<void> ServiceParser::ParseFile(std::vector<std::string>&& args) { in ParseFile()
482 Result<void> ServiceParser::ParseUser(std::vector<std::string>&& args) { in ParseUser()
491 Result<void> ServiceParser::ParseWritepid(std::vector<std::string>&& args) { in ParseWritepid()
497 Result<void> ServiceParser::ParseUpdatable(std::vector<std::string>&& args) { in ParseUpdatable()
502 const KeywordMap<ServiceParser::OptionParser>& ServiceParser::GetParserMap() const { in GetParserMap()
505 static const KeywordMap<ServiceParser::OptionParser> parser_map = { in GetParserMap()
506 {"capabilities", {0, kMax, &ServiceParser::ParseCapabilities}}, in GetParserMap()
507 {"class", {1, kMax, &ServiceParser::ParseClass}}, in GetParserMap()
508 {"console", {0, 1, &ServiceParser::ParseConsole}}, in GetParserMap()
509 {"critical", {0, 0, &ServiceParser::ParseCritical}}, in GetParserMap()
510 {"disabled", {0, 0, &ServiceParser::ParseDisabled}}, in GetParserMap()
511 {"enter_namespace", {2, 2, &ServiceParser::ParseEnterNamespace}}, in GetParserMap()
512 {"file", {2, 2, &ServiceParser::ParseFile}}, in GetParserMap()
513 {"group", {1, NR_SVC_SUPP_GIDS + 1, &ServiceParser::ParseGroup}}, in GetParserMap()
514 {"interface", {2, 2, &ServiceParser::ParseInterface}}, in GetParserMap()
515 {"ioprio", {2, 2, &ServiceParser::ParseIoprio}}, in GetParserMap()
516 {"keycodes", {1, kMax, &ServiceParser::ParseKeycodes}}, in GetParserMap()
517 {"memcg.limit_in_bytes", {1, 1, &ServiceParser::ParseMemcgLimitInBytes}}, in GetParserMap()
518 {"memcg.limit_percent", {1, 1, &ServiceParser::ParseMemcgLimitPercent}}, in GetParserMap()
519 {"memcg.limit_property", {1, 1, &ServiceParser::ParseMemcgLimitProperty}}, in GetParserMap()
521 {1, 1, &ServiceParser::ParseMemcgSoftLimitInBytes}}, in GetParserMap()
522 {"memcg.swappiness", {1, 1, &ServiceParser::ParseMemcgSwappiness}}, in GetParserMap()
523 {"namespace", {1, 2, &ServiceParser::ParseNamespace}}, in GetParserMap()
524 {"oneshot", {0, 0, &ServiceParser::ParseOneshot}}, in GetParserMap()
525 {"onrestart", {1, kMax, &ServiceParser::ParseOnrestart}}, in GetParserMap()
526 {"oom_score_adjust", {1, 1, &ServiceParser::ParseOomScoreAdjust}}, in GetParserMap()
527 {"override", {0, 0, &ServiceParser::ParseOverride}}, in GetParserMap()
528 {"priority", {1, 1, &ServiceParser::ParsePriority}}, in GetParserMap()
529 {"reboot_on_failure", {1, 1, &ServiceParser::ParseRebootOnFailure}}, in GetParserMap()
530 {"restart_period", {1, 1, &ServiceParser::ParseRestartPeriod}}, in GetParserMap()
531 {"rlimit", {3, 3, &ServiceParser::ParseProcessRlimit}}, in GetParserMap()
532 {"seclabel", {1, 1, &ServiceParser::ParseSeclabel}}, in GetParserMap()
533 {"setenv", {2, 2, &ServiceParser::ParseSetenv}}, in GetParserMap()
534 {"shutdown", {1, 1, &ServiceParser::ParseShutdown}}, in GetParserMap()
535 {"sigstop", {0, 0, &ServiceParser::ParseSigstop}}, in GetParserMap()
536 {"socket", {3, 6, &ServiceParser::ParseSocket}}, in GetParserMap()
537 {"stdio_to_kmsg", {0, 0, &ServiceParser::ParseStdioToKmsg}}, in GetParserMap()
538 {"task_profiles", {1, kMax, &ServiceParser::ParseTaskProfiles}}, in GetParserMap()
539 {"timeout_period", {1, 1, &ServiceParser::ParseTimeoutPeriod}}, in GetParserMap()
540 {"updatable", {0, 0, &ServiceParser::ParseUpdatable}}, in GetParserMap()
541 {"user", {1, 1, &ServiceParser::ParseUser}}, in GetParserMap()
542 {"writepid", {1, kMax, &ServiceParser::ParseWritepid}}, in GetParserMap()
548 Result<void> ServiceParser::ParseSection(std::vector<std::string>&& args, in ParseSection()
583 Result<void> ServiceParser::ParseLineSection(std::vector<std::string>&& args, int line) { in ParseLineSection()
595 Result<void> ServiceParser::EndSection() { in EndSection()
636 bool ServiceParser::IsValidName(const std::string& name) const { in IsValidName()