ADD: added podinfo with building a tree hierarchy for a pod

This commit is contained in:
Henry Winkel
2023-08-16 14:42:00 +02:00
parent 6c2f8f1eb6
commit 89465f06a5
8 changed files with 474 additions and 48 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "kubecontrol/PodInfo.hpp"
#include "nlohmann/json_fwd.hpp"
#include "yaml-cpp/node/node.h"
#include <map>
@@ -19,6 +20,7 @@
#include <vector>
namespace kubecontrol
{
class KubePod
@@ -49,8 +51,10 @@ namespace kubecontrol
std::string stop(std::string apiAddress,std::string token);
std::string getInfo(std::string apiAddress,std::string token);
PodInfo PodInfo;
private:
std::string Owner_;
std::string Uuid_;
@@ -69,5 +73,7 @@ namespace kubecontrol
std::string StopChilds(std::string apiAddress,std::string token,std::string uuid);
};
}