Lines Matching refs:string
26 #include <string>
65 Service(const std::string& name, Subcontext* subcontext_for_restart_commands,
66 const std::vector<std::string>& args);
68 Service(const std::string& name, unsigned flags, uid_t uid, gid_t gid,
70 unsigned namespace_flags, const std::string& seclabel,
71 Subcontext* subcontext_for_restart_commands, const std::vector<std::string>& args);
73 static std::unique_ptr<Service> MakeTemporaryOneshotService(const std::vector<std::string>& args);
76 Result<Success> ParseLine(const std::vector<std::string>& args);
99 const std::string& name() const { return name_; }
100 const std::set<std::string>& classnames() const { return classnames_; }
109 const std::string& seclabel() const { return seclabel_; }
115 const std::set<std::string>& interfaces() const { return interfaces_; }
121 const std::vector<std::string>& args() const { return args_; }
124 using OptionParser = Result<Success> (Service::*)(const std::vector<std::string>& args);
130 void NotifyStateChange(const std::string& new_state) const;
137 Result<Success> ParseCapabilities(const std::vector<std::string>& args);
138 Result<Success> ParseClass(const std::vector<std::string>& args);
139 Result<Success> ParseConsole(const std::vector<std::string>& args);
140 Result<Success> ParseCritical(const std::vector<std::string>& args);
141 Result<Success> ParseDisabled(const std::vector<std::string>& args);
142 Result<Success> ParseEnterNamespace(const std::vector<std::string>& args);
143 Result<Success> ParseGroup(const std::vector<std::string>& args);
144 Result<Success> ParsePriority(const std::vector<std::string>& args);
145 Result<Success> ParseInterface(const std::vector<std::string>& args);
146 Result<Success> ParseIoprio(const std::vector<std::string>& args);
147 Result<Success> ParseKeycodes(const std::vector<std::string>& args);
148 Result<Success> ParseOneshot(const std::vector<std::string>& args);
149 Result<Success> ParseOnrestart(const std::vector<std::string>& args);
150 Result<Success> ParseOomScoreAdjust(const std::vector<std::string>& args);
151 Result<Success> ParseOverride(const std::vector<std::string>& args);
152 Result<Success> ParseMemcgLimitInBytes(const std::vector<std::string>& args);
153 Result<Success> ParseMemcgSoftLimitInBytes(const std::vector<std::string>& args);
154 Result<Success> ParseMemcgSwappiness(const std::vector<std::string>& args);
155 Result<Success> ParseNamespace(const std::vector<std::string>& args);
156 Result<Success> ParseProcessRlimit(const std::vector<std::string>& args);
157 Result<Success> ParseSeclabel(const std::vector<std::string>& args);
158 Result<Success> ParseSetenv(const std::vector<std::string>& args);
159 Result<Success> ParseShutdown(const std::vector<std::string>& args);
160 Result<Success> ParseSocket(const std::vector<std::string>& args);
161 Result<Success> ParseFile(const std::vector<std::string>& args);
162 Result<Success> ParseUser(const std::vector<std::string>& args);
163 Result<Success> ParseWritepid(const std::vector<std::string>& args);
166 Result<Success> AddDescriptor(const std::vector<std::string>& args);
171 std::string name_;
172 std::set<std::string> classnames_;
173 std::string console_;
187 std::vector<std::pair<int, std::string>> namespaces_to_enter_;
189 std::string seclabel_;
192 std::vector<std::pair<std::string, std::string>> environment_vars_;
196 std::vector<std::string> writepid_files_;
198 std::set<std::string> interfaces_; // e.g. some.package.foo@1.0::IBaz/instance-name
222 std::vector<std::string> args_;
264 Result<Success> ParseSection(std::vector<std::string>&& args, const std::string& filename,
266 Result<Success> ParseLineSection(std::vector<std::string>&& args, int line) override;
270 bool IsValidName(const std::string& name) const;