waf

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAction

type AddAction actions.Action

func (*AddAction) RunGet

func (this *AddAction) RunGet(params struct{})

添加策略

func (*AddAction) RunPost

func (this *AddAction) RunPost(params struct {
	Name       string
	GroupCodes []string

	On bool

	BlockStatusCode string
	BlockBody       string
	BlockURL        string

	Must *actions.Must
})

保存提交

type DayAction

type DayAction actions.Action

func (*DayAction) Run

func (this *DayAction) Run(params struct {
	WafId    string
	Day      string
	LogType  string
	FromId   string
	Page     int
	Size     int
	SearchIP string
})

某天的日志

type DeleteAction

type DeleteAction actions.Action

func (*DeleteAction) RunPost

func (this *DeleteAction) RunPost(params struct {
	WafId string
})

删除

type DetailAction

type DetailAction actions.Action

func (*DetailAction) RunGet

func (this *DetailAction) RunGet(params struct {
	WafId string
})

详情

type ExportAction

type ExportAction actions.Action

func (*ExportAction) RunGet

func (this *ExportAction) RunGet(params struct {
	WafId string

	Export   bool
	GroupIds string
})

导出

type GroupAction

type GroupAction actions.Action

func (*GroupAction) RunGet

func (this *GroupAction) RunGet(params struct {
	WafId   string
	GroupId string
	Inbound bool
})

分组信息

type GroupAddAction

type GroupAddAction actions.Action

func (*GroupAddAction) RunGet

func (this *GroupAddAction) RunGet(params struct {
	WafId   string
	Inbound bool
})

添加分组

func (*GroupAddAction) RunPost

func (this *GroupAddAction) RunPost(params struct {
	WafId       string
	Name        string
	Description string
	On          bool
	Inbound     bool
	Must        *actions.Must
})

保存分组

type GroupDeleteAction

type GroupDeleteAction actions.Action

func (*GroupDeleteAction) RunPost

func (this *GroupDeleteAction) RunPost(params struct {
	WafId   string
	GroupId string
})

删除分组

type GroupMoveAction

type GroupMoveAction actions.Action

func (*GroupMoveAction) RunPost

func (this *GroupMoveAction) RunPost(params struct {
	WafId     string
	Inbound   bool
	FromIndex int
	ToIndex   int
})

移动分组

type GroupOffAction

type GroupOffAction actions.Action

func (*GroupOffAction) RunPost

func (this *GroupOffAction) RunPost(params struct {
	WafId   string
	GroupId string
})

停用分组

type GroupOnAction

type GroupOnAction actions.Action

func (*GroupOnAction) RunPost

func (this *GroupOnAction) RunPost(params struct {
	WafId   string
	GroupId string
})

启用分组

type GroupUpdateAction

type GroupUpdateAction actions.Action

func (*GroupUpdateAction) RunGet

func (this *GroupUpdateAction) RunGet(params struct {
	WafId   string
	GroupId string
})

修改分组

func (*GroupUpdateAction) RunPost

func (this *GroupUpdateAction) RunPost(params struct {
	WafId       string
	GroupId     string
	Name        string
	Description string
	On          bool
	Must        *actions.Must
})

保存修改

type Helper

type Helper struct {
}

func (*Helper) BeforeAction

func (this *Helper) BeforeAction(action *actions.ActionObject)

相关Helper

type HistoryAction

type HistoryAction actions.Action

func (*HistoryAction) RunGet

func (this *HistoryAction) RunGet(params struct {
	WafId string
})

type ImportAction

type ImportAction actions.Action

func (*ImportAction) RunGet

func (this *ImportAction) RunGet(params struct {
	WafId string
})

导入

func (*ImportAction) RunPost

func (this *ImportAction) RunPost(params struct {
	// step1
	File *actions.File

	// step2
	WafId         string
	GroupIds      []string
	OverwriteType bool
	OverwriteName bool

	Data string
	Step string

	Must *actions.Must
})

提交导入

type IndexAction

type IndexAction actions.Action

func (*IndexAction) RunGet

func (this *IndexAction) RunGet(params struct{})

策略列表

type MergeTemplateAction

type MergeTemplateAction actions.Action

func (*MergeTemplateAction) RunPost

func (this *MergeTemplateAction) RunPost(params struct {
	WafId string
})

从模版中更新数据

type RuleAddAction

type RuleAddAction actions.Action

func (*RuleAddAction) RunGet

func (this *RuleAddAction) RunGet(params struct {
	WafId   string
	GroupId string
})

func (*RuleAddAction) RunPost

func (this *RuleAddAction) RunPost(params struct {
	WafId   string
	GroupId string

	Name string

	RulePrefixes  []string
	RuleParams    []string
	RuleOperators []string
	RuleValues    []string
	RuleCases     []int
	RuleOptions   []string

	Connector string
	Action    string

	Test         bool
	TestPrefixes []string
	TestParams   []string
	TestValues   []string

	Must *actions.Must
})

提交测试或者保存

type RuleDeleteAction

type RuleDeleteAction actions.Action

func (*RuleDeleteAction) RunPost

func (this *RuleDeleteAction) RunPost(params struct {
	WafId   string
	GroupId string
	SetId   string
})

启用规则集

type RuleMoveAction

type RuleMoveAction actions.Action

func (*RuleMoveAction) RunPost

func (this *RuleMoveAction) RunPost(params struct {
	WafId     string
	GroupId   string
	FromIndex int
	ToIndex   int
})

移动规则集

type RuleOffAction

type RuleOffAction actions.Action

func (*RuleOffAction) RunPost

func (this *RuleOffAction) RunPost(params struct {
	WafId   string
	GroupId string
	SetId   string
})

停用规则集

type RuleOnAction

type RuleOnAction actions.Action

func (*RuleOnAction) RunPost

func (this *RuleOnAction) RunPost(params struct {
	WafId   string
	GroupId string
	SetId   string
})

启用规则集

type RuleUpdateAction

type RuleUpdateAction actions.Action

func (*RuleUpdateAction) RunGet

func (this *RuleUpdateAction) RunGet(params struct {
	WafId   string
	GroupId string
	SetId   string
})

修改规则集

func (*RuleUpdateAction) RunPost

func (this *RuleUpdateAction) RunPost(params struct {
	WafId   string
	GroupId string
	SetId   string

	Name string

	RulePrefixes  []string
	RuleParams    []string
	RuleOperators []string
	RuleValues    []string
	RuleCases     []int
	RuleOptions   []string

	Connector string
	Action    string

	Test         bool
	TestPrefixes []string
	TestParams   []string
	TestValues   []string

	Must *actions.Must
})

提交测试或者保存

type RulesAction

type RulesAction actions.Action

func (*RulesAction) RunGet

func (this *RulesAction) RunGet(params struct {
	Inbound bool
	WafId   string
})

规则

type TestAction

type TestAction actions.Action

func (*TestAction) RunGet

func (this *TestAction) RunGet(params struct {
	WafId   string
	Inbound bool
})

测试

func (*TestAction) RunPost

func (this *TestAction) RunPost(params struct {
	WafId   string
	Params  []string
	Values  []string
	Inbound bool
})

提交测试数据

type UpdateAction

type UpdateAction actions.Action

func (*UpdateAction) RunGet

func (this *UpdateAction) RunGet(params struct {
	WafId string
})

修改

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	WafId      string
	Name       string
	GroupCodes []string

	On bool

	BlockStatusCode string
	BlockBody       string
	BlockURL        string

	Must *actions.Must
})

保存修改

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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