Searched refs:ServiceDescriptor (Results 1 – 12 of 12) sorted by relevance
29 ServiceDescriptor::Error GetSystemLogs(ServiceDescriptor::OutputConsumer* out);33 ServiceDescriptor::Error GetServiceLogs(const std::string& svc,34 ServiceDescriptor::OutputConsumer* out);37 std::optional<ServiceDescriptor> mSystemLogsService;38 std::unordered_map<std::string, ServiceDescriptor> mServices;
26 static ServiceDescriptor kDmesgService("dmesg", "/bin/dmesg -kuPT");28 static ServiceDescriptor SystemdService(const std::string& name) { in SystemdService()29 return ServiceDescriptor{name, std::string("/bin/journalctl --no-pager -t ") + name}; in SystemdService()33 static const std::vector<ServiceDescriptor> kAvailableServices {53 std::optional<ServiceDescriptor> GetSystemLogsService() const override { return kDmesgService; } in GetSystemLogsService()55 std::vector<ServiceDescriptor> GetServices() const override { return kAvailableServices; } in GetServices()
30 ServiceDescriptor::Error DumpstateServer::GetSystemLogs(ServiceDescriptor::OutputConsumer* out) { in GetSystemLogs()47 ServiceDescriptor::Error DumpstateServer::GetServiceLogs(const std::string& svc, in GetServiceLogs()48 ServiceDescriptor::OutputConsumer* out) { in GetServiceLogs()
26 ServiceDescriptor::ServiceDescriptor(std::string name, std::string cmd) in ServiceDescriptor() function in ServiceDescriptor29 std::optional<std::string> ServiceDescriptor::GetOutput(OutputConsumer* consumer) const { in GetOutput()
26 virtual std::optional<ServiceDescriptor> GetSystemLogsService() const;27 virtual std::vector<ServiceDescriptor> GetServices() const;
19 std::optional<ServiceDescriptor> ServiceSupplier::GetSystemLogsService() const { in GetSystemLogsService()23 std::vector<ServiceDescriptor> ServiceSupplier::GetServices() const { in GetServices()
22 class ServiceDescriptor {24 ServiceDescriptor(std::string name, std::string cmd);
26 struct GrpcServiceOutputConsumer : public ServiceDescriptor::OutputConsumer {45 static ::grpc::Status toGRpcStatus(const ServiceDescriptor::Error& err) { in toGRpcStatus()
29 std::optional<ServiceDescriptor> GetSystemLogsService() const override;30 std::vector<ServiceDescriptor> GetServices() const override;35 std::optional<ServiceDescriptor> mSystemLogs;36 std::vector<ServiceDescriptor> mServices;
22 static std::optional<ServiceDescriptor> serviceFromXml(const Service& svc) { in serviceFromXml()24 return ServiceDescriptor{svc.getName(), svc.getCommand()}; in serviceFromXml()66 std::optional<ServiceDescriptor> XmlServiceSupplier::GetSystemLogsService() const { in GetSystemLogsService()70 std::vector<ServiceDescriptor> XmlServiceSupplier::GetServices() const { in GetServices()
28 static ServiceDescriptor MakePrinterService(const std::string& msg) { in MakePrinterService()29 return ServiceDescriptor{msg, "/bin/echo -n \"" + msg + "\""}; in MakePrinterService()32 class AccumulatorConsumer : public ServiceDescriptor::OutputConsumer {
38 ${dumpstate_SRC_ROOT}/ServiceDescriptor.cpp