Documentation
¶
Index ¶
- Constants
- Variables
- type AddDomainRequest
- type CacheConfigRequest
- type CacheExpiredConfig
- type CdnClient
- func (client *CdnClient) AddCdnDomain(req AddDomainRequest) (CdnCommonResponse, error)
- func (client *CdnClient) DeleteCacheExpiredConfig(req DeleteCacheConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) DeleteCdnDomain(req DescribeDomainRequest) (CdnCommonResponse, error)
- func (client *CdnClient) DeleteHttpHeaderConfig(req DeleteHttpHeaderConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) DescribeCdnDomainDetail(req DescribeDomainRequest) (DomainResponse, error)
- func (client *CdnClient) DescribeCdnService() (ServiceResponse, error)
- func (client *CdnClient) DescribeDomainConfigs(req DomainConfigRequest) (DomainConfigResponse, error)
- func (client *CdnClient) DescribeDomainsBySource(req DescribeDomainsBySourceRequest) (DomainBySourceResponse, error)
- func (client *CdnClient) DescribeRefreshQuota() (QuotaResponse, error)
- func (client *CdnClient) DescribeRefreshTasks(req DescribeRequest) (DescribeResponse, error)
- func (client *CdnClient) DescribeUserDomains(req DescribeDomainsRequest) (DomainsResponse, error)
- func (client *CdnClient) ModifyCdnDomain(req ModifyDomainRequest) (CdnCommonResponse, error)
- func (client *CdnClient) ModifyCdnService(req ServiceRequest) (CdnCommonResponse, error)
- func (client *CdnClient) ModifyFileCacheExpiredConfig(req ModifyCacheConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) ModifyHttpHeaderConfig(req ModifyHttpHeaderConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) ModifyPathCacheExpiredConfig(req ModifyCacheConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) OpenCdnService(req ServiceRequest) (CdnCommonResponse, error)
- func (client *CdnClient) PushObjectCache(req RefreshRequest) (PushResponse, error)
- func (client *CdnClient) RefreshObjectCaches(req RefreshRequest) (RefreshResponse, error)
- func (client *CdnClient) SetDomainServerCertificate(req CertificateRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetErrorPageConfig(req ErrorPageConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetFileCacheExpiredConfig(req CacheConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetForceRedirectConfig(req RedirectConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetHttpHeaderConfig(req HttpHeaderConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetIgnoreQueryStringConfig(req QueryStringConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetIpBlackListConfig(req IpBlackRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetOptimizeConfig(req ConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetPageCompressConfig(req ConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetPathCacheExpiredConfig(req CacheConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetRangeConfig(req ConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetRefererConfig(req ReferConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetReqAuthConfig(req ReqAuthConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetSourceHostConfig(req HostConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) SetVideoSeekConfig(req ConfigRequest) (CdnCommonResponse, error)
- func (client *CdnClient) StartCdnDomain(req DescribeDomainRequest) (CdnCommonResponse, error)
- func (client *CdnClient) StopCdnDomain(req DescribeDomainRequest) (CdnCommonResponse, error)
- type CdnCommonResponse
- type CertificateRequest
- type ConfigRequest
- type DeleteCacheConfigRequest
- type DeleteHttpHeaderConfigRequest
- type DescribeDomainRequest
- type DescribeDomainsBySourceRequest
- type DescribeDomainsRequest
- type DescribeRequest
- type DescribeResponse
- type DomainBySourceResponse
- type DomainConfigRequest
- type DomainConfigResponse
- type DomainConfigs
- type DomainDetail
- type DomainInfo
- type DomainResponse
- type Domains
- type DomainsData
- type DomainsResponse
- type ErrorPageConfigRequest
- type HostConfigRequest
- type HttpHeaderConfig
- type HttpHeaderConfigRequest
- type IpBlackRequest
- type LogDetail
- type ModifyCacheConfigRequest
- type ModifyDomainRequest
- type ModifyHttpHeaderConfigRequest
- type MonitorDataItem
- type PushResponse
- type QueryStringConfigRequest
- type QuotaResponse
- type RedirectConfigRequest
- type ReferConfigRequest
- type RefreshRequest
- type RefreshResponse
- type ReqAuthConfigRequest
- type Service
- type ServiceRequest
- type ServiceResponse
- type Task
- type TaskItem
Constants ¶
View Source
const ( // CDNDefaultEndpoint is the default API endpoint of CDN services CDNDefaultEndpoint = "https://cdn.aliyuncs.com" CDNAPIVersion = "2014-11-11" )
View Source
const ( Web = "web" Download = "download" Video = "video" LiveStream = "liveStream" Ipaddr = "ipaddr" Domain = "domain" OSS = "oss" Domestic = "domestic" Overseas = "overseas" Global = "global" ContentType = "Content-Type" CacheControl = "Cache-Control" ContentDisposition = "Content-Disposition" ContentLanguage = "Content-Language" Expires = "Expires" AccessControlAllowOrigin = "Access-Control-Allow-Origin" AccessControlAllowMethods = "Access-Control-Allow-Methods" AccessControlMaxAge = "Access-Control-Max-Age" )
Variables ¶
View Source
var CdnTypes = []string{Web, Download, Video, LiveStream}
View Source
var HeaderKeys = []string{ContentType, CacheControl, ContentDisposition, ContentLanguage, Expires, AccessControlAllowMethods, AccessControlAllowOrigin, AccessControlMaxAge}
View Source
var Scopes = []string{Domestic, Overseas, Global}
View Source
var SourceTypes = []string{Ipaddr, Domain, OSS}
Functions ¶
This section is empty.
Types ¶
type AddDomainRequest ¶
type CacheConfigRequest ¶
type CacheExpiredConfig ¶
type CdnClient ¶
func NewClientWithEndpoint ¶
func (*CdnClient) AddCdnDomain ¶
func (client *CdnClient) AddCdnDomain(req AddDomainRequest) (CdnCommonResponse, error)
func (*CdnClient) DeleteCacheExpiredConfig ¶
func (client *CdnClient) DeleteCacheExpiredConfig(req DeleteCacheConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) DeleteCdnDomain ¶
func (client *CdnClient) DeleteCdnDomain(req DescribeDomainRequest) (CdnCommonResponse, error)
func (*CdnClient) DeleteHttpHeaderConfig ¶
func (client *CdnClient) DeleteHttpHeaderConfig(req DeleteHttpHeaderConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) DescribeCdnDomainDetail ¶
func (client *CdnClient) DescribeCdnDomainDetail(req DescribeDomainRequest) (DomainResponse, error)
func (*CdnClient) DescribeCdnService ¶
func (client *CdnClient) DescribeCdnService() (ServiceResponse, error)
func (*CdnClient) DescribeDomainConfigs ¶
func (client *CdnClient) DescribeDomainConfigs(req DomainConfigRequest) (DomainConfigResponse, error)
func (*CdnClient) DescribeDomainsBySource ¶
func (client *CdnClient) DescribeDomainsBySource(req DescribeDomainsBySourceRequest) (DomainBySourceResponse, error)
func (*CdnClient) DescribeRefreshQuota ¶
func (client *CdnClient) DescribeRefreshQuota() (QuotaResponse, error)
func (*CdnClient) DescribeRefreshTasks ¶
func (client *CdnClient) DescribeRefreshTasks(req DescribeRequest) (DescribeResponse, error)
func (*CdnClient) DescribeUserDomains ¶
func (client *CdnClient) DescribeUserDomains(req DescribeDomainsRequest) (DomainsResponse, error)
func (*CdnClient) ModifyCdnDomain ¶
func (client *CdnClient) ModifyCdnDomain(req ModifyDomainRequest) (CdnCommonResponse, error)
func (*CdnClient) ModifyCdnService ¶
func (client *CdnClient) ModifyCdnService(req ServiceRequest) (CdnCommonResponse, error)
func (*CdnClient) ModifyFileCacheExpiredConfig ¶
func (client *CdnClient) ModifyFileCacheExpiredConfig(req ModifyCacheConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) ModifyHttpHeaderConfig ¶
func (client *CdnClient) ModifyHttpHeaderConfig(req ModifyHttpHeaderConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) ModifyPathCacheExpiredConfig ¶
func (client *CdnClient) ModifyPathCacheExpiredConfig(req ModifyCacheConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) OpenCdnService ¶
func (client *CdnClient) OpenCdnService(req ServiceRequest) (CdnCommonResponse, error)
func (*CdnClient) PushObjectCache ¶
func (client *CdnClient) PushObjectCache(req RefreshRequest) (PushResponse, error)
func (*CdnClient) RefreshObjectCaches ¶
func (client *CdnClient) RefreshObjectCaches(req RefreshRequest) (RefreshResponse, error)
func (*CdnClient) SetDomainServerCertificate ¶
func (client *CdnClient) SetDomainServerCertificate(req CertificateRequest) (CdnCommonResponse, error)
func (*CdnClient) SetErrorPageConfig ¶
func (client *CdnClient) SetErrorPageConfig(req ErrorPageConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetFileCacheExpiredConfig ¶
func (client *CdnClient) SetFileCacheExpiredConfig(req CacheConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetForceRedirectConfig ¶
func (client *CdnClient) SetForceRedirectConfig(req RedirectConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetHttpHeaderConfig ¶
func (client *CdnClient) SetHttpHeaderConfig(req HttpHeaderConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetIgnoreQueryStringConfig ¶
func (client *CdnClient) SetIgnoreQueryStringConfig(req QueryStringConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetIpBlackListConfig ¶
func (client *CdnClient) SetIpBlackListConfig(req IpBlackRequest) (CdnCommonResponse, error)
func (*CdnClient) SetOptimizeConfig ¶
func (client *CdnClient) SetOptimizeConfig(req ConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetPageCompressConfig ¶
func (client *CdnClient) SetPageCompressConfig(req ConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetPathCacheExpiredConfig ¶
func (client *CdnClient) SetPathCacheExpiredConfig(req CacheConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetRangeConfig ¶
func (client *CdnClient) SetRangeConfig(req ConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetRefererConfig ¶
func (client *CdnClient) SetRefererConfig(req ReferConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetReqAuthConfig ¶
func (client *CdnClient) SetReqAuthConfig(req ReqAuthConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetSourceHostConfig ¶
func (client *CdnClient) SetSourceHostConfig(req HostConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) SetVideoSeekConfig ¶
func (client *CdnClient) SetVideoSeekConfig(req ConfigRequest) (CdnCommonResponse, error)
func (*CdnClient) StartCdnDomain ¶
func (client *CdnClient) StartCdnDomain(req DescribeDomainRequest) (CdnCommonResponse, error)
func (*CdnClient) StopCdnDomain ¶
func (client *CdnClient) StopCdnDomain(req DescribeDomainRequest) (CdnCommonResponse, error)
type CdnCommonResponse ¶
type CertificateRequest ¶
type ConfigRequest ¶
type DescribeDomainRequest ¶
type DescribeDomainRequest struct {
DomainName string
}
type DescribeDomainsBySourceRequest ¶
type DescribeDomainsBySourceRequest struct {
Sources string
}
type DescribeDomainsRequest ¶
type DescribeDomainsRequest struct {
//optional
common.Pagination
DomainName string
DomainStatus string
DomainSearchType string
}
type DescribeRequest ¶
type DescribeRequest struct {
// optional
TaskId string
ObjectPath string
common.Pagination
}
type DescribeResponse ¶
type DescribeResponse struct {
CdnCommonResponse
common.PaginationResult
Tasks struct {
CDNTask []Task
}
}
type DomainBySourceResponse ¶
type DomainBySourceResponse struct {
CdnCommonResponse
Sources string
DomainsList struct {
DomainsData []DomainsData
}
}
type DomainConfigRequest ¶
type DomainConfigResponse ¶
type DomainConfigResponse struct {
CdnCommonResponse
DomainConfigs DomainConfigs
}
type DomainConfigs ¶
type DomainConfigs struct {
PageCompressConfig struct {
Enable string
ConfigId string
Status string
}
WafConfig struct {
Enable string
}
IgnoreQueryStringConfig struct {
Enable string
ConfigId string
Status string
HashKeyArgs string
}
VideoSeekConfig struct {
Enable string
ConfigId string
Status string
}
ReqAuthConfig struct {
Key1 string
Key2 string
AuthType string
TimeOut string
}
RangeConfig struct {
Enable string
ConfigId string
Status string
}
SrcHostConfig struct {
DomainName string
}
OptimizeConfig struct {
Enable string
ConfigId string
Status string
}
ErrorPageConfig struct {
PageType string
CustomPageUrl string
ErrorCode string
}
RefererConfig struct {
AllowEmpty string
ReferType string
ReferList string
}
CcConfig struct {
Enable string
AllowIps string
BlockIps string
ConfigId string
Status string
}
HttpHeaderConfigs struct {
HttpHeaderConfig []HttpHeaderConfig
}
CacheExpiredConfigs struct {
CacheExpiredConfig []CacheExpiredConfig
}
NotifyUrlConfig struct {
Enable string
NotifyUrl string
}
RedirectTypeConfig struct {
RedirectType string
}
}
type DomainDetail ¶
type DomainInfo ¶
type DomainResponse ¶
type DomainResponse struct {
CdnCommonResponse
GetDomainDetailModel DomainDetail
}
type DomainsData ¶
type DomainsData struct {
Source string
Domains struct {
// contains filtered or unexported fields
}
DomainInfos struct {
// contains filtered or unexported fields
}
}
type DomainsResponse ¶
type DomainsResponse struct {
CdnCommonResponse
common.PaginationResult
Domains struct {
PageData []Domains
}
}
type ErrorPageConfigRequest ¶
type HostConfigRequest ¶
type HttpHeaderConfig ¶
type HttpHeaderConfigRequest ¶
type IpBlackRequest ¶
type ModifyCacheConfigRequest ¶
type ModifyCacheConfigRequest struct {
CacheConfigRequest
ConfigID string
}
type ModifyDomainRequest ¶
type ModifyHttpHeaderConfigRequest ¶
type ModifyHttpHeaderConfigRequest struct {
HttpHeaderConfigRequest
ConfigID string
}
type MonitorDataItem ¶
type PushResponse ¶
type PushResponse struct {
CdnCommonResponse
PushTaskId string
}
type QuotaResponse ¶
type QuotaResponse struct {
CdnCommonResponse
UrlQuota string
DirQuota string
UrlRemain string
DirRemain string
}
type RedirectConfigRequest ¶
type ReferConfigRequest ¶
type RefreshRequest ¶
type RefreshResponse ¶
type RefreshResponse struct {
CdnCommonResponse
RefreshTaskId string
}
type ReqAuthConfigRequest ¶
type ServiceRequest ¶
type ServiceRequest struct {
InternetChargeType string
}
type ServiceResponse ¶
type ServiceResponse struct {
CdnCommonResponse
Service
}
Click to show internal directories.
Click to hide internal directories.