Support local managment for embedded agent on nginx

This commit is contained in:
davidga 2022-11-13 14:53:38 +02:00
parent 1b4b7d17e0
commit 8e65a39c27
2 changed files with 673 additions and 166 deletions

View File

@ -14,14 +14,18 @@
#ifndef __I_LOCAL_POLICY_MGMT_GEN_H__
#define __I_LOCAL_POLICY_MGMT_GEN_H__
class I_K8S_Policy_Gen
class I_LocalPolicyMgmtGen
{
public:
enum class LocalPolicyEnv { LINUX, K8S, COUNT };
virtual std::string parsePolicy(const std::string &policy_version) = 0;
virtual const std::string & getPolicyPath(void) const = 0;
virtual LocalPolicyEnv getEnvType() const = 0;
protected:
~I_K8S_Policy_Gen() {}
~I_LocalPolicyMgmtGen() {}
};
#endif //__I_LOCAL_POLICY_MGMT_GEN_H__