v2

package
v0.1.48 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CdnClientBuilder

func CdnClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForBatchCopyDomain added in v0.1.12

func GenReqDefForBatchCopyDomain() *def.HttpRequestDef

func GenReqDefForDownloadRegionCarrierExcel added in v0.1.10

func GenReqDefForDownloadRegionCarrierExcel() *def.HttpRequestDef

func GenReqDefForDownloadStatisticsExcel added in v0.1.10

func GenReqDefForDownloadStatisticsExcel() *def.HttpRequestDef

func GenReqDefForListDomains added in v0.1.32

func GenReqDefForListDomains() *def.HttpRequestDef

func GenReqDefForSetChargeModes added in v0.1.10

func GenReqDefForSetChargeModes() *def.HttpRequestDef

func GenReqDefForShowBandwidthCalc added in v0.1.10

func GenReqDefForShowBandwidthCalc() *def.HttpRequestDef

func GenReqDefForShowChargeModes added in v0.1.10

func GenReqDefForShowChargeModes() *def.HttpRequestDef

func GenReqDefForShowDomainDetailByName added in v0.1.32

func GenReqDefForShowDomainDetailByName() *def.HttpRequestDef

func GenReqDefForShowDomainFullConfig added in v0.1.37

func GenReqDefForShowDomainFullConfig() *def.HttpRequestDef

func GenReqDefForShowDomainLocationStats

func GenReqDefForShowDomainLocationStats() *def.HttpRequestDef

func GenReqDefForShowDomainStats

func GenReqDefForShowDomainStats() *def.HttpRequestDef

func GenReqDefForShowTopDomainNames added in v0.1.10

func GenReqDefForShowTopDomainNames() *def.HttpRequestDef

func GenReqDefForShowTopUrl

func GenReqDefForShowTopUrl() *def.HttpRequestDef

func GenReqDefForUpdateDomainFullConfig added in v0.1.37

func GenReqDefForUpdateDomainFullConfig() *def.HttpRequestDef

Types

type BatchCopyDomainInvoker added in v0.1.12

type BatchCopyDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCopyDomainInvoker) Invoke added in v0.1.12

type CdnClient

type CdnClient struct {
	HcClient *http_client.HcHttpClient
}

func NewCdnClient

func NewCdnClient(hcClient *http_client.HcHttpClient) *CdnClient

func (*CdnClient) BatchCopyDomain added in v0.1.12

func (c *CdnClient) BatchCopyDomain(request *model.BatchCopyDomainRequest) (*model.BatchCopyDomainResponse, error)

BatchCopyDomain 批量域名复制

批量域名复制接口。

> 将某个加速域名的配置批量复制到其他域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) BatchCopyDomainInvoker added in v0.1.12

func (c *CdnClient) BatchCopyDomainInvoker(request *model.BatchCopyDomainRequest) *BatchCopyDomainInvoker

BatchCopyDomainInvoker 批量域名复制

func (*CdnClient) DownloadRegionCarrierExcel added in v0.1.10

DownloadRegionCarrierExcel 下载区域运营商指标数据表格文件

- 下载区域运营商指标数据表格文件。

- 支持下载90天内的指标数据表格。

- 时间跨度不能超过31天。

- 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。

- 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。

- 单租户调用频率:10次/min。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) DownloadRegionCarrierExcelInvoker added in v0.1.10

func (c *CdnClient) DownloadRegionCarrierExcelInvoker(request *model.DownloadRegionCarrierExcelRequest) *DownloadRegionCarrierExcelInvoker

DownloadRegionCarrierExcelInvoker 下载区域运营商指标数据表格文件

func (*CdnClient) DownloadStatisticsExcel added in v0.1.10

DownloadStatisticsExcel 下载统计指标数据表格文件

- 下载统计指标数据表格文件。

- 支持下载90天内的指标数据。

- 时间跨度不能超过31天。

- 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。

- 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。

- 单租户调用频率:10次/min。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) DownloadStatisticsExcelInvoker added in v0.1.10

func (c *CdnClient) DownloadStatisticsExcelInvoker(request *model.DownloadStatisticsExcelRequest) *DownloadStatisticsExcelInvoker

DownloadStatisticsExcelInvoker 下载统计指标数据表格文件

func (*CdnClient) ListDomains added in v0.1.32

func (c *CdnClient) ListDomains(request *model.ListDomainsRequest) (*model.ListDomainsResponse, error)

ListDomains 查询加速域名

查询加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ListDomainsInvoker added in v0.1.32

func (c *CdnClient) ListDomainsInvoker(request *model.ListDomainsRequest) *ListDomainsInvoker

ListDomainsInvoker 查询加速域名

func (*CdnClient) SetChargeModes added in v0.1.10

func (c *CdnClient) SetChargeModes(request *model.SetChargeModesRequest) (*model.SetChargeModesResponse, error)

SetChargeModes 设置用户计费模式

- 设置用户计费模式。

- 服务区域仅支持mainland_china(国内)

- 计费模式仅支持设置flux(流量),v2及以上客户支持bw(带宽)

- 加速类型仅支持base(基础加速)

- 单租户调用频率:10次/min。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) SetChargeModesInvoker added in v0.1.10

func (c *CdnClient) SetChargeModesInvoker(request *model.SetChargeModesRequest) *SetChargeModesInvoker

SetChargeModesInvoker 设置用户计费模式

func (*CdnClient) ShowBandwidthCalc added in v0.1.10

func (c *CdnClient) ShowBandwidthCalc(request *model.ShowBandwidthCalcRequest) (*model.ShowBandwidthCalcResponse, error)

ShowBandwidthCalc 查询域名带宽峰值类数据

- 查询域名带宽峰值类数据。

- 支持查询90天内的数据。

- 查询时间跨度不能超过31天。

- 起始时间和结束时间,左闭右开。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。

- 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。

- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、峰值类指标单位统一为bps(比特率),请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。

- 单租户调用频率:2次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowBandwidthCalcInvoker added in v0.1.10

func (c *CdnClient) ShowBandwidthCalcInvoker(request *model.ShowBandwidthCalcRequest) *ShowBandwidthCalcInvoker

ShowBandwidthCalcInvoker 查询域名带宽峰值类数据

func (*CdnClient) ShowChargeModes added in v0.1.10

func (c *CdnClient) ShowChargeModes(request *model.ShowChargeModesRequest) (*model.ShowChargeModesResponse, error)

ShowChargeModes 查询用户计费模式

- 查询用户计费模式。

- 服务区域仅支持mainland_china(国内,默认)和outside_mainland_china(海外)

- 计费模式状态支持active(已生效),upcoming(待生效)两种状态,默认为active(已生效)

- 加速类型仅支持base(基础加速)

- 单租户调用频率:5次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowChargeModesInvoker added in v0.1.10

func (c *CdnClient) ShowChargeModesInvoker(request *model.ShowChargeModesRequest) *ShowChargeModesInvoker

ShowChargeModesInvoker 查询用户计费模式

func (*CdnClient) ShowDomainDetailByName added in v0.1.32

ShowDomainDetailByName 查询加速域名详情

加速域名详情信息接口。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainDetailByNameInvoker added in v0.1.32

func (c *CdnClient) ShowDomainDetailByNameInvoker(request *model.ShowDomainDetailByNameRequest) *ShowDomainDetailByNameInvoker

ShowDomainDetailByNameInvoker 查询加速域名详情

func (*CdnClient) ShowDomainFullConfig added in v0.1.37

ShowDomainFullConfig 查询域名配置接口

查询域名配置接口, 支持查询回源请求头、业务类型、服务区域、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainFullConfigInvoker added in v0.1.37

func (c *CdnClient) ShowDomainFullConfigInvoker(request *model.ShowDomainFullConfigRequest) *ShowDomainFullConfigInvoker

ShowDomainFullConfigInvoker 查询域名配置接口

func (*CdnClient) ShowDomainLocationStats

ShowDomainLocationStats 按区域运营商查询域名统计数据

- 支持查询90天内的数据。

- 支持多指标同时查询,不超过5个。

- 最多同时指定20个域名。

- 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。

- action取值:location_detail,location_summary

- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。

- 单租户调用频率:15次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainLocationStatsInvoker added in v0.0.90

func (c *CdnClient) ShowDomainLocationStatsInvoker(request *model.ShowDomainLocationStatsRequest) *ShowDomainLocationStatsInvoker

ShowDomainLocationStatsInvoker 按区域运营商查询域名统计数据

func (*CdnClient) ShowDomainStats

func (c *CdnClient) ShowDomainStats(request *model.ShowDomainStatsRequest) (*model.ShowDomainStatsResponse, error)

ShowDomainStats 查询域名统计基础数据

- 支持查询90天内的数据。

- 支持多指标同时查询,不超过5个。

- 最多同时指定20个域名。

- 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。

- action取值:detail,summary

- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。

- 单租户调用频率:15次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainStatsInvoker added in v0.0.90

func (c *CdnClient) ShowDomainStatsInvoker(request *model.ShowDomainStatsRequest) *ShowDomainStatsInvoker

ShowDomainStatsInvoker 查询域名统计基础数据

func (*CdnClient) ShowTopDomainNames added in v0.1.10

func (c *CdnClient) ShowTopDomainNames(request *model.ShowTopDomainNamesRequest) (*model.ShowTopDomainNamesResponse, error)

ShowTopDomainNames 查询TOP域名

- 查询TOP域名。

- 支持查询90天内的数据。

- 查询时间跨度不能超过1天。

- 起始时间和结束时间,左闭右开,必须同时指定。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。

- 起始时间、结束时间必须传整点毫秒级时间戳。

- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。

- 单租户调用频率:5次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowTopDomainNamesInvoker added in v0.1.10

func (c *CdnClient) ShowTopDomainNamesInvoker(request *model.ShowTopDomainNamesRequest) *ShowTopDomainNamesInvoker

ShowTopDomainNamesInvoker 查询TOP域名

func (*CdnClient) ShowTopUrl

func (c *CdnClient) ShowTopUrl(request *model.ShowTopUrlRequest) (*model.ShowTopUrlResponse, error)

ShowTopUrl 查询TOP100 URL明细

- 查询TOP100 URL明细。

- 支持查询90天内的数据。

- 查询跨度不能超过31天。

- 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。

- 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。

- 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。

- 单租户调用频率:5次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowTopUrlInvoker added in v0.0.90

func (c *CdnClient) ShowTopUrlInvoker(request *model.ShowTopUrlRequest) *ShowTopUrlInvoker

ShowTopUrlInvoker 查询TOP100 URL明细

func (*CdnClient) UpdateDomainFullConfig added in v0.1.37

UpdateDomainFullConfig 修改域名全量配置接口

修改域名配置接口, 支持修改回源请求头、业务类型、服务区域、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateDomainFullConfigInvoker added in v0.1.37

func (c *CdnClient) UpdateDomainFullConfigInvoker(request *model.UpdateDomainFullConfigRequest) *UpdateDomainFullConfigInvoker

UpdateDomainFullConfigInvoker 修改域名全量配置接口

type DownloadRegionCarrierExcelInvoker added in v0.1.10

type DownloadRegionCarrierExcelInvoker struct {
	*invoker.BaseInvoker
}

func (*DownloadRegionCarrierExcelInvoker) Invoke added in v0.1.10

type DownloadStatisticsExcelInvoker added in v0.1.10

type DownloadStatisticsExcelInvoker struct {
	*invoker.BaseInvoker
}

func (*DownloadStatisticsExcelInvoker) Invoke added in v0.1.10

type ListDomainsInvoker added in v0.1.32

type ListDomainsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDomainsInvoker) Invoke added in v0.1.32

type SetChargeModesInvoker added in v0.1.10

type SetChargeModesInvoker struct {
	*invoker.BaseInvoker
}

func (*SetChargeModesInvoker) Invoke added in v0.1.10

type ShowBandwidthCalcInvoker added in v0.1.10

type ShowBandwidthCalcInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowBandwidthCalcInvoker) Invoke added in v0.1.10

type ShowChargeModesInvoker added in v0.1.10

type ShowChargeModesInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowChargeModesInvoker) Invoke added in v0.1.10

type ShowDomainDetailByNameInvoker added in v0.1.32

type ShowDomainDetailByNameInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainDetailByNameInvoker) Invoke added in v0.1.32

type ShowDomainFullConfigInvoker added in v0.1.37

type ShowDomainFullConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainFullConfigInvoker) Invoke added in v0.1.37

type ShowDomainLocationStatsInvoker added in v0.0.90

type ShowDomainLocationStatsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainLocationStatsInvoker) Invoke added in v0.0.90

type ShowDomainStatsInvoker added in v0.0.90

type ShowDomainStatsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainStatsInvoker) Invoke added in v0.0.90

type ShowTopDomainNamesInvoker added in v0.1.10

type ShowTopDomainNamesInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTopDomainNamesInvoker) Invoke added in v0.1.10

type ShowTopUrlInvoker added in v0.0.90

type ShowTopUrlInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTopUrlInvoker) Invoke added in v0.0.90

type UpdateDomainFullConfigInvoker added in v0.1.37

type UpdateDomainFullConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDomainFullConfigInvoker) Invoke added in v0.1.37

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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