v1

package
v0.1.114 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AntiDDoSClientBuilder

func AntiDDoSClientBuilder() *httpclient.HcHttpClientBuilder

func GenReqDefForCreateDefaultConfig

func GenReqDefForCreateDefaultConfig() *def.HttpRequestDef

func GenReqDefForDeleteDefaultConfig

func GenReqDefForDeleteDefaultConfig() *def.HttpRequestDef

func GenReqDefForListDDosStatus

func GenReqDefForListDDosStatus() *def.HttpRequestDef

func GenReqDefForListDailyLog

func GenReqDefForListDailyLog() *def.HttpRequestDef

func GenReqDefForListDailyReport

func GenReqDefForListDailyReport() *def.HttpRequestDef

func GenReqDefForListNewConfigs

func GenReqDefForListNewConfigs() *def.HttpRequestDef

func GenReqDefForListWeeklyReports

func GenReqDefForListWeeklyReports() *def.HttpRequestDef

func GenReqDefForShowAlertConfig

func GenReqDefForShowAlertConfig() *def.HttpRequestDef

func GenReqDefForShowDDos

func GenReqDefForShowDDos() *def.HttpRequestDef

func GenReqDefForShowDDosStatus

func GenReqDefForShowDDosStatus() *def.HttpRequestDef

func GenReqDefForShowDefaultConfig

func GenReqDefForShowDefaultConfig() *def.HttpRequestDef

func GenReqDefForShowNewTaskStatus

func GenReqDefForShowNewTaskStatus() *def.HttpRequestDef

func GenReqDefForUpdateAlertConfig

func GenReqDefForUpdateAlertConfig() *def.HttpRequestDef

func GenReqDefForUpdateDDos

func GenReqDefForUpdateDDos() *def.HttpRequestDef

Types

type AntiDDoSClient

type AntiDDoSClient struct {
	HcClient *httpclient.HcHttpClient
}

func NewAntiDDoSClient

func NewAntiDDoSClient(hcClient *httpclient.HcHttpClient) *AntiDDoSClient

func (*AntiDDoSClient) CreateDefaultConfig

CreateDefaultConfig 配置Anti-DDoS默认防护策略

配置用户的默认防护策略。配置防护策略后,新购买的资源在自动开启防护时,会按照该默认防护策略进行配置。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) CreateDefaultConfigInvoker added in v0.0.90

func (c *AntiDDoSClient) CreateDefaultConfigInvoker(request *model.CreateDefaultConfigRequest) *CreateDefaultConfigInvoker

CreateDefaultConfigInvoker 配置Anti-DDoS默认防护策略

func (*AntiDDoSClient) DeleteDefaultConfig

DeleteDefaultConfig 删除Ani-DDoS默认防护策略

删除用户配置的默认防护策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) DeleteDefaultConfigInvoker added in v0.0.90

func (c *AntiDDoSClient) DeleteDefaultConfigInvoker(request *model.DeleteDefaultConfigRequest) *DeleteDefaultConfigInvoker

DeleteDefaultConfigInvoker 删除Ani-DDoS默认防护策略

func (*AntiDDoSClient) ListDDosStatus

ListDDosStatus 查询EIP防护状态列表

查询用户所有EIP的Anti-DDoS防护状态信息,用户的EIP无论是否绑定到云服务器,都可以进行查询。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) ListDDosStatusInvoker added in v0.0.90

func (c *AntiDDoSClient) ListDDosStatusInvoker(request *model.ListDDosStatusRequest) *ListDDosStatusInvoker

ListDDosStatusInvoker 查询EIP防护状态列表

func (*AntiDDoSClient) ListDailyLog

ListDailyLog 查询指定EIP异常事件

查询指定EIP在过去24小时之内的异常事件信息,异常事件包括清洗事件和黑洞事件,查询延迟在5分钟之内。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) ListDailyLogInvoker added in v0.0.90

func (c *AntiDDoSClient) ListDailyLogInvoker(request *model.ListDailyLogRequest) *ListDailyLogInvoker

ListDailyLogInvoker 查询指定EIP异常事件

func (*AntiDDoSClient) ListDailyReport

ListDailyReport 查询指定EIP防护流量

查询指定EIP在过去24小时之内的防护流量信息,流量的间隔时间单位为5分钟。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) ListDailyReportInvoker added in v0.0.90

func (c *AntiDDoSClient) ListDailyReportInvoker(request *model.ListDailyReportRequest) *ListDailyReportInvoker

ListDailyReportInvoker 查询指定EIP防护流量

func (*AntiDDoSClient) ListNewConfigs

ListNewConfigs 查询Anti-DDoS配置可选范围

查询系统支持的Anti-DDoS防护策略配置的可选范围,用户根据范围列表选择适合自已业务的防护策略进行Anti-DDoS流量清洗。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) ListNewConfigsInvoker added in v0.0.90

func (c *AntiDDoSClient) ListNewConfigsInvoker(request *model.ListNewConfigsRequest) *ListNewConfigsInvoker

ListNewConfigsInvoker 查询Anti-DDoS配置可选范围

func (*AntiDDoSClient) ListWeeklyReports

ListWeeklyReports 查询周防护统计情况

查询用户所有Anti-DDoS防护周统计情况,包括一周内DDoS拦截次数和攻击次数、以及按照被攻击次数进行的排名信息等统计数据。系统支持当前时间之前四周的周统计数据查询,超过这个时间的请求是查询不到统计数据的。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) ListWeeklyReportsInvoker added in v0.0.90

func (c *AntiDDoSClient) ListWeeklyReportsInvoker(request *model.ListWeeklyReportsRequest) *ListWeeklyReportsInvoker

ListWeeklyReportsInvoker 查询周防护统计情况

func (*AntiDDoSClient) ShowAlertConfig

ShowAlertConfig 查询告警配置信息

查询用户配置信息,用户可以通过此接口查询是否接收某类告警,同时可以配置是手机短信还是电子邮件接收告警信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) ShowAlertConfigInvoker added in v0.0.90

func (c *AntiDDoSClient) ShowAlertConfigInvoker(request *model.ShowAlertConfigRequest) *ShowAlertConfigInvoker

ShowAlertConfigInvoker 查询告警配置信息

func (*AntiDDoSClient) ShowDDos

func (c *AntiDDoSClient) ShowDDos(request *model.ShowDDosRequest) (*model.ShowDDosResponse, error)

ShowDDos 查询Anti-DDoS服务

查询配置的Anti-DDoS防护策略,用户可以查询指定EIP的Anti-DDoS防护策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) ShowDDosInvoker added in v0.0.90

func (c *AntiDDoSClient) ShowDDosInvoker(request *model.ShowDDosRequest) *ShowDDosInvoker

ShowDDosInvoker 查询Anti-DDoS服务

func (*AntiDDoSClient) ShowDDosStatus

ShowDDosStatus 查询指定EIP防护状态

查询指定EIP的Anti-DDoS防护状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) ShowDDosStatusInvoker added in v0.0.90

func (c *AntiDDoSClient) ShowDDosStatusInvoker(request *model.ShowDDosStatusRequest) *ShowDDosStatusInvoker

ShowDDosStatusInvoker 查询指定EIP防护状态

func (*AntiDDoSClient) ShowDefaultConfig

ShowDefaultConfig 查询Ani-DDoS默认防护策略

查询用户配置的默认防护策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) ShowDefaultConfigInvoker added in v0.0.90

func (c *AntiDDoSClient) ShowDefaultConfigInvoker(request *model.ShowDefaultConfigRequest) *ShowDefaultConfigInvoker

ShowDefaultConfigInvoker 查询Ani-DDoS默认防护策略

func (*AntiDDoSClient) ShowNewTaskStatus

ShowNewTaskStatus 查询Anti-DDoS任务

用户查询指定的Anti-DDoS防护配置任务,得到任务当前执行的状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) ShowNewTaskStatusInvoker added in v0.0.90

func (c *AntiDDoSClient) ShowNewTaskStatusInvoker(request *model.ShowNewTaskStatusRequest) *ShowNewTaskStatusInvoker

ShowNewTaskStatusInvoker 查询Anti-DDoS任务

func (*AntiDDoSClient) UpdateAlertConfig

UpdateAlertConfig 更新告警配置信息

更新用户配置信息,用户可以通过此接口更新是否接收某类告警,同时可以配置是手机短信还是电子邮件接收告警信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) UpdateAlertConfigInvoker added in v0.0.90

func (c *AntiDDoSClient) UpdateAlertConfigInvoker(request *model.UpdateAlertConfigRequest) *UpdateAlertConfigInvoker

UpdateAlertConfigInvoker 更新告警配置信息

func (*AntiDDoSClient) UpdateDDos

UpdateDDos 更新Anti-DDoS服务

更新指定EIP的Anti-DDoS防护策略配置。调用成功,只是说明服务节点收到了关闭更新配置请求,操作是否成功需要通过任务查询接口查询该任务的执行状态,具体请参考查询Anti-DDoS任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*AntiDDoSClient) UpdateDDosInvoker added in v0.0.90

func (c *AntiDDoSClient) UpdateDDosInvoker(request *model.UpdateDDosRequest) *UpdateDDosInvoker

UpdateDDosInvoker 更新Anti-DDoS服务

type CreateDefaultConfigInvoker added in v0.0.90

type CreateDefaultConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateDefaultConfigInvoker) Invoke added in v0.0.90

type DeleteDefaultConfigInvoker added in v0.0.90

type DeleteDefaultConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteDefaultConfigInvoker) Invoke added in v0.0.90

type ListDDosStatusInvoker added in v0.0.90

type ListDDosStatusInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDDosStatusInvoker) Invoke added in v0.0.90

type ListDailyLogInvoker added in v0.0.90

type ListDailyLogInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDailyLogInvoker) Invoke added in v0.0.90

type ListDailyReportInvoker added in v0.0.90

type ListDailyReportInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDailyReportInvoker) Invoke added in v0.0.90

type ListNewConfigsInvoker added in v0.0.90

type ListNewConfigsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListNewConfigsInvoker) Invoke added in v0.0.90

type ListWeeklyReportsInvoker added in v0.0.90

type ListWeeklyReportsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListWeeklyReportsInvoker) Invoke added in v0.0.90

type ShowAlertConfigInvoker added in v0.0.90

type ShowAlertConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowAlertConfigInvoker) Invoke added in v0.0.90

type ShowDDosInvoker added in v0.0.90

type ShowDDosInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDDosInvoker) Invoke added in v0.0.90

func (i *ShowDDosInvoker) Invoke() (*model.ShowDDosResponse, error)

type ShowDDosStatusInvoker added in v0.0.90

type ShowDDosStatusInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDDosStatusInvoker) Invoke added in v0.0.90

type ShowDefaultConfigInvoker added in v0.0.90

type ShowDefaultConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDefaultConfigInvoker) Invoke added in v0.0.90

type ShowNewTaskStatusInvoker added in v0.0.90

type ShowNewTaskStatusInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowNewTaskStatusInvoker) Invoke added in v0.0.90

type UpdateAlertConfigInvoker added in v0.0.90

type UpdateAlertConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateAlertConfigInvoker) Invoke added in v0.0.90

type UpdateDDosInvoker added in v0.0.90

type UpdateDDosInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDDosInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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