v1

package
v0.1.92-patch Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CdnClientBuilder

func CdnClientBuilder() *httpclient.HcHttpClientBuilder

func GenReqDefForBatchDeleteTags added in v0.1.1

func GenReqDefForBatchDeleteTags() *def.HttpRequestDef

func GenReqDefForCreateDomain

func GenReqDefForCreateDomain() *def.HttpRequestDef

func GenReqDefForCreatePreheatingTasks

func GenReqDefForCreatePreheatingTasks() *def.HttpRequestDef

func GenReqDefForCreateRefreshTasks

func GenReqDefForCreateRefreshTasks() *def.HttpRequestDef

func GenReqDefForCreateTags added in v0.1.1

func GenReqDefForCreateTags() *def.HttpRequestDef

func GenReqDefForDeleteDomain

func GenReqDefForDeleteDomain() *def.HttpRequestDef

func GenReqDefForDisableDomain

func GenReqDefForDisableDomain() *def.HttpRequestDef

func GenReqDefForEnableDomain

func GenReqDefForEnableDomain() *def.HttpRequestDef

func GenReqDefForListDomains

func GenReqDefForListDomains() *def.HttpRequestDef

func GenReqDefForShowBlackWhiteList

func GenReqDefForShowBlackWhiteList() *def.HttpRequestDef

func GenReqDefForShowCacheRules

func GenReqDefForShowCacheRules() *def.HttpRequestDef

func GenReqDefForShowCertificatesHttpsInfo

func GenReqDefForShowCertificatesHttpsInfo() *def.HttpRequestDef

func GenReqDefForShowDomainDetail

func GenReqDefForShowDomainDetail() *def.HttpRequestDef

func GenReqDefForShowDomainFullConfig added in v0.0.78

func GenReqDefForShowDomainFullConfig() *def.HttpRequestDef

func GenReqDefForShowDomainItemDetails

func GenReqDefForShowDomainItemDetails() *def.HttpRequestDef

func GenReqDefForShowDomainItemLocationDetails

func GenReqDefForShowDomainItemLocationDetails() *def.HttpRequestDef

func GenReqDefForShowDomainLocationStats added in v0.0.78

func GenReqDefForShowDomainLocationStats() *def.HttpRequestDef

func GenReqDefForShowDomainStats added in v0.0.60

func GenReqDefForShowDomainStats() *def.HttpRequestDef

func GenReqDefForShowHistoryTaskDetails

func GenReqDefForShowHistoryTaskDetails() *def.HttpRequestDef

func GenReqDefForShowHistoryTasks

func GenReqDefForShowHistoryTasks() *def.HttpRequestDef

func GenReqDefForShowHttpInfo

func GenReqDefForShowHttpInfo() *def.HttpRequestDef

func GenReqDefForShowIpInfo

func GenReqDefForShowIpInfo() *def.HttpRequestDef

func GenReqDefForShowLogs

func GenReqDefForShowLogs() *def.HttpRequestDef

func GenReqDefForShowOriginHost

func GenReqDefForShowOriginHost() *def.HttpRequestDef

func GenReqDefForShowQuota added in v0.0.49

func GenReqDefForShowQuota() *def.HttpRequestDef

func GenReqDefForShowRefer

func GenReqDefForShowRefer() *def.HttpRequestDef

func GenReqDefForShowResponseHeader

func GenReqDefForShowResponseHeader() *def.HttpRequestDef

func GenReqDefForShowTags added in v0.1.1

func GenReqDefForShowTags() *def.HttpRequestDef

func GenReqDefForShowTopUrl

func GenReqDefForShowTopUrl() *def.HttpRequestDef

func GenReqDefForShowUrlTaskInfo added in v0.0.103

func GenReqDefForShowUrlTaskInfo() *def.HttpRequestDef

func GenReqDefForUpdateBlackWhiteList

func GenReqDefForUpdateBlackWhiteList() *def.HttpRequestDef

func GenReqDefForUpdateCacheRules

func GenReqDefForUpdateCacheRules() *def.HttpRequestDef

func GenReqDefForUpdateDomainFullConfig added in v0.0.74

func GenReqDefForUpdateDomainFullConfig() *def.HttpRequestDef

func GenReqDefForUpdateDomainMultiCertificates

func GenReqDefForUpdateDomainMultiCertificates() *def.HttpRequestDef

func GenReqDefForUpdateDomainOrigin

func GenReqDefForUpdateDomainOrigin() *def.HttpRequestDef

func GenReqDefForUpdateFollow302Switch

func GenReqDefForUpdateFollow302Switch() *def.HttpRequestDef

func GenReqDefForUpdateHttpsInfo

func GenReqDefForUpdateHttpsInfo() *def.HttpRequestDef

func GenReqDefForUpdateOriginHost

func GenReqDefForUpdateOriginHost() *def.HttpRequestDef

func GenReqDefForUpdatePrivateBucketAccess

func GenReqDefForUpdatePrivateBucketAccess() *def.HttpRequestDef

func GenReqDefForUpdateRangeSwitch

func GenReqDefForUpdateRangeSwitch() *def.HttpRequestDef

func GenReqDefForUpdateRefer

func GenReqDefForUpdateRefer() *def.HttpRequestDef

func GenReqDefForUpdateResponseHeader

func GenReqDefForUpdateResponseHeader() *def.HttpRequestDef

Types

type BatchDeleteTagsInvoker added in v0.1.1

type BatchDeleteTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteTagsInvoker) Invoke added in v0.1.1

type CdnClient

type CdnClient struct {
	HcClient *httpclient.HcHttpClient
}

func NewCdnClient

func NewCdnClient(hcClient *httpclient.HcHttpClient) *CdnClient

func (*CdnClient) BatchDeleteTags added in v0.1.1

func (c *CdnClient) BatchDeleteTags(request *model.BatchDeleteTagsRequest) (*model.BatchDeleteTagsResponse, error)

BatchDeleteTags 删除资源标签配置接口

用于删除资源标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) BatchDeleteTagsInvoker added in v0.1.1

func (c *CdnClient) BatchDeleteTagsInvoker(request *model.BatchDeleteTagsRequest) *BatchDeleteTagsInvoker

BatchDeleteTagsInvoker 删除资源标签配置接口

func (*CdnClient) CreateDomain

func (c *CdnClient) CreateDomain(request *model.CreateDomainRequest) (*model.CreateDomainResponse, error)

CreateDomain 创建加速域名

创建加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) CreateDomainInvoker added in v0.0.90

func (c *CdnClient) CreateDomainInvoker(request *model.CreateDomainRequest) *CreateDomainInvoker

CreateDomainInvoker 创建加速域名

func (*CdnClient) CreatePreheatingTasks

CreatePreheatingTasks 创建预热缓存任务

创建预热任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) CreatePreheatingTasksInvoker added in v0.0.90

func (c *CdnClient) CreatePreheatingTasksInvoker(request *model.CreatePreheatingTasksRequest) *CreatePreheatingTasksInvoker

CreatePreheatingTasksInvoker 创建预热缓存任务

func (*CdnClient) CreateRefreshTasks

func (c *CdnClient) CreateRefreshTasks(request *model.CreateRefreshTasksRequest) (*model.CreateRefreshTasksResponse, error)

CreateRefreshTasks 创建刷新缓存任务

创建刷新缓存任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) CreateRefreshTasksInvoker added in v0.0.90

func (c *CdnClient) CreateRefreshTasksInvoker(request *model.CreateRefreshTasksRequest) *CreateRefreshTasksInvoker

CreateRefreshTasksInvoker 创建刷新缓存任务

func (*CdnClient) CreateTags added in v0.1.1

func (c *CdnClient) CreateTags(request *model.CreateTagsRequest) (*model.CreateTagsResponse, error)

CreateTags 创建资源标签配置接口

用于创建资源标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) CreateTagsInvoker added in v0.1.1

func (c *CdnClient) CreateTagsInvoker(request *model.CreateTagsRequest) *CreateTagsInvoker

CreateTagsInvoker 创建资源标签配置接口

func (*CdnClient) DeleteDomain

func (c *CdnClient) DeleteDomain(request *model.DeleteDomainRequest) (*model.DeleteDomainResponse, error)

DeleteDomain 删除加速域名

删除加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) DeleteDomainInvoker added in v0.0.90

func (c *CdnClient) DeleteDomainInvoker(request *model.DeleteDomainRequest) *DeleteDomainInvoker

DeleteDomainInvoker 删除加速域名

func (*CdnClient) DisableDomain

func (c *CdnClient) DisableDomain(request *model.DisableDomainRequest) (*model.DisableDomainResponse, error)

DisableDomain 停用加速域名

停用加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) DisableDomainInvoker added in v0.0.90

func (c *CdnClient) DisableDomainInvoker(request *model.DisableDomainRequest) *DisableDomainInvoker

DisableDomainInvoker 停用加速域名

func (*CdnClient) EnableDomain

func (c *CdnClient) EnableDomain(request *model.EnableDomainRequest) (*model.EnableDomainResponse, error)

EnableDomain 启用加速域名

启用加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) EnableDomainInvoker added in v0.0.90

func (c *CdnClient) EnableDomainInvoker(request *model.EnableDomainRequest) *EnableDomainInvoker

EnableDomainInvoker 启用加速域名

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

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

ListDomainsInvoker 查询加速域名

func (*CdnClient) ShowBlackWhiteList

func (c *CdnClient) ShowBlackWhiteList(request *model.ShowBlackWhiteListRequest) (*model.ShowBlackWhiteListResponse, error)

ShowBlackWhiteList 查询IP黑白名单

查询域名已经设置的IP黑白名单。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowBlackWhiteListInvoker added in v0.0.90

func (c *CdnClient) ShowBlackWhiteListInvoker(request *model.ShowBlackWhiteListRequest) *ShowBlackWhiteListInvoker

ShowBlackWhiteListInvoker 查询IP黑白名单

func (*CdnClient) ShowCacheRules

func (c *CdnClient) ShowCacheRules(request *model.ShowCacheRulesRequest) (*model.ShowCacheRulesResponse, error)

ShowCacheRules 查询缓存规则

查询缓存规则。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowCacheRulesInvoker added in v0.0.90

func (c *CdnClient) ShowCacheRulesInvoker(request *model.ShowCacheRulesRequest) *ShowCacheRulesInvoker

ShowCacheRulesInvoker 查询缓存规则

func (*CdnClient) ShowCertificatesHttpsInfo

ShowCertificatesHttpsInfo 查询所有绑定HTTPS证书的域名信息

查询所有绑定HTTPS证书的域名信息

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowCertificatesHttpsInfoInvoker added in v0.0.90

func (c *CdnClient) ShowCertificatesHttpsInfoInvoker(request *model.ShowCertificatesHttpsInfoRequest) *ShowCertificatesHttpsInfoInvoker

ShowCertificatesHttpsInfoInvoker 查询所有绑定HTTPS证书的域名信息

func (*CdnClient) ShowDomainDetail

func (c *CdnClient) ShowDomainDetail(request *model.ShowDomainDetailRequest) (*model.ShowDomainDetailResponse, error)

ShowDomainDetail 查询加速域名详情

查询加速域名详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainDetailInvoker added in v0.0.90

func (c *CdnClient) ShowDomainDetailInvoker(request *model.ShowDomainDetailRequest) *ShowDomainDetailInvoker

ShowDomainDetailInvoker 查询加速域名详情

func (*CdnClient) ShowDomainFullConfig added in v0.0.78

ShowDomainFullConfig 查询域名配置接口

查询域名配置接口, 支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainFullConfigInvoker added in v0.0.90

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

ShowDomainFullConfigInvoker 查询域名配置接口

func (*CdnClient) ShowDomainItemDetails deprecated

Deprecated: This function is deprecated and will be removed in the future versions. ShowDomainItemDetails 批量查询域名的统计明细-按域名单独返回

- 支持查询90天内的数据。 - 查询跨度不能超过7天。 - 最多同时指定100个域名。 - 起始时间和结束时间,左闭右开,需要同时指定。 - 开始时间、结束时间必须传毫秒级时间戳,且必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果传的不是5分钟时刻点,返回数据可能与预期不一致。 - 统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。 - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。 - 如果传的是多个域名,则每个域名的数据分开返回。 - 支持同时查询多个指标,不超过10个。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainItemDetailsInvoker deprecated added in v0.0.90

func (c *CdnClient) ShowDomainItemDetailsInvoker(request *model.ShowDomainItemDetailsRequest) *ShowDomainItemDetailsInvoker

Deprecated: This function is deprecated and will be removed in the future versions. ShowDomainItemDetailsInvoker 批量查询域名的统计明细-按域名单独返回

func (*CdnClient) ShowDomainItemLocationDetails deprecated

Deprecated: This function is deprecated and will be removed in the future versions. ShowDomainItemLocationDetails 批量查询域名的区域、运营商统计明细-按域名单独返回

- 支持查询90天内的数据。 - 查询跨度是7天。 - 最多同时指定100个域名。 - 起始时间和结束时间,左闭右开,需要同时指定。 - 开始时间、结束时间必须传毫秒级时间戳,且必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果传的不是5分钟时刻点,返回数据可能与预期不一致。 - 统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。 - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。 - 用于查询指定域名、指定统计指标的明细数据。 - 如果传的是多个域名,则每个域名的数据分开返回。 - 支持按区域、运营商维度查询统计数据, 回源指标除外。 - 支持同时查询多个指标,不超过10个。 - 域名为海外加速场景不适用。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainItemLocationDetailsInvoker deprecated added in v0.0.90

func (c *CdnClient) ShowDomainItemLocationDetailsInvoker(request *model.ShowDomainItemLocationDetailsRequest) *ShowDomainItemLocationDetailsInvoker

Deprecated: This function is deprecated and will be removed in the future versions. ShowDomainItemLocationDetailsInvoker 批量查询域名的区域、运营商统计明细-按域名单独返回

func (*CdnClient) ShowDomainLocationStats deprecated added in v0.0.78

Deprecated: This function is deprecated and will be removed in the future versions. 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 deprecated added in v0.0.90

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

Deprecated: This function is deprecated and will be removed in the future versions. ShowDomainLocationStatsInvoker 按区域运营商查询域名统计数据

func (*CdnClient) ShowDomainStats deprecated added in v0.0.60

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

Deprecated: This function is deprecated and will be removed in the future versions. 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 deprecated added in v0.0.90

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

Deprecated: This function is deprecated and will be removed in the future versions. ShowDomainStatsInvoker 查询域名统计数据

func (*CdnClient) ShowHistoryTaskDetails

ShowHistoryTaskDetails 查询刷新预热任务详情

查询刷新预热任务详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowHistoryTaskDetailsInvoker added in v0.0.90

func (c *CdnClient) ShowHistoryTaskDetailsInvoker(request *model.ShowHistoryTaskDetailsRequest) *ShowHistoryTaskDetailsInvoker

ShowHistoryTaskDetailsInvoker 查询刷新预热任务详情

func (*CdnClient) ShowHistoryTasks

func (c *CdnClient) ShowHistoryTasks(request *model.ShowHistoryTasksRequest) (*model.ShowHistoryTasksResponse, error)

ShowHistoryTasks 查询刷新预热任务

查询刷新预热任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowHistoryTasksInvoker added in v0.0.90

func (c *CdnClient) ShowHistoryTasksInvoker(request *model.ShowHistoryTasksRequest) *ShowHistoryTasksInvoker

ShowHistoryTasksInvoker 查询刷新预热任务

func (*CdnClient) ShowHttpInfo

func (c *CdnClient) ShowHttpInfo(request *model.ShowHttpInfoRequest) (*model.ShowHttpInfoResponse, error)

ShowHttpInfo 查询HTTPS配置

获取加速域名证书。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowHttpInfoInvoker added in v0.0.90

func (c *CdnClient) ShowHttpInfoInvoker(request *model.ShowHttpInfoRequest) *ShowHttpInfoInvoker

ShowHttpInfoInvoker 查询HTTPS配置

func (*CdnClient) ShowIpInfo

func (c *CdnClient) ShowIpInfo(request *model.ShowIpInfoRequest) (*model.ShowIpInfoResponse, error)

ShowIpInfo 查询IP归属信息

查询IP归属信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowIpInfoInvoker added in v0.0.90

func (c *CdnClient) ShowIpInfoInvoker(request *model.ShowIpInfoRequest) *ShowIpInfoInvoker

ShowIpInfoInvoker 查询IP归属信息

func (*CdnClient) ShowLogs

func (c *CdnClient) ShowLogs(request *model.ShowLogsRequest) (*model.ShowLogsResponse, error)

ShowLogs 日志查询

查询日志下载链接,支持查询30天内的日志信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowLogsInvoker added in v0.0.90

func (c *CdnClient) ShowLogsInvoker(request *model.ShowLogsRequest) *ShowLogsInvoker

ShowLogsInvoker 日志查询

func (*CdnClient) ShowOriginHost

func (c *CdnClient) ShowOriginHost(request *model.ShowOriginHostRequest) (*model.ShowOriginHostResponse, error)

ShowOriginHost 查询回源HOST

查询回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowOriginHostInvoker added in v0.0.90

func (c *CdnClient) ShowOriginHostInvoker(request *model.ShowOriginHostRequest) *ShowOriginHostInvoker

ShowOriginHostInvoker 查询回源HOST

func (*CdnClient) ShowQuota added in v0.0.49

func (c *CdnClient) ShowQuota(request *model.ShowQuotaRequest) (*model.ShowQuotaResponse, error)

ShowQuota 查询用户配额

查询当前用户域名、刷新文件、刷新目录和预热的配额

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowQuotaInvoker added in v0.0.90

func (c *CdnClient) ShowQuotaInvoker(request *model.ShowQuotaRequest) *ShowQuotaInvoker

ShowQuotaInvoker 查询用户配额

func (*CdnClient) ShowRefer

func (c *CdnClient) ShowRefer(request *model.ShowReferRequest) (*model.ShowReferResponse, error)

ShowRefer 查询Referer过滤规则

查询Referer过滤规则。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowReferInvoker added in v0.0.90

func (c *CdnClient) ShowReferInvoker(request *model.ShowReferRequest) *ShowReferInvoker

ShowReferInvoker 查询Referer过滤规则

func (*CdnClient) ShowResponseHeader

func (c *CdnClient) ShowResponseHeader(request *model.ShowResponseHeaderRequest) (*model.ShowResponseHeaderResponse, error)

ShowResponseHeader 查询响应头配置

列举header所有配置。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowResponseHeaderInvoker added in v0.0.90

func (c *CdnClient) ShowResponseHeaderInvoker(request *model.ShowResponseHeaderRequest) *ShowResponseHeaderInvoker

ShowResponseHeaderInvoker 查询响应头配置

func (*CdnClient) ShowTags added in v0.1.1

func (c *CdnClient) ShowTags(request *model.ShowTagsRequest) (*model.ShowTagsResponse, error)

ShowTags 查询资源标签列表配置接口

用于查询资源标签列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowTagsInvoker added in v0.1.1

func (c *CdnClient) ShowTagsInvoker(request *model.ShowTagsRequest) *ShowTagsInvoker

ShowTagsInvoker 查询资源标签列表配置接口

func (*CdnClient) ShowTopUrl deprecated

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

Deprecated: This function is deprecated and will be removed in the future versions. 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 deprecated added in v0.0.90

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

Deprecated: This function is deprecated and will be removed in the future versions. ShowTopUrlInvoker 查询TOP100 URL明细

func (*CdnClient) ShowUrlTaskInfo added in v0.0.103

func (c *CdnClient) ShowUrlTaskInfo(request *model.ShowUrlTaskInfoRequest) (*model.ShowUrlTaskInfoResponse, error)

ShowUrlTaskInfo 查询刷新预热URL记录

查询刷新预热URL记录。如需此接口,请提交工单开通。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowUrlTaskInfoInvoker added in v0.0.103

func (c *CdnClient) ShowUrlTaskInfoInvoker(request *model.ShowUrlTaskInfoRequest) *ShowUrlTaskInfoInvoker

ShowUrlTaskInfoInvoker 查询刷新预热URL记录

func (*CdnClient) UpdateBlackWhiteList

UpdateBlackWhiteList 设置IP黑白名单

设置域名的IP黑白名单。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateBlackWhiteListInvoker added in v0.0.90

func (c *CdnClient) UpdateBlackWhiteListInvoker(request *model.UpdateBlackWhiteListRequest) *UpdateBlackWhiteListInvoker

UpdateBlackWhiteListInvoker 设置IP黑白名单

func (*CdnClient) UpdateCacheRules

func (c *CdnClient) UpdateCacheRules(request *model.UpdateCacheRulesRequest) (*model.UpdateCacheRulesResponse, error)

UpdateCacheRules 设置缓存规则

设置CDN节点上缓存资源的缓存策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateCacheRulesInvoker added in v0.0.90

func (c *CdnClient) UpdateCacheRulesInvoker(request *model.UpdateCacheRulesRequest) *UpdateCacheRulesInvoker

UpdateCacheRulesInvoker 设置缓存规则

func (*CdnClient) UpdateDomainFullConfig added in v0.0.74

UpdateDomainFullConfig 修改域名全量配置接口

修改域名配置接口, 支持修改回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateDomainFullConfigInvoker added in v0.0.90

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

UpdateDomainFullConfigInvoker 修改域名全量配置接口

func (*CdnClient) UpdateDomainMultiCertificates

UpdateDomainMultiCertificates 一个证书批量设置多个域名

一个证书配置多个域名,设置域名强制https回源参数。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateDomainMultiCertificatesInvoker added in v0.0.90

func (c *CdnClient) UpdateDomainMultiCertificatesInvoker(request *model.UpdateDomainMultiCertificatesRequest) *UpdateDomainMultiCertificatesInvoker

UpdateDomainMultiCertificatesInvoker 一个证书批量设置多个域名

func (*CdnClient) UpdateDomainOrigin

func (c *CdnClient) UpdateDomainOrigin(request *model.UpdateDomainOriginRequest) (*model.UpdateDomainOriginResponse, error)

UpdateDomainOrigin 修改源站信息。

修改加速域名的源站配置。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateDomainOriginInvoker added in v0.0.90

func (c *CdnClient) UpdateDomainOriginInvoker(request *model.UpdateDomainOriginRequest) *UpdateDomainOriginInvoker

UpdateDomainOriginInvoker 修改源站信息。

func (*CdnClient) UpdateFollow302Switch

UpdateFollow302Switch 开启/关闭回源跟随

开启此项配置后,当CDN节点回源请求源站返回301/302状态码时,CDN节点会先跳转到301/302对应地址获取资源并缓存后再返回给用户。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateFollow302SwitchInvoker added in v0.0.90

func (c *CdnClient) UpdateFollow302SwitchInvoker(request *model.UpdateFollow302SwitchRequest) *UpdateFollow302SwitchInvoker

UpdateFollow302SwitchInvoker 开启/关闭回源跟随

func (*CdnClient) UpdateHttpsInfo

func (c *CdnClient) UpdateHttpsInfo(request *model.UpdateHttpsInfoRequest) (*model.UpdateHttpsInfoResponse, error)

UpdateHttpsInfo 配置HTTPS

设置加速域名HTTPS。通过配置加速域名的HTTPS证书,并将其部署在全网CDN节点,实现HTTPS安全加速。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateHttpsInfoInvoker added in v0.0.90

func (c *CdnClient) UpdateHttpsInfoInvoker(request *model.UpdateHttpsInfoRequest) *UpdateHttpsInfoInvoker

UpdateHttpsInfoInvoker 配置HTTPS

func (*CdnClient) UpdateOriginHost

func (c *CdnClient) UpdateOriginHost(request *model.UpdateOriginHostRequest) (*model.UpdateOriginHostResponse, error)

UpdateOriginHost 修改回源HOST。

修改回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateOriginHostInvoker added in v0.0.90

func (c *CdnClient) UpdateOriginHostInvoker(request *model.UpdateOriginHostRequest) *UpdateOriginHostInvoker

UpdateOriginHostInvoker 修改回源HOST。

func (*CdnClient) UpdatePrivateBucketAccess

UpdatePrivateBucketAccess 修改私有桶开启关闭状态

修改私有桶开启关闭状态。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdatePrivateBucketAccessInvoker added in v0.0.90

func (c *CdnClient) UpdatePrivateBucketAccessInvoker(request *model.UpdatePrivateBucketAccessRequest) *UpdatePrivateBucketAccessInvoker

UpdatePrivateBucketAccessInvoker 修改私有桶开启关闭状态

func (*CdnClient) UpdateRangeSwitch

func (c *CdnClient) UpdateRangeSwitch(request *model.UpdateRangeSwitchRequest) (*model.UpdateRangeSwitchResponse, error)

UpdateRangeSwitch 开启/关闭Range回源

Range回源是指源站在收到CDN节点回源请求时,根据http请求头中的Range信息返回指定范围的数据给CDN节点。

开启Range回源前需要确认源站是否支持Range请求,若源站不支持Range请求,开启Range回源将导致资源无法缓存。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateRangeSwitchInvoker added in v0.0.90

func (c *CdnClient) UpdateRangeSwitchInvoker(request *model.UpdateRangeSwitchRequest) *UpdateRangeSwitchInvoker

UpdateRangeSwitchInvoker 开启/关闭Range回源

func (*CdnClient) UpdateRefer

func (c *CdnClient) UpdateRefer(request *model.UpdateReferRequest) (*model.UpdateReferResponse, error)

UpdateRefer 设置Referer过滤规则

设置Referer过滤规则。通过设置过滤策略,对访问者身份进行识别和过滤,实现限制访问来源的目的。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateReferInvoker added in v0.0.90

func (c *CdnClient) UpdateReferInvoker(request *model.UpdateReferRequest) *UpdateReferInvoker

UpdateReferInvoker 设置Referer过滤规则

func (*CdnClient) UpdateResponseHeader

UpdateResponseHeader 新增/修改响应头配置

新增/修改域名响应头配置。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateResponseHeaderInvoker added in v0.0.90

func (c *CdnClient) UpdateResponseHeaderInvoker(request *model.UpdateResponseHeaderRequest) *UpdateResponseHeaderInvoker

UpdateResponseHeaderInvoker 新增/修改响应头配置

type CreateDomainInvoker added in v0.0.90

type CreateDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateDomainInvoker) Invoke added in v0.0.90

type CreatePreheatingTasksInvoker added in v0.0.90

type CreatePreheatingTasksInvoker struct {
	*invoker.BaseInvoker
}

func (*CreatePreheatingTasksInvoker) Invoke added in v0.0.90

type CreateRefreshTasksInvoker added in v0.0.90

type CreateRefreshTasksInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateRefreshTasksInvoker) Invoke added in v0.0.90

type CreateTagsInvoker added in v0.1.1

type CreateTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateTagsInvoker) Invoke added in v0.1.1

type DeleteDomainInvoker added in v0.0.90

type DeleteDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteDomainInvoker) Invoke added in v0.0.90

type DisableDomainInvoker added in v0.0.90

type DisableDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*DisableDomainInvoker) Invoke added in v0.0.90

type EnableDomainInvoker added in v0.0.90

type EnableDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*EnableDomainInvoker) Invoke added in v0.0.90

type ListDomainsInvoker added in v0.0.90

type ListDomainsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDomainsInvoker) Invoke added in v0.0.90

type ShowBlackWhiteListInvoker added in v0.0.90

type ShowBlackWhiteListInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowBlackWhiteListInvoker) Invoke added in v0.0.90

type ShowCacheRulesInvoker added in v0.0.90

type ShowCacheRulesInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCacheRulesInvoker) Invoke added in v0.0.90

type ShowCertificatesHttpsInfoInvoker added in v0.0.90

type ShowCertificatesHttpsInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificatesHttpsInfoInvoker) Invoke added in v0.0.90

type ShowDomainDetailInvoker added in v0.0.90

type ShowDomainDetailInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainDetailInvoker) Invoke added in v0.0.90

type ShowDomainFullConfigInvoker added in v0.0.90

type ShowDomainFullConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainFullConfigInvoker) Invoke added in v0.0.90

type ShowDomainItemDetailsInvoker added in v0.0.90

type ShowDomainItemDetailsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainItemDetailsInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type ShowDomainItemLocationDetailsInvoker added in v0.0.90

type ShowDomainItemLocationDetailsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainItemLocationDetailsInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type ShowDomainLocationStatsInvoker added in v0.0.90

type ShowDomainLocationStatsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainLocationStatsInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type ShowDomainStatsInvoker added in v0.0.90

type ShowDomainStatsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainStatsInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type ShowHistoryTaskDetailsInvoker added in v0.0.90

type ShowHistoryTaskDetailsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowHistoryTaskDetailsInvoker) Invoke added in v0.0.90

type ShowHistoryTasksInvoker added in v0.0.90

type ShowHistoryTasksInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowHistoryTasksInvoker) Invoke added in v0.0.90

type ShowHttpInfoInvoker added in v0.0.90

type ShowHttpInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowHttpInfoInvoker) Invoke added in v0.0.90

type ShowIpInfoInvoker added in v0.0.90

type ShowIpInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowIpInfoInvoker) Invoke added in v0.0.90

type ShowLogsInvoker added in v0.0.90

type ShowLogsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowLogsInvoker) Invoke added in v0.0.90

func (i *ShowLogsInvoker) Invoke() (*model.ShowLogsResponse, error)

type ShowOriginHostInvoker added in v0.0.90

type ShowOriginHostInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowOriginHostInvoker) Invoke added in v0.0.90

type ShowQuotaInvoker added in v0.0.90

type ShowQuotaInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowQuotaInvoker) Invoke added in v0.0.90

type ShowReferInvoker added in v0.0.90

type ShowReferInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowReferInvoker) Invoke added in v0.0.90

type ShowResponseHeaderInvoker added in v0.0.90

type ShowResponseHeaderInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowResponseHeaderInvoker) Invoke added in v0.0.90

type ShowTagsInvoker added in v0.1.1

type ShowTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTagsInvoker) Invoke added in v0.1.1

func (i *ShowTagsInvoker) Invoke() (*model.ShowTagsResponse, error)

type ShowTopUrlInvoker added in v0.0.90

type ShowTopUrlInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTopUrlInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type ShowUrlTaskInfoInvoker added in v0.0.103

type ShowUrlTaskInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowUrlTaskInfoInvoker) Invoke added in v0.0.103

type UpdateBlackWhiteListInvoker added in v0.0.90

type UpdateBlackWhiteListInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateBlackWhiteListInvoker) Invoke added in v0.0.90

type UpdateCacheRulesInvoker added in v0.0.90

type UpdateCacheRulesInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateCacheRulesInvoker) Invoke added in v0.0.90

type UpdateDomainFullConfigInvoker added in v0.0.90

type UpdateDomainFullConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDomainFullConfigInvoker) Invoke added in v0.0.90

type UpdateDomainMultiCertificatesInvoker added in v0.0.90

type UpdateDomainMultiCertificatesInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDomainMultiCertificatesInvoker) Invoke added in v0.0.90

type UpdateDomainOriginInvoker added in v0.0.90

type UpdateDomainOriginInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDomainOriginInvoker) Invoke added in v0.0.90

type UpdateFollow302SwitchInvoker added in v0.0.90

type UpdateFollow302SwitchInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateFollow302SwitchInvoker) Invoke added in v0.0.90

type UpdateHttpsInfoInvoker added in v0.0.90

type UpdateHttpsInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateHttpsInfoInvoker) Invoke added in v0.0.90

type UpdateOriginHostInvoker added in v0.0.90

type UpdateOriginHostInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateOriginHostInvoker) Invoke added in v0.0.90

type UpdatePrivateBucketAccessInvoker added in v0.0.90

type UpdatePrivateBucketAccessInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdatePrivateBucketAccessInvoker) Invoke added in v0.0.90

type UpdateRangeSwitchInvoker added in v0.0.90

type UpdateRangeSwitchInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateRangeSwitchInvoker) Invoke added in v0.0.90

type UpdateReferInvoker added in v0.0.90

type UpdateReferInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateReferInvoker) Invoke added in v0.0.90

type UpdateResponseHeaderInvoker added in v0.0.90

type UpdateResponseHeaderInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateResponseHeaderInvoker) 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