ADD: added name to KubePod and added the possibility to pass a shared pointer to start a pod
This commit is contained in:
@@ -45,12 +45,30 @@ namespace kubecontrol
|
||||
|
||||
void setComponent(std::string component);
|
||||
std::string getComponent();
|
||||
|
||||
/**
|
||||
* @brief sets the name of the pod
|
||||
* @param string - term to be displayed
|
||||
*/
|
||||
void setName(std::string name);
|
||||
|
||||
/**
|
||||
* @brief return the name of the pod
|
||||
* @return std::string
|
||||
*/
|
||||
std::string getName();
|
||||
|
||||
|
||||
int start(KubernetesAPI APIInterface,bool WaitTillRunning = true);
|
||||
int stop(KubernetesAPI APIInterface);
|
||||
int stopChilds(KubernetesAPI APIInterface);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*@brief updates the infos for a pod from the give Kubernetes API
|
||||
*@param KubernetesAPI - object of KubernetesAPI wich holds all necessary to perfom requests
|
||||
*@return returns 1 on failure
|
||||
*/
|
||||
int updateInfoForThisPod(KubernetesAPI APIInterface);
|
||||
|
||||
std::vector<std::string> getUUIDsForChildPods(KubernetesAPI APIInterface);
|
||||
@@ -62,6 +80,7 @@ namespace kubecontrol
|
||||
|
||||
std::string Owner_;
|
||||
std::string Uuid_;
|
||||
std::string Name_;
|
||||
std::string Component_;
|
||||
std::string ContainerImage_;
|
||||
std::string ContainerRegistry_;
|
||||
|
||||
Reference in New Issue
Block a user