Versions in this module Expand all Collapse all v0 v0.9.22 Sep 16, 2020 Changes in this version + func GetOriginProtocol(cli bce.Client, domain string) (string, error) + func GetPeak95Bandwidth(cli bce.Client, startTime, endTime string, domains, tags []string) (peak95Time string, peak95Band int64, err error) + func SetOriginProtocol(cli bce.Client, domain string, originProtocol string) error v0.9.7 Mar 18, 2020 v0.9.6 Nov 26, 2019 v0.9.5 Oct 25, 2019 Changes in this version + func DeleteDomain(cli bce.Client, domain string) error + func DisableDomain(cli bce.Client, domain string) error + func DisableDsa(cli bce.Client) error + func EnableDomain(cli bce.Client, domain string) error + func EnableDsa(cli bce.Client) error + func GetContentEncoding(cli bce.Client, domain string) (string, error) + func GetFileTrim(cli bce.Client, domain string) (bool, error) + func GetMobileAccess(cli bce.Client, domain string) (bool, error) + func GetRangeSwitch(cli bce.Client, domain string) (bool, error) + func ListDomains(cli bce.Client, marker string) ([]string, string, error) + func NewBodyFromJsonObj(obj interface{}) (*bce.Body, error) + func SetAccessLimit(cli bce.Client, domain string, accessLimit *AccessLimit) error + func SetCacheTTL(cli bce.Client, domain string, cacheTTLs []CacheTTL) error + func SetCacheUrlArgs(cli bce.Client, domain string, cacheFullUrl *CacheUrlArgs) error + func SetClientIp(cli bce.Client, domain string, clientIp *ClientIp) error + func SetContentEncoding(cli bce.Client, domain string, enabled bool, encodingType string) error + func SetCors(cli bce.Client, domain string, isAllow bool, originList []string) error + func SetDomainHttps(cli bce.Client, domain string, httpsConfig *HTTPSConfig) error + func SetDomainOrigin(cli bce.Client, domain string, origins []OriginPeer, defaultHost string) error + func SetDomainRequestAuth(cli bce.Client, domain string, requestAuth *RequestAuth) error + func SetDomainSeo(cli bce.Client, domain string, seoSwitch *SeoSwitch) error + func SetDsaConfig(cli bce.Client, domain string, dsaConfig *DSAConfig) error + func SetErrorPage(cli bce.Client, domain string, errorPages []ErrorPage) error + func SetFileTrim(cli bce.Client, domain string, fileTrim bool) error + func SetFollowProtocol(cli bce.Client, domain string, isFollowProtocol bool) error + func SetHttpHeader(cli bce.Client, domain string, httpHeaders []HttpHeader) error + func SetIpACL(cli bce.Client, domain string, blackList []string, whiteList []string) error + func SetLimitRate(cli bce.Client, domain string, limitRate int) error + func SetMediaDrag(cli bce.Client, domain string, mediaDragConf *MediaDragConf) error + func SetMobileAccess(cli bce.Client, domain string, distinguishClient bool) error + func SetRangeSwitch(cli bce.Client, domain string, enabled bool) error + func SetRefererACL(cli bce.Client, domain string, blackList []string, whiteList []string, ...) error + func SetTlsVersions(cli bce.Client, domain string, tlsVersions []string) error + type AccessLimit struct + Enabled bool + Limit int + func GetAccessLimit(cli bce.Client, domain string) (*AccessLimit, error) + type AvgSpeedDetail struct + AvgSpeed int64 + func GetAvgSpeed(cli bce.Client, queryCondition *QueryCondition) ([]AvgSpeedDetail, error) + type AvgSpeedRegionData struct + AvgSpeed int64 + type AvgSpeedRegionDetail struct + Distribution []AvgSpeedRegionData + func GetAvgSpeedByRegion(cli bce.Client, queryCondition *QueryCondition, prov string, isp string) ([]AvgSpeedRegionDetail, error) + type CRecordQueryData struct + EndTime string + Marker string + StartTime string + TaskType string + Url string + type CStatusQueryData struct + EndTime string + Id string + Marker string + StartTime string + Url string + type CacheTTL struct + TTL int + Type string + Value string + Weight int + func GetCacheTTL(cli bce.Client, domain string) ([]CacheTTL, error) + type CacheUrlArgs struct + CacheFullUrl bool + CacheUrlArgs []string + func GetCacheUrlArgs(cli bce.Client, domain string) (*CacheUrlArgs, error) + type CachedDetail struct + CreatedAt string + FinishedAt string + Progress int64 + StartedAt string + Status string + type ClientIp struct + Enabled bool + Name string + func GetClientIp(cli bce.Client, domain string) (*ClientIp, error) + type CorsCfg struct + IsAllow bool + Origins []string + func GetCors(cli bce.Client, domain string) (*CorsCfg, error) + type DSAConfig struct + Comment string + Enabled bool + Rules []DSARule + type DSADomain struct + Comment string + Domain string + ModifyTime string + Rules []DSARule + func ListDsaDomains(cli bce.Client) ([]DSADomain, error) + type DSARule struct + Type string + Value string + type DetailBase struct + Key string + Timestamp string + type DomainConfig struct + CacheTTL []CacheTTL + Cname string + CreateTime string + DefaultHost string + Domain string + FollowProtocol bool + Form string + Https *HTTPSConfig + IsBan string + LastModifyTime string + LimitRate int + Origin []OriginPeer + RequestAuth *RequestAuth + SeoSwitch *SeoSwitch + Status string + func GetDomainConfig(cli bce.Client, domain string) (*DomainConfig, error) + type DomainCreatedInfo struct + Cname string + Domain string + Status string + func CreateDomain(cli bce.Client, domain string, originInit *OriginInit) (*DomainCreatedInfo, error) + type DomainStatus struct + Domain string + Status string + func GetDomainStatus(cli bce.Client, status string, rule string) ([]DomainStatus, error) + type DomainValidInfo struct + Domain string + IsValid bool + Message string + func IsValidDomain(cli bce.Client, domain string) (*DomainValidInfo, error) + type ErrorDetail struct + Counters []ErrorKvCounter + func GetError(cli bce.Client, queryCondition *QueryCondition) ([]ErrorDetail, error) + type ErrorKvCounter struct + Code string + Counters []KvCounter + type ErrorPage struct + Code int + RedirectCode int + Url string + func GetErrorPage(cli bce.Client, domain string) ([]ErrorPage, error) + type FlowDetail struct + Bps int64 + Flow float64 + func GetFlow(cli bce.Client, queryCondition *QueryCondition, level string) ([]FlowDetail, error) + func GetFlowByProtocol(cli bce.Client, queryCondition *QueryCondition, protocol string) ([]FlowDetail, error) + func GetSrcFlow(cli bce.Client, queryCondition *QueryCondition) ([]FlowDetail, error) + type FlowRegionData struct + Bps int64 + Flow float64 + type FlowRegionDetail struct + Distribution []FlowRegionData + func GetFlowByRegion(cli bce.Client, queryCondition *QueryCondition, prov string, isp string) ([]FlowRegionDetail, error) + type HTTPSConfig struct + CertId string + Enabled bool + Http2Enabled bool + HttpOrigin bool + HttpRedirect bool + HttpRedirectCode int + HttpsRedirect bool + HttpsRedirectCode int + SslVersion string + func GetDomainHttps(cli bce.Client, domain string) (*HTTPSConfig, error) + type HitDetail struct + HitRate float64 + func GetPvHit(cli bce.Client, queryCondition *QueryCondition) ([]HitDetail, error) + func GetRealHit(cli bce.Client, queryCondition *QueryCondition) ([]HitDetail, error) + type HttpCodeDetail struct + Counters []KvCounter + func GetHttpCode(cli bce.Client, queryCondition *QueryCondition) ([]HttpCodeDetail, error) + func GetSrcHttpCode(cli bce.Client, queryCondition *QueryCondition) ([]HttpCodeDetail, error) + type HttpCodeRegionData struct + Counters []HttpCodeDetail + type HttpCodeRegionDetail struct + Distribution []HttpCodeRegionData + func GetHttpCodeByRegion(cli bce.Client, queryCondition *QueryCondition, prov string, isp string) ([]HttpCodeRegionDetail, error) + type HttpHeader struct + Action string + Describe string + Header string + Type string + Value string + func GetHttpHeader(cli bce.Client, domain string) ([]HttpHeader, error) + type IpACL struct + BlackList []string + WhiteList []string + func GetIpACL(cli bce.Client, domain string) (*IpACL, error) + type IpInfo struct + IsCdnIp bool + Isp string + Region string + func GetIpInfo(cli bce.Client, ip string, action string) (*IpInfo, error) + type KvCounter struct + Count int64 + Name int64 + type LogBase struct + Domain string + Name string + Size int64 + Url string + type LogEntry struct + func GetDomainLog(cli bce.Client, domain string, timeInterval TimeInterval) ([]LogEntry, error) + func GetMultiDomainLog(cli bce.Client, queryData *LogQueryData) ([]LogEntry, error) + type LogQueryData struct + Domains []string + PageNo int + PageSize int + Type int + type MediaCfg struct + DragMode string + EndArgName string + FileSuffix []string + StartArgName string + type MediaDragConf struct + Flv *MediaCfg + Mp4 *MediaCfg + func GetMediaDrag(cli bce.Client, domain string) (*MediaDragConf, error) + type NetSite struct + Isp string + Location string + type OriginInit struct + DefaultHost string + Form string + Origin []OriginPeer + type OriginPeer struct + Backup bool + Follow302 bool + Host string + Peer string + type PVRegionData struct + Pv int64 + Qps int64 + type PrefetchDetail struct + Task PrefetchTask + type PrefetchId string + func Prefetch(cli bce.Client, tasks []PrefetchTask) (PrefetchId, error) + type PrefetchStatus struct + Details []PrefetchDetail + IsTruncated bool + NextMarker string + func GetPrefetchStatus(cli bce.Client, queryData *CStatusQueryData) (*PrefetchStatus, error) + type PrefetchTask struct + Speed int64 + StartTime string + Url string + type PurgeTask struct + Type string + Url string + type PurgedDetail struct + Task PurgeTask + type PurgedId string + func Purge(cli bce.Client, tasks []PurgeTask) (PurgedId, error) + type PurgedStatus struct + Details []PurgedDetail + IsTruncated bool + NextMarker string + func GetPurgedStatus(cli bce.Client, queryData *CStatusQueryData) (*PurgedStatus, error) + type PvDetail struct + Pv int64 + Qps int64 + func GetPv(cli bce.Client, queryCondition *QueryCondition, level string) ([]PvDetail, error) + func GetSrcPv(cli bce.Client, queryCondition *QueryCondition) ([]PvDetail, error) + type PvRegionDetail struct + Distribution []PVRegionData + func GetPvByRegion(cli bce.Client, queryCondition *QueryCondition, prov string, isp string) ([]PvRegionDetail, error) + type QueryCondition struct + EndTime string + GroupBy string + Key []string + KeyType int + Period int + StartTime string + type QuotaDetail struct + DirQuota int64 + DirRemain int64 + UrlQuota int64 + UrlRemain int64 + func GetQuota(cli bce.Client) (*QuotaDetail, error) + type RecordDetail struct + CreatedAt string + FinishedAt string + Operator string + Progress int64 + Reason string + StartedAt string + Status string + Type string + Url string + type RecordDetails struct + Details []RecordDetail + IsTruncated bool + NextMarker string + func GetCacheOpRecords(cli bce.Client, queryData *CRecordQueryData) (*RecordDetails, error) + type RefererACL struct + AllowEmpty bool + BlackList []string + WhiteList []string + func GetRefererACL(cli bce.Client, domain string) (*RefererACL, error) + type RequestAuth struct + Key1 string + Key2 string + SignArg string + TimeArg string + Timeout int + Type string + WhiteList []string + type SeoSwitch struct + DirectlyOrigin string + PushRecord string + func GetDomainSeo(cli bce.Client, domain string) (*SeoSwitch, error) + type TimeInterval struct + EndTime string + StartTime string + type TopNCounter struct + Flow float64 + Name string + Pv int64 + type TopNDetail struct + Counters []TopNCounter + TotalFlow float64 + TotalPv int64 + func GetTopNDomains(cli bce.Client, queryCondition *QueryCondition, httpCode string) ([]TopNDetail, error) + func GetTopNReferers(cli bce.Client, queryCondition *QueryCondition, httpCode string) ([]TopNDetail, error) + func GetTopNUrls(cli bce.Client, queryCondition *QueryCondition, httpCode string) ([]TopNDetail, error) + type UvDetail struct + Uv int64 + func GetUv(cli bce.Client, queryCondition *QueryCondition) ([]UvDetail, error)