seclang

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDire

func RegisterDire(dire DireFromSecLang)

Types

type Dire

type Dire interface {
	Execute(*modsecurity.Engine) error
}

type DireFromSecLang

type DireFromSecLang interface {
	Token() int
	FromSecLang(parser.Directive) (Dire, error)
}

type DireRequestBodyAccess

type DireRequestBodyAccess struct {
	// contains filtered or unexported fields
}

DireRequestBodyAccess

func (*DireRequestBodyAccess) Execute

func (*DireRequestBodyAccess) FromSecLang

func (r *DireRequestBodyAccess) FromSecLang(d parser.Directive) (Dire, error)

func (*DireRequestBodyAccess) Token

func (*DireRequestBodyAccess) Token() int

type DireResponseBodyAccess

type DireResponseBodyAccess struct {
	// contains filtered or unexported fields
}

DireResponseBodyAccess

func (*DireResponseBodyAccess) Execute

func (*DireResponseBodyAccess) FromSecLang

func (r *DireResponseBodyAccess) FromSecLang(d parser.Directive) (Dire, error)

func (*DireResponseBodyAccess) Token

func (*DireResponseBodyAccess) Token() int

type DireRule

type DireRule struct {
	// contains filtered or unexported fields
}

DireRequestBodyAccess

func (*DireRule) Execute

func (r *DireRule) Execute(e *modsecurity.Engine) error

func (*DireRule) FromSecLang

func (r *DireRule) FromSecLang(d parser.Directive) (Dire, error)

func (*DireRule) Token

func (*DireRule) Token() int

type DireRuleEngine

type DireRuleEngine struct {
	// contains filtered or unexported fields
}

DireRuleEngine

func (*DireRuleEngine) Execute

func (r *DireRuleEngine) Execute(e *modsecurity.Engine) error

func (*DireRuleEngine) FromSecLang

func (r *DireRuleEngine) FromSecLang(d parser.Directive) (Dire, error)

func (*DireRuleEngine) Token

func (*DireRuleEngine) Token() int

type DireSet

type DireSet struct {
	// contains filtered or unexported fields
}

func NewDireSet

func NewDireSet() *DireSet

func NewDireSetFromSecLangString

func NewDireSetFromSecLangString(rules string) (*DireSet, error)

func (*DireSet) AddSecLangString

func (rs *DireSet) AddSecLangString(str string) error

func (*DireSet) Execute

func (rs *DireSet) Execute(e *modsecurity.Engine) error

type VariableFactory

type VariableFactory func(*parser.Variable) (modsecurity.Variable, error)

Directories

Path Synopsis
Seclang Parser.
Seclang Parser.

Jump to

Keyboard shortcuts

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