v2

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 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 CdnClientBuilder

func CdnClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForBatchCopyDomain

func GenReqDefForBatchCopyDomain() *def.HttpRequestDef

func GenReqDefForDownloadRegionCarrierExcel

func GenReqDefForDownloadRegionCarrierExcel() *def.HttpRequestDef

func GenReqDefForDownloadStatisticsExcel

func GenReqDefForDownloadStatisticsExcel() *def.HttpRequestDef

func GenReqDefForListDomains

func GenReqDefForListDomains() *def.HttpRequestDef

func GenReqDefForSetChargeModes

func GenReqDefForSetChargeModes() *def.HttpRequestDef

func GenReqDefForShowBandwidthCalc

func GenReqDefForShowBandwidthCalc() *def.HttpRequestDef

func GenReqDefForShowChargeModes

func GenReqDefForShowChargeModes() *def.HttpRequestDef

func GenReqDefForShowDomainDetailByName

func GenReqDefForShowDomainDetailByName() *def.HttpRequestDef

func GenReqDefForShowDomainFullConfig

func GenReqDefForShowDomainFullConfig() *def.HttpRequestDef

func GenReqDefForShowDomainLocationStats

func GenReqDefForShowDomainLocationStats() *def.HttpRequestDef

func GenReqDefForShowDomainStats

func GenReqDefForShowDomainStats() *def.HttpRequestDef

func GenReqDefForShowTopDomainNames

func GenReqDefForShowTopDomainNames() *def.HttpRequestDef

func GenReqDefForShowTopUrl

func GenReqDefForShowTopUrl() *def.HttpRequestDef

func GenReqDefForUpdateDomainFullConfig

func GenReqDefForUpdateDomainFullConfig() *def.HttpRequestDef

Types

type BatchCopyDomainInvoker

type BatchCopyDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCopyDomainInvoker) Invoke

type CdnClient

type CdnClient struct {
	HcClient *http_client.HcHttpClient
}

func NewCdnClient

func NewCdnClient(hcClient *http_client.HcHttpClient) *CdnClient

func (*CdnClient) BatchCopyDomain

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

BatchCopyDomain 批量域名复制

批量域名复制接口。

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) BatchCopyDomainInvoker

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

BatchCopyDomainInvoker 批量域名复制

func (*CdnClient) DownloadRegionCarrierExcel

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

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

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

func (*CdnClient) DownloadStatisticsExcel

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

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

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

func (*CdnClient) ListDomains

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

ListDomains 查询加速域名

查询加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ListDomainsInvoker

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

ListDomainsInvoker 查询加速域名

func (*CdnClient) SetChargeModes

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

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

SetChargeModesInvoker 设置用户计费模式

func (*CdnClient) ShowBandwidthCalc

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

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

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

func (*CdnClient) ShowChargeModes

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

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

ShowChargeModesInvoker 查询用户计费模式

func (*CdnClient) ShowDomainDetailByName

ShowDomainDetailByName 查询加速域名详情

加速域名详情信息接口。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainDetailByNameInvoker

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

ShowDomainDetailByNameInvoker 查询加速域名详情

func (*CdnClient) ShowDomainFullConfig

ShowDomainFullConfig 查询域名配置接口

查询域名配置接口,支持查询业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、 Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainFullConfigInvoker

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

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

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

ShowDomainStatsInvoker 查询域名统计基础数据

func (*CdnClient) ShowTopDomainNames

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

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

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

ShowTopUrlInvoker 查询TOP100 URL明细

func (*CdnClient) UpdateDomainFullConfig

UpdateDomainFullConfig 修改域名全量配置接口

修改域名配置接口,支持修改业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateDomainFullConfigInvoker

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

UpdateDomainFullConfigInvoker 修改域名全量配置接口

type DownloadRegionCarrierExcelInvoker

type DownloadRegionCarrierExcelInvoker struct {
	*invoker.BaseInvoker
}

func (*DownloadRegionCarrierExcelInvoker) Invoke

type DownloadStatisticsExcelInvoker

type DownloadStatisticsExcelInvoker struct {
	*invoker.BaseInvoker
}

func (*DownloadStatisticsExcelInvoker) Invoke

type ListDomainsInvoker

type ListDomainsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDomainsInvoker) Invoke

type SetChargeModesInvoker

type SetChargeModesInvoker struct {
	*invoker.BaseInvoker
}

func (*SetChargeModesInvoker) Invoke

type ShowBandwidthCalcInvoker

type ShowBandwidthCalcInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowBandwidthCalcInvoker) Invoke

type ShowChargeModesInvoker

type ShowChargeModesInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowChargeModesInvoker) Invoke

type ShowDomainDetailByNameInvoker

type ShowDomainDetailByNameInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainDetailByNameInvoker) Invoke

type ShowDomainFullConfigInvoker

type ShowDomainFullConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainFullConfigInvoker) Invoke

type ShowDomainLocationStatsInvoker

type ShowDomainLocationStatsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainLocationStatsInvoker) Invoke

type ShowDomainStatsInvoker

type ShowDomainStatsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainStatsInvoker) Invoke

type ShowTopDomainNamesInvoker

type ShowTopDomainNamesInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTopDomainNamesInvoker) Invoke

type ShowTopUrlInvoker

type ShowTopUrlInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTopUrlInvoker) Invoke

type UpdateDomainFullConfigInvoker

type UpdateDomainFullConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDomainFullConfigInvoker) Invoke

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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