Documentation ¶
Index ¶
- Constants
- func AddCertificate(client *ucdn.UCDNClient, name, userCert, privateKey, caCert string) error
- func DeleteCertificate(client *ucdn.UCDNClient, name string) error
- func DeleteDomain(client *ucdn.UCDNClient, domainId string) error
- func GetCertificates(client *ucdn.UCDNClient, nameList ...string) ([]*ucdn.CertList, error)
- func Retryable(code int) bool
- func UpdateCdnDomain(client *ucdn.UCDNClient, req *UpdateCdnDomainRequest) error
- func UpdateDomainHttpsConfig(client *ucdn.UCDNClient, domainId string, enable bool, certName string) error
- func WaitForDomainStatus(client *ucdn.UCDNClient, domainId string, targetStatus []string) (string, error)
- type CdnCacheConfig
- type CdnCacheRule
- type CreateCdnDomainRequest
- type CreateCdnDomainResponse
- type CreateDomainCacheConf
- type CreateDomainConfig
- type DomainConfigInfo
- type UpdateCdnAccessControlConfig
- type UpdateCdnAdvancedConfig
- type UpdateCdnDomainConfig
- type UpdateCdnDomainRequest
- type UpdateCdnHttpsRequest
- type UpdateCdnOriginConfig
Constants ¶
View Source
const ( DomainStatusEnable = "enable" DomainStatusDelete = "delete" DomainStatusCheckFail = "checkFail" )
View Source
const ( ERR_CODE_RATE_LIMIT = 153 ERR_CODE_TOO_OFTEN = 44025 )
Variables ¶
This section is empty.
Functions ¶
func AddCertificate ¶
func AddCertificate(client *ucdn.UCDNClient, name, userCert, privateKey, caCert string) error
func DeleteCertificate ¶
func DeleteCertificate(client *ucdn.UCDNClient, name string) error
func DeleteDomain ¶
func DeleteDomain(client *ucdn.UCDNClient, domainId string) error
func GetCertificates ¶
Get ceritificate with specific cert name. If nameList is nil, this function will return all certificates.
func UpdateCdnDomain ¶
func UpdateCdnDomain(client *ucdn.UCDNClient, req *UpdateCdnDomainRequest) error
func UpdateDomainHttpsConfig ¶
func WaitForDomainStatus ¶
Types ¶
type CdnCacheConfig ¶
type CdnCacheConfig struct { CacheHost *string CacheList []CdnCacheRule HttpCodeCacheList []CdnCacheRule }
type CdnCacheRule ¶
type CreateCdnDomainRequest ¶
type CreateCdnDomainRequest struct { request.CommonBase DomainList []CreateDomainConfig }
type CreateCdnDomainResponse ¶
type CreateDomainCacheConf ¶
type CreateDomainConfig ¶
type DomainConfigInfo ¶
type DomainConfigInfo struct { AccessControlConf ucdn.AccessControlConf AdvancedConf ucdn.AdvancedConf AreaCode string CacheConf CdnCacheConfig CdnType string CertNameAbroad string CertNameCn string Cname string CreateTime int Domain string DomainId string HttpsStatusAbroad string HttpsStatusCn string OriginConf ucdn.OriginConf Status string Tag string TestUrl string }
func GetUcdnDomainConfig ¶
func GetUcdnDomainConfig(client *ucdn.UCDNClient, domainId string) (*DomainConfigInfo, error)
type UpdateCdnAdvancedConfig ¶
type UpdateCdnDomainConfig ¶
type UpdateCdnDomainConfig struct { DomainId string OriginConf UpdateCdnOriginConfig AccessControlConf UpdateCdnAccessControlConfig CacheConf CdnCacheConfig AdvancedConf UpdateCdnAdvancedConfig }
type UpdateCdnDomainRequest ¶
type UpdateCdnDomainRequest struct { request.CommonBase DomainList []UpdateCdnDomainConfig }
type UpdateCdnHttpsRequest ¶
Click to show internal directories.
Click to hide internal directories.