ADD: added container class and adapted test
This commit is contained in:
@@ -1,22 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
#include <kubecontrol/KubePod.hpp>
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
namespace kubecontrol
|
||||
namespace kubecontrol
|
||||
{
|
||||
|
||||
|
||||
enum PullPolicy: uint32_t
|
||||
{
|
||||
ALWAYS,
|
||||
IFNOTPRESENT,
|
||||
NEVER
|
||||
};
|
||||
|
||||
|
||||
inline std::string toString(const PullPolicy &kind)
|
||||
{
|
||||
switch (kind)
|
||||
{
|
||||
case PullPolicy::ALWAYS: return "Always";
|
||||
case PullPolicy::IFNOTPRESENT: return "IfNotPresent";
|
||||
case PullPolicy::NEVER: return "Never";
|
||||
default: return "Always";
|
||||
}
|
||||
}
|
||||
|
||||
class Utils
|
||||
{
|
||||
public:
|
||||
static std::string to_lower(std::string);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user