ADD: added guid usage to identify a pod
This commit is contained in:
@@ -20,6 +20,8 @@ namespace kubecontrol
|
||||
{
|
||||
public:
|
||||
KubePod(std::string Label, std::string Uuid, std::string ContainerImage);
|
||||
std::string getUUID();
|
||||
std::string getLabel();
|
||||
|
||||
void setEnvironmentVar(std::string key, std::string val);
|
||||
std::map<std::string, std::string> GetEnvironmentVars();
|
||||
|
||||
24
include/kubecontrol/PodController.hpp
Normal file
24
include/kubecontrol/PodController.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include <kubecontrol/KubePod.hpp>
|
||||
|
||||
namespace kubecontrol
|
||||
{
|
||||
class PodController
|
||||
{
|
||||
public:
|
||||
PodController(std::string pathToKubectlConfig);
|
||||
|
||||
std::string getServerAddress();
|
||||
|
||||
void startPod(KubePod Pod);
|
||||
void stopAllPods();
|
||||
|
||||
private:
|
||||
std::vector<KubePod> PodList;
|
||||
|
||||
std::string BearerToken_;
|
||||
std::string ServerAddress_;
|
||||
std::string ApiCall_;
|
||||
|
||||
};
|
||||
} // namespace ku
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
#define MAX_FILE_LENGTH 20000
|
||||
#define MAX_FILE_LENGTH 200000
|
||||
|
||||
class WriterMemoryClass
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user