Seg fault!

This commit is contained in:
Your Name
2025-04-30 19:31:50 +12:00
parent 47d64a1a0d
commit 87ab33dce9
11 changed files with 84 additions and 89 deletions

View File

@ -4,20 +4,25 @@
#include <string>
#include <vector>
#include <set>
#include <map>
namespace dropshell {
struct ServiceInfo {
struct LocalServiceInfo {
std::string service_name;
std::string template_name;
std::string local_service_path;
std::string local_template_path;
};
std::vector<ServiceInfo> get_server_services_info(const std::string& server_name);
ServiceInfo get_service_info(const std::string& server_name, const std::string& service_name);
std::vector<LocalServiceInfo> get_server_services_info(const std::string& server_name);
LocalServiceInfo get_service_info(const std::string& server_name, const std::string& service_name);
std::set<std::string> get_used_commands(const std::string& server_name, const std::string& service_name);
// get all env vars for a given service
void get_all_service_env_vars(const std::string& server_name, const std::string& service_name, std::map<std::string, std::string> & all_env_vars);
// list all backups for a given service (across all servers)
std::set<std::string> list_backups(const std::string& server_name, const std::string& service_name);