ADD: added Util class with the function to lowercase the vals for yaml and added support of setting args and command
This commit is contained in:
@@ -29,7 +29,14 @@ namespace kubecontrol
|
||||
|
||||
void setEnvironmentVar(std::string key, std::string val);
|
||||
std::map<std::string, std::string> GetEnvironmentVars();
|
||||
std::string* GetEnvironmentVar(std::string key);
|
||||
std::string GetEnvironmentVar(std::string key);
|
||||
|
||||
void setArgs(std::string args);
|
||||
std::vector<std::string> GetArgs();
|
||||
|
||||
void setCommand(std::string command);
|
||||
std::string getCommand();
|
||||
|
||||
|
||||
std::string createYAML();
|
||||
std::string start(std::string apiAddress,std::string token);
|
||||
@@ -45,7 +52,12 @@ namespace kubecontrol
|
||||
std::string ContainerRegistry_;
|
||||
std::string PathToYaml_;
|
||||
|
||||
std::string PodCommand_;
|
||||
|
||||
std::map<std::string, std::string> EnvirmonentVars_;
|
||||
std::vector<std::string> Args_;
|
||||
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
15
include/kubecontrol/Utils.hpp
Normal file
15
include/kubecontrol/Utils.hpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
namespace kubecontrol
|
||||
{
|
||||
class Utils
|
||||
{
|
||||
public:
|
||||
static std::string to_lower(std::string);
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user