rules

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRuleTypeNotFound   = errors.New("rule type not found")
	ErrRuleTargetNotFound = errors.New("rule target not found")
)

Functions

This section is empty.

Types

type Rule

type Rule struct {
	Type    string
	Payload string
	Target  string
}

func NewRule

func NewRule(text, name string) *Rule

func (*Rule) String

func (r *Rule) String() string

func (*Rule) Validate

func (r *Rule) Validate() error

type RuleType

type RuleType int
const (
	Domain RuleType = iota
	DomainSuffix
	DomainKeyword
	GEOIP
	IPCIDR
	SrcIPCIDR
	SrcPort
	DstPort
	InboundPort
	Process
	ProcessPath
	IPSet
	MATCH
	Unknown
)

func ParseRuleType

func ParseRuleType(ruleType string) RuleType

func (RuleType) String

func (rt RuleType) String() string

Jump to

Keyboard shortcuts

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