Support local managment for embedded agent on nginx

This commit is contained in:
davidga
2022-11-13 13:29:35 +02:00
parent 8b01396eca
commit 1b4b7d17e0
406 changed files with 37980 additions and 35 deletions

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef __I_K8S_POLICY_GEN_H__
#define __I_K8S_POLICY_GEN_H__
#ifndef __I_LOCAL_POLICY_MGMT_GEN_H__
#define __I_LOCAL_POLICY_MGMT_GEN_H__
class I_K8S_Policy_Gen
{
@@ -24,4 +24,4 @@ protected:
~I_K8S_Policy_Gen() {}
};
#endif //__I_K8S_POLICY_GEN_H__
#endif //__I_LOCAL_POLICY_MGMT_GEN_H__

View File

@@ -11,26 +11,26 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef __K8S_POLICY_GEN_H__
#define __K8S_POLICY_GEN_H__
#ifndef __LOCAL_POLICY_MGMT_GEN_H__
#define __LOCAL_POLICY_MGMT_GEN_H__
#include "config.h"
#include "component.h"
#include "i_mainloop.h"
#include "i_environment.h"
#include "i_k8s_policy_gen.h"
#include "i_local_policy_mgmt_gen.h"
class K8sPolicyGenerator
class LocalPolicyMgmtGenerator
:
public Component,
Singleton::Provide<I_K8S_Policy_Gen>,
Singleton::Provide<I_LocalPolicyMgmtGen>,
Singleton::Consume<Config::I_Config>,
Singleton::Consume<I_MainLoop>,
Singleton::Consume<I_Environment>
{
public:
K8sPolicyGenerator();
~K8sPolicyGenerator();
LocalPolicyMgmtGenerator();
~LocalPolicyMgmtGenerator();
void preload() override;
@@ -41,4 +41,4 @@ private:
std::unique_ptr<Impl> pimpl;
};
#endif // __K8S_POLICY_GEN_H__
#endif // __LOCAL_POLICY_MGMT_GEN_H__