waf

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WAF_SWITCH_ON       = "on"
	WAF_SWITCH_OFF      = "off"
	WAF_SWITCH_WATCH    = "watch"
	MODSECURITY_SNIPPET = "nginx.ingress.kubernetes.io/modsecurity-snippet"
	MODSECURITY_ENABLE  = "nginx.ingress.kubernetes.io/enable-modsecurity"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	apipolicy.BasePolicy
}

func (Policy) CreateDefaultConfig

func (policy Policy) CreateDefaultConfig(ctx map[string]interface{}) apipolicy.PolicyDto

func (Policy) NeedSerialUpdate

func (policy Policy) NeedSerialUpdate() bool

func (Policy) ParseConfig

func (policy Policy) ParseConfig(dto apipolicy.PolicyDto, ctx map[string]interface{}) (apipolicy.PolicyConfig, error)

func (Policy) UnmarshalConfig

func (policy Policy) UnmarshalConfig(config []byte) (apipolicy.PolicyDto, error, string)

type PolicyDto

type PolicyDto struct {
	apipolicy.BaseDto
	WafEnable   string `json:"wafEnable"`
	RemoveRules string `json:"removeRules"`
}

func (PolicyDto) IsValidDto

func (dto PolicyDto) IsValidDto() (bool, string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL