ADD: beautified the class and removed unnecessary class

This commit is contained in:
hwinkel
2024-03-15 10:58:56 +01:00
parent ada77d0e45
commit d265cb67f0
13 changed files with 186 additions and 440 deletions

View File

@@ -8,15 +8,17 @@ namespace kubecontrol
{
enum PullPolicy: uint32_t
enum PullPolicy: uint32_t
{
ALWAYS,
IFNOTPRESENT,
NEVER
};
inline std::string toString(const PullPolicy &kind)
/**
* @brief translate PullPolicy enum to string
*/
inline std::string toString(const PullPolicy &kind)
{
switch (kind)
{
@@ -29,7 +31,10 @@ namespace kubecontrol
class Utils
{
public:
public:
/**
* @brief lowercase a string
*/
static std::string to_lower(std::string);
};