30 lines
905 B
C++
30 lines
905 B
C++
#ifndef SERVICES_HPP
|
|
#define SERVICES_HPP
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <set>
|
|
|
|
namespace dropshell {
|
|
|
|
struct ServiceInfo {
|
|
std::string path;
|
|
std::string service_name;
|
|
std::string template_name;
|
|
std::string 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::set<std::string> get_used_commands(const std::string& server_name, const std::string& service_name);
|
|
|
|
// list all backups for a given server and service
|
|
std::vector<std::string> list_backups(const std::string& server_name, const std::string& service_name);
|
|
|
|
bool create_service(const std::string& server_name, const std::string& template_name, const std::string& service_name);
|
|
} // namespace dropshell
|
|
|
|
|
|
|
|
#endif
|