ADD: added a podcontroller and test for the first basic usage
This commit is contained in:
@@ -28,9 +28,9 @@ namespace kubecontrol
|
||||
std::string* GetEnvironmentVar(std::string key);
|
||||
|
||||
std::string createYAML();
|
||||
nlohmann::json start(std::string apiAddress,std::string token);
|
||||
nlohmann::json stop(std::string apiAddress,std::string token);
|
||||
nlohmann::json getInfo(std::string apiAddress,std::string token);
|
||||
std::string start(std::string apiAddress,std::string token);
|
||||
std::string stop(std::string apiAddress,std::string token);
|
||||
std::string getInfo(std::string apiAddress,std::string token);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -11,10 +11,14 @@ namespace kubecontrol
|
||||
std::string getServerAddress();
|
||||
|
||||
void startPod(KubePod Pod);
|
||||
void stopPod(std::string Label);
|
||||
void stopAllPods();
|
||||
|
||||
std::string getPodsInfo();
|
||||
std::string getInfoForPod(std::string Label);
|
||||
|
||||
private:
|
||||
std::vector<KubePod> PodList;
|
||||
std::vector<KubePod> PodList_;
|
||||
|
||||
std::string BearerToken_;
|
||||
std::string ServerAddress_;
|
||||
|
||||
Reference in New Issue
Block a user