ipadmin

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ChinaCountryId = 1

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 added in v0.0.10

type CountriesAction struct {
	actionutils.ParentAction
}

func (*CountriesAction) Init added in v0.0.10

func (this *CountriesAction) Init()

func (*CountriesAction) RunGet added in v0.0.10

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

func (*CountriesAction) RunPost added in v0.0.10

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

	Must *actions.Must
})

type CreateIPPopupAction

type CreateIPPopupAction struct {
	actionutils.ParentAction
}

func (*CreateIPPopupAction) Init

func (this *CreateIPPopupAction) Init()

func (*CreateIPPopupAction) RunGet

func (this *CreateIPPopupAction) RunGet(params struct {
	ListId int64
	Type   string
})

func (*CreateIPPopupAction) RunPost

func (this *CreateIPPopupAction) RunPost(params struct {
	ListId     int64
	IpFrom     string
	IpTo       string
	ExpiredAt  int64
	Reason     string
	Type       string
	EventLevel string

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

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
	ProvinceIds      []int64

	Must *actions.Must
})

type TestAction added in v0.0.10

type TestAction struct {
	actionutils.ParentAction
}

func (*TestAction) Init added in v0.0.10

func (this *TestAction) Init()

func (*TestAction) RunGet added in v0.0.10

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

func (*TestAction) RunPost added in v0.0.10

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

	IpFrom     string
	IpTo       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