#pragma once #include "nlohmann/json_fwd.hpp" #include #include #include #include #include #include namespace kubecontrol { class PodInfo { public: PodInfo(); PodInfo(std::string response); void update(std::string response); std::string ToString(); nlohmann::json ToJson(); std::vector getRelatedPods(); std::string Uuid; std::string Image; std::string Ip; std::string Component; std::string Status; std::string PartOf; void addRelatedPods(std::string uuid); size_t relatedPodsSize(); private: std::vector relatedPods; }; // struct PodInfo // { // std::string Uuid; // std::string Image; // std::string Ip; // std::string Component; // std::string Status; // std::string PartOf; // std::vector>> relatedPods; // bool operator==(PodInfo const &rhs ) // { // if (Uuid == rhs.Uuid) { // return true; // } // return false; // } // }; }