ADD: add a simple working version of a pod controler class
This commit is contained in:
@@ -1,14 +1,25 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <yaml.h>
|
||||
#include <yaml-cpp/yaml.h>
|
||||
|
||||
namespace kubecontrol
|
||||
{
|
||||
class kubecontrol
|
||||
{
|
||||
|
||||
public:
|
||||
kubecontrol(std::string pathToKubectlConfig);
|
||||
void getPods();
|
||||
|
||||
void startPod();
|
||||
void deletePod(std::string uid);
|
||||
std::string createYAML();
|
||||
|
||||
|
||||
private:
|
||||
std::string BearerToken_;
|
||||
std::string ServerAddress_;
|
||||
std::string NameSpace_;
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user