#pragma once #include #include #include #include #include namespace kubecontrol { class Container { public: /** * @brief Construct a new Container object * * @param Owner * @param Uuid * @param ContainerImage */ Container(const std::string &Owner, const std::string &Uuid,const std::string &Image, const PullPolicy &policy, const std::string ®istry = "kmaster.ti.unibw-hamburg.de:30808"); /** * @brief adds env to container * * @param env */ void addEnv(const std::pair &env); /** * @brief add map of envs * * @param envs */ void addEnv(const std::map &envs); /** * @brief Get the Owner * * @return */ std::string getOwner() { return owner_;}; /** * @brief get the uuid * * @return */ std::string getUUID() { return uuid_;}; /** * @brief Get the Image * * @return */ std::string getImage() { return image_;}; YAML::Node toYAML(); private: std::string owner_; std::string uuid_; std::string image_; std::string registry_; PullPolicy pullPolicy_; std::map envs_; }; }