ipadmin

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowListAction

type AllowListAction struct {
	actionutils.ParentAction
}

func (*AllowListAction) Init

func (this *AllowListAction) Init()

func (*AllowListAction) RunGet

func (this *AllowListAction) RunGet(params struct {
	ServerId         int64
	FirewallPolicyId int64
})

type CountriesAction

type CountriesAction struct {
	actionutils.ParentAction
}

func (*CountriesAction) Init

func (this *CountriesAction) Init()

func (*CountriesAction) RunGet

func (this *CountriesAction) RunGet(params struct {
	FirewallPolicyId int64
	ServerId         int64
})

func (*CountriesAction) RunPost

func (this *CountriesAction) RunPost(params struct {
	FirewallPolicyId int64
	DenyCountryIds   []int64
	AllowCountryIds  []int64

	ExceptURLPatternsJSON []byte
	OnlyURLPatternsJSON   []byte

	Must *actions.Must
})

type DeleteIPAction

type DeleteIPAction struct {
	actionutils.ParentAction
}

func (*DeleteIPAction) RunPost

func (this *DeleteIPAction) RunPost(params struct {
	FirewallPolicyId int64
	ItemId           int64
})

type DenyListAction

type DenyListAction struct {
	actionutils.ParentAction
}

func (*DenyListAction) Init

func (this *DenyListAction) Init()

func (*DenyListAction) RunGet

func (this *DenyListAction) RunGet(params struct {
	FirewallPolicyId int64
	ServerId         int64
})

type ProvincesAction

type ProvincesAction struct {
	actionutils.ParentAction
}

func (*ProvincesAction) Init

func (this *ProvincesAction) Init()

func (*ProvincesAction) RunGet

func (this *ProvincesAction) RunGet(params struct {
	FirewallPolicyId int64
	ServerId         int64
})

func (*ProvincesAction) RunPost

func (this *ProvincesAction) RunPost(params struct {
	FirewallPolicyId int64
	DenyProvinceIds  []int64
	AllowProvinceIds []int64

	ExceptURLPatternsJSON []byte
	OnlyURLPatternsJSON   []byte

	Must *actions.Must
})

type TestAction

type TestAction struct {
	actionutils.ParentAction
}

func (*TestAction) Init

func (this *TestAction) Init()

func (*TestAction) RunGet

func (this *TestAction) RunGet(params struct {
	ServerId         int64
	FirewallPolicyId int64
})

func (*TestAction) RunPost

func (this *TestAction) RunPost(params struct {
	FirewallPolicyId int64
	Ip               string

	Must *actions.Must
})

type UpdateIPPopupAction

type UpdateIPPopupAction struct {
	actionutils.ParentAction
}

func (*UpdateIPPopupAction) Init

func (this *UpdateIPPopupAction) Init()

func (*UpdateIPPopupAction) RunGet

func (this *UpdateIPPopupAction) RunGet(params struct {
	ItemId int64
})

func (*UpdateIPPopupAction) RunPost

func (this *UpdateIPPopupAction) RunPost(params struct {
	ItemId int64

	Value      string
	ExpiredAt  int64
	Reason     string
	Type       string
	EventLevel string

	Must *actions.Must
	CSRF *actionutils.CSRF
})

Jump to

Keyboard shortcuts

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