mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 11:16:30 +03:00
Support local managment for embedded agent on nginx
This commit is contained in:
@@ -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__
|
@@ -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__
|
Reference in New Issue
Block a user