ADD: added function to podcontroller to get number of childpods
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user