fhq-server
v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
|
#include <employ_orchestra.h>
Public Member Functions | |
EmployOrchestra () | |
virtual bool | init () override |
virtual bool | deinit () override |
bool | initConnection () |
bool | create_container (const std::string &sName, std::string &sError) |
bool | create_service (const ServiceConfig &serviceReq, std::string &sError) |
bool | create_service (const nlohmann::json &jsonConfig, std::string &sError) |
bool | check_response (const nlohmann::json &jsonResponse, std::string &sError) |
bool | find_container (const std::string &sName, LXDContainer *&pContainer) |
bool | find_service (const std::string &sName, ServiceLXD *&pService) |
bool | remove_container (const std::string &sName, std::string &sError) |
bool | get_all_profiles (std::vector< std::string > &vecProfiles, std::string &sError) |
bool | find_profile (const std::string &sName, std::string &sError) |
bool | send_post_request_file (const std::string &sUrl, const std::string &sFile, std::string &sResponse, std::string &sError) |
bool | send_post_request (const std::string &sUrl, const nlohmann::json &jsonData, nlohmann::json &jsonResponse, std::string &sError) |
bool | send_patch_request (const std::string &sUrl, const nlohmann::json &jsonData, nlohmann::json &jsonResponse, std::string &sError) |
bool | send_put_request (const std::string &sUrl, const nlohmann::json &jsonData, nlohmann::json &jsonResponse, std::string &sError) |
bool | send_get_request (const std::string &sUrl, nlohmann::json &jsonResponse, std::string &sError) |
bool | send_get_request (const std::string &sUrl, std::string &sResponse, std::string &sError) |
bool | send_get_request_raw (const std::string &sUrl, std::string &sResponse, std::string &sError) |
bool | send_delete_request (const std::string &sUrl, nlohmann::json &jsonResponse, std::string &sError) |
std::list< std::string > | registry_names () |
std::string | lastError () |
![]() | |
WsjcppEmployBase (const std::string &sName, const std::vector< std::string > &vLoadAfter) | |
virtual | ~WsjcppEmployBase () |
const std::vector< std::string > & | loadAfter () |
Static Public Member Functions | |
static std::string | name () |
Private Member Functions | |
bool | pull_container_names () |
Private Attributes | |
std::map< std::string, LXDContainer * > | m_mapContainers |
std::map< std::string, ServiceLXD * > | m_mapServices |
std::string | m_sPathDirLxcSSL |
std::string | m_sLxdAddress |
std::string | m_sLastError |
std::string | TAG |
bool | m_bTrusted |
EmployOrchestra::EmployOrchestra | ( | ) |
bool EmployOrchestra::check_response | ( | const nlohmann::json & | jsonResponse, |
std::string & | sError | ||
) |
bool EmployOrchestra::create_container | ( | const std::string & | sName, |
std::string & | sError | ||
) |
bool EmployOrchestra::create_service | ( | const ServiceConfig & | serviceReq, |
std::string & | sError | ||
) |
bool EmployOrchestra::create_service | ( | const nlohmann::json & | jsonConfig, |
std::string & | sError | ||
) |
|
overridevirtual |
Implements WsjcppEmployBase.
bool EmployOrchestra::find_container | ( | const std::string & | sName, |
LXDContainer *& | pContainer | ||
) |
bool EmployOrchestra::find_profile | ( | const std::string & | sName, |
std::string & | sError | ||
) |
bool EmployOrchestra::find_service | ( | const std::string & | sName, |
ServiceLXD *& | pService | ||
) |
bool EmployOrchestra::get_all_profiles | ( | std::vector< std::string > & | vecProfiles, |
std::string & | sError | ||
) |
|
overridevirtual |
Implements WsjcppEmployBase.
bool EmployOrchestra::initConnection | ( | ) |
std::string EmployOrchestra::lastError | ( | ) |
|
inlinestatic |
|
private |
std::list< std::string > EmployOrchestra::registry_names | ( | ) |
bool EmployOrchestra::remove_container | ( | const std::string & | sName, |
std::string & | sError | ||
) |
bool EmployOrchestra::send_delete_request | ( | const std::string & | sUrl, |
nlohmann::json & | jsonResponse, | ||
std::string & | sError | ||
) |
bool EmployOrchestra::send_get_request | ( | const std::string & | sUrl, |
nlohmann::json & | jsonResponse, | ||
std::string & | sError | ||
) |
bool EmployOrchestra::send_get_request | ( | const std::string & | sUrl, |
std::string & | sResponse, | ||
std::string & | sError | ||
) |
bool EmployOrchestra::send_get_request_raw | ( | const std::string & | sUrl, |
std::string & | sResponse, | ||
std::string & | sError | ||
) |
bool EmployOrchestra::send_patch_request | ( | const std::string & | sUrl, |
const nlohmann::json & | jsonData, | ||
nlohmann::json & | jsonResponse, | ||
std::string & | sError | ||
) |
bool EmployOrchestra::send_post_request | ( | const std::string & | sUrl, |
const nlohmann::json & | jsonData, | ||
nlohmann::json & | jsonResponse, | ||
std::string & | sError | ||
) |
bool EmployOrchestra::send_post_request_file | ( | const std::string & | sUrl, |
const std::string & | sFile, | ||
std::string & | sResponse, | ||
std::string & | sError | ||
) |
bool EmployOrchestra::send_put_request | ( | const std::string & | sUrl, |
const nlohmann::json & | jsonData, | ||
nlohmann::json & | jsonResponse, | ||
std::string & | sError | ||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |