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()
133 Result<void> ServiceParser::ParseDisabled(std::vector<std::string>&& args) { in ParseDisabled()
139 Result<void> ServiceParser::ParseEnterNamespace(std::vector<std::string>&& args) { in ParseEnterNamespace()
153 Result<void> ServiceParser::ParseGroup(std::vector<std::string>&& args) { in ParseGroup()
170 Result<void> ServiceParser::ParsePriority(std::vector<std::string>&& args) { in ParsePriority()
181 Result<void> ServiceParser::ParseInterface(std::vector<std::string>&& args) { in ParseInterface()
216 Result<void> ServiceParser::ParseIoprio(std::vector<std::string>&& args) { in ParseIoprio()
234 Result<void> ServiceParser::ParseKeycodes(std::vector<std::string>&& args) { in ParseKeycodes()
268 Result<void> ServiceParser::ParseOneshot(std::vector<std::string>&& args) { in ParseOneshot()
273 Result<void> ServiceParser::ParseOnrestart(std::vector<std::string>&& args) { in ParseOnrestart()
282 Result<void> ServiceParser::ParseNamespace(std::vector<std::string>&& args) { in ParseNamespace()
297 Result<void> ServiceParser::ParseOomScoreAdjust(std::vector<std::string>&& args) { in ParseOomScoreAdjust()
306 Result<void> ServiceParser::ParseOverride(std::vector<std::string>&& args) { in ParseOverride()
311 Result<void> ServiceParser::ParseMemcgSwappiness(std::vector<std::string>&& args) { in ParseMemcgSwappiness()
318 Result<void> ServiceParser::ParseMemcgLimitInBytes(std::vector<std::string>&& args) { in ParseMemcgLimitInBytes()
325 Result<void> ServiceParser::ParseMemcgLimitPercent(std::vector<std::string>&& args) { in ParseMemcgLimitPercent()
332 Result<void> ServiceParser::ParseMemcgLimitProperty(std::vector<std::string>&& args) { in ParseMemcgLimitProperty()
337 Result<void> ServiceParser::ParseMemcgSoftLimitInBytes(std::vector<std::string>&& args) { in ParseMemcgSoftLimitInBytes()
344 Result<void> ServiceParser::ParseProcessRlimit(std::vector<std::string>&& args) { in ParseProcessRlimit()
352 Result<void> ServiceParser::ParseRebootOnFailure(std::vector<std::string>&& args) { in ParseRebootOnFailure()
364 Result<void> ServiceParser::ParseRestartPeriod(std::vector<std::string>&& args) { in ParseRestartPeriod()
373 Result<void> ServiceParser::ParseSeclabel(std::vector<std::string>&& args) { in ParseSeclabel()
378 Result<void> ServiceParser::ParseSigstop(std::vector<std::string>&& args) { in ParseSigstop()
383 Result<void> ServiceParser::ParseSetenv(std::vector<std::string>&& args) { in ParseSetenv()
388 Result<void> ServiceParser::ParseShutdown(std::vector<std::string>&& args) { in ParseShutdown()
396 Result<void> ServiceParser::ParseTaskProfiles(std::vector<std::string>&& args) { in ParseTaskProfiles()
402 Result<void> ServiceParser::ParseTimeoutPeriod(std::vector<std::string>&& args) { in ParseTimeoutPeriod()
412 Result<void> ServiceParser::ParseSocket(std::vector<std::string>&& args) { in ParseSocket()
477 Result<void> ServiceParser::ParseStdioToKmsg(std::vector<std::string>&& args) { in ParseStdioToKmsg()
486 Result<void> ServiceParser::ParseFile(std::vector<std::string>&& args) { in ParseFile()
515 Result<void> ServiceParser::ParseUser(std::vector<std::string>&& args) { in ParseUser()
524 Result<void> ServiceParser::ParseWritepid(std::vector<std::string>&& args) { in ParseWritepid()
530 Result<void> ServiceParser::ParseUpdatable(std::vector<std::string>&& args) { in ParseUpdatable()
535 const KeywordMap<ServiceParser::OptionParser>& ServiceParser::GetParserMap() const { in GetParserMap()
538 static const KeywordMap<ServiceParser::OptionParser> parser_map = { in GetParserMap()
539 {"capabilities", {0, kMax, &ServiceParser::ParseCapabilities}}, in GetParserMap()
540 {"class", {1, kMax, &ServiceParser::ParseClass}}, in GetParserMap()
541 {"console", {0, 1, &ServiceParser::ParseConsole}}, in GetParserMap()
542 {"critical", {0, 2, &ServiceParser::ParseCritical}}, in GetParserMap()
543 {"disabled", {0, 0, &ServiceParser::ParseDisabled}}, in GetParserMap()
544 {"enter_namespace", {2, 2, &ServiceParser::ParseEnterNamespace}}, in GetParserMap()
545 {"file", {2, 2, &ServiceParser::ParseFile}}, in GetParserMap()
546 {"group", {1, NR_SVC_SUPP_GIDS + 1, &ServiceParser::ParseGroup}}, in GetParserMap()
547 {"interface", {2, 2, &ServiceParser::ParseInterface}}, in GetParserMap()
548 {"ioprio", {2, 2, &ServiceParser::ParseIoprio}}, in GetParserMap()
549 {"keycodes", {1, kMax, &ServiceParser::ParseKeycodes}}, in GetParserMap()
550 {"memcg.limit_in_bytes", {1, 1, &ServiceParser::ParseMemcgLimitInBytes}}, in GetParserMap()
551 {"memcg.limit_percent", {1, 1, &ServiceParser::ParseMemcgLimitPercent}}, in GetParserMap()
552 {"memcg.limit_property", {1, 1, &ServiceParser::ParseMemcgLimitProperty}}, in GetParserMap()
554 {1, 1, &ServiceParser::ParseMemcgSoftLimitInBytes}}, in GetParserMap()
555 {"memcg.swappiness", {1, 1, &ServiceParser::ParseMemcgSwappiness}}, in GetParserMap()
556 {"namespace", {1, 2, &ServiceParser::ParseNamespace}}, in GetParserMap()
557 {"oneshot", {0, 0, &ServiceParser::ParseOneshot}}, in GetParserMap()
558 {"onrestart", {1, kMax, &ServiceParser::ParseOnrestart}}, in GetParserMap()
559 {"oom_score_adjust", {1, 1, &ServiceParser::ParseOomScoreAdjust}}, in GetParserMap()
560 {"override", {0, 0, &ServiceParser::ParseOverride}}, in GetParserMap()
561 {"priority", {1, 1, &ServiceParser::ParsePriority}}, in GetParserMap()
562 {"reboot_on_failure", {1, 1, &ServiceParser::ParseRebootOnFailure}}, in GetParserMap()
563 {"restart_period", {1, 1, &ServiceParser::ParseRestartPeriod}}, in GetParserMap()
564 {"rlimit", {3, 3, &ServiceParser::ParseProcessRlimit}}, in GetParserMap()
565 {"seclabel", {1, 1, &ServiceParser::ParseSeclabel}}, in GetParserMap()
566 {"setenv", {2, 2, &ServiceParser::ParseSetenv}}, in GetParserMap()
567 {"shutdown", {1, 1, &ServiceParser::ParseShutdown}}, in GetParserMap()
568 {"sigstop", {0, 0, &ServiceParser::ParseSigstop}}, in GetParserMap()
569 {"socket", {3, 6, &ServiceParser::ParseSocket}}, in GetParserMap()
570 {"stdio_to_kmsg", {0, 0, &ServiceParser::ParseStdioToKmsg}}, in GetParserMap()
571 {"task_profiles", {1, kMax, &ServiceParser::ParseTaskProfiles}}, in GetParserMap()
572 {"timeout_period", {1, 1, &ServiceParser::ParseTimeoutPeriod}}, in GetParserMap()
573 {"updatable", {0, 0, &ServiceParser::ParseUpdatable}}, in GetParserMap()
574 {"user", {1, 1, &ServiceParser::ParseUser}}, in GetParserMap()
575 {"writepid", {1, kMax, &ServiceParser::ParseWritepid}}, in GetParserMap()
581 Result<void> ServiceParser::ParseSection(std::vector<std::string>&& args, in ParseSection()
616 Result<void> ServiceParser::ParseLineSection(std::vector<std::string>&& args, int line) { in ParseLineSection()
628 Result<void> ServiceParser::EndSection() { in EndSection()
677 bool ServiceParser::IsValidName(const std::string& name) const { in IsValidName()