ADD: added function to podcontroller to get number of childpods

This commit is contained in:
Henry Winkel
2023-12-21 09:15:33 +01:00
parent 05ca44efe7
commit d1024de907
2 changed files with 14 additions and 1 deletions

View File

@@ -1,7 +1,9 @@
#pragma once
#include "kubecontrol/PodInfo.hpp"
#include <cstddef>
#include <kubecontrol/KubePod.hpp>
#include <memory>
#include <mutex>
#include <string>
#include <vector>
@@ -21,6 +23,7 @@ namespace kubecontrol
std::string getPodsInfo();
std::string getInfoForOwnPod();
std::string getInfoForPod(std::string Label);
size_t getListOfChildPods();
void checkPodsHierarchy();
@@ -43,6 +46,7 @@ namespace kubecontrol
std::shared_ptr<PodInfo> getPodInfo(std::string uuid);
std::vector<std::shared_ptr<PodInfo>> podsInfoList_;
mutable std::mutex mx_;
};
} // namespace ku