Documentation
¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudCdnDomainVerifyRecord() *schema.Resource
- func DataSourceTencentCloudCdnDomains() *schema.Resource
- func GetUrlsHash(urls []string) string
- func ResourceTencentCloudCdnDomain() *schema.Resource
- func ResourceTencentCloudUrlPurge() *schema.Resource
- func ResourceTencentCloudUrlPush() *schema.Resource
- type CdnService
- func (me *CdnService) CreateVerifyRecord(ctx context.Context, domain string) (resp *cdn.CreateVerifyRecordResponseParams, errRet error)
- func (me *CdnService) DeleteDomain(ctx context.Context, domain string) error
- func (me *CdnService) DescribeDomainsConfigByDomain(ctx context.Context, domain string) (domainConfig *cdn.DetailDomain, errRet error)
- func (me *CdnService) DescribeDomainsConfigByFilters(ctx context.Context, filterMap map[string]interface{}) (domainConfig []*cdn.DetailDomain, errRet error)
- func (me *CdnService) DescribePurgeTasks(ctx context.Context, request *cdn.DescribePurgeTasksRequest) (task []*cdn.PurgeTask, errRet error)
- func (me *CdnService) DescribePushTasks(ctx context.Context, request *cdn.DescribePushTasksRequest) (task []*cdn.PushTask, errRet error)
- func (me *CdnService) PurgeUrlsCache(ctx context.Context, request *cdn.PurgeUrlsCacheRequest) (taskId string, errRet error)
- func (me *CdnService) PushUrlsCache(ctx context.Context, request *cdn.PushUrlsCacheRequest) (taskId string, errRet error)
- func (me *CdnService) StartDomain(ctx context.Context, domain string) error
- func (me *CdnService) StopDomain(ctx context.Context, domain string) error
- func (me *CdnService) UpdateDomainConfig(ctx context.Context, request *cdn.UpdateDomainConfigRequest) (errRet error)
- func (me *CdnService) VerifyDomainRecord(ctx context.Context, domain string) (result bool, errRet error)
- type CdnVerifyRecordResponse
- type DomainService
- type TagService
- func (me *TagService) DeleteTagResourceById(ctx context.Context, tagKey string, tagValue string) (errRet error)
- func (me *TagService) DeleteTagTagAttachmentById(ctx context.Context, tagKey string, resource string) (errRet error)
- func (me *TagService) DescribeProjectById(ctx context.Context, projectId uint64) (project *tag.Project, disable *uint64, errRet error)
- func (me *TagService) DescribeProjects(ctx context.Context, param map[string]interface{}) (project []*tag.Project, errRet error)
- func (me *TagService) DescribeResourceTags(ctx context.Context, serviceType, resourceType, region, resourceId string) (tags map[string]string, err error)
- func (me *TagService) DescribeTagResourceById(ctx context.Context, tagKey string, tagValue string) (tagRes *tag.Tag, errRet error)
- func (me *TagService) DescribeTagTagAttachmentById(ctx context.Context, tagKey string, tagValue string, resource string) (resourceTag *tag.ResourceTagMapping, errRet error)
- func (me *TagService) DisableProjectById(ctx context.Context, projectId uint64) (errRet error)
- func (me *TagService) ModifyTags(ctx context.Context, resourceName string, replaceTags map[string]string, ...) error
Constants ¶
View Source
const ( CDN_SERVICE_TYPE_WEB = "web" CDN_SERVICE_TYPE_DOWNLOAD = "download" CDN_SERVICE_TYPE_MEDIA = "media" CDN_SERVICE_TYPE_HYBIRD = "hybrid" CDN_SERVICE_TYPE_DYNAMIC = "dynamic" CDN_ORIGIN_TYPE_DOMAIN = "domain" CDN_ORIGIN_TYPE_COS = "cos" CDN_ORIGIN_TYPE_IP = "ip" CDN_ORIGIN_TYPE_IPV6 = "ipv6" CDN_ORIGIN_TYPE_IP_IPV6 = "ip_ipv6" CDN_ORIGIN_PULL_PROTOCOL_HTTP = "http" CDN_ORIGIN_PULL_PROTOCOL_HTTPS = "https" CDN_ORIGIN_PULL_PROTOCOL_FOLLOW = "follow" CDN_AREA_MAINLAND = "mainland" CDN_AREA_OVERSEAS = "overseas" CDN_AREA_GLOBAL = "global" CDN_SWITCH_ON = "on" CDN_SWITCH_OFF = "off" CDN_DOMAIN_STATUS_ONLINE = "online" CDN_DOMAIN_STATUS_OFFLINE = "offline" CDN_DOMAIN_STATUS_PROCESSING = "processing" CDN_SERVICE_NAME = "cdn" CDN_RESOURCE_NAME_DOMAIN = "domain" CDN_HOST_NOT_FOUND = "ResourceNotFound.CdnHostNotExists" CDN_HOST_EXISTS = "ResourceInUse.CdnHostExists" CDN_DOMAIN_CONFIG_ERROR = "FailedOperation.CdnConfigError" CDN_RULE_TYPE_ALL = "all" CDN_RULE_TYPE_FILE = "file" CDN_RULE_TYPE_DIRECTORY = "directory" CDN_RULE_TYPE_PATH = "path" CDN_RULE_TYPE_INDEX = "index" CDN_RULE_TYPE_DEFAULT = "default" CDN_RULE_PATH = "no max-age" )
View Source
const DESCRIBE_TAGS_LIMIT = 20
Variables ¶
View Source
var CDN_AREA = []string{ CDN_AREA_MAINLAND, CDN_AREA_OVERSEAS, CDN_AREA_GLOBAL, }
View Source
var CDN_BACKUP_ORIGIN_TYPE = []string{ CDN_ORIGIN_TYPE_IP, CDN_ORIGIN_TYPE_DOMAIN, }
View Source
var CDN_FORCE_REDIRECT_TYPE = []string{ CDN_ORIGIN_PULL_PROTOCOL_HTTP, CDN_ORIGIN_PULL_PROTOCOL_HTTPS, }
View Source
var CDN_HEADER_RULE = []string{ CDN_RULE_TYPE_ALL, CDN_RULE_TYPE_FILE, CDN_RULE_TYPE_DIRECTORY, CDN_RULE_TYPE_PATH, }
View Source
var CDN_HTTPS_SWITCH = []string{ CDN_DOMAIN_STATUS_ONLINE, CDN_DOMAIN_STATUS_OFFLINE, CDN_DOMAIN_STATUS_PROCESSING, }
View Source
var CDN_ORIGIN_PULL_PROTOCOL = []string{ CDN_ORIGIN_PULL_PROTOCOL_HTTP, CDN_ORIGIN_PULL_PROTOCOL_HTTPS, CDN_ORIGIN_PULL_PROTOCOL_FOLLOW, }
View Source
var CDN_ORIGIN_TYPE = []string{ CDN_ORIGIN_TYPE_DOMAIN, CDN_ORIGIN_TYPE_COS, CDN_ORIGIN_TYPE_IP, CDN_ORIGIN_TYPE_IPV6, CDN_ORIGIN_TYPE_IP_IPV6, }
View Source
var CDN_RULE_TYPE = []string{ CDN_RULE_TYPE_ALL, CDN_RULE_TYPE_FILE, CDN_RULE_TYPE_DIRECTORY, CDN_RULE_TYPE_PATH, CDN_RULE_TYPE_INDEX, CDN_RULE_TYPE_DEFAULT, }
View Source
var CDN_SERVICE_TYPE = []string{ CDN_SERVICE_TYPE_WEB, CDN_SERVICE_TYPE_DOWNLOAD, CDN_SERVICE_TYPE_MEDIA, CDN_SERVICE_TYPE_HYBIRD, CDN_SERVICE_TYPE_DYNAMIC, }
View Source
var CDN_SWITCH = []string{ CDN_SWITCH_OFF, CDN_SWITCH_ON, }
Functions ¶
func GetUrlsHash ¶
Types ¶
type CdnService ¶
type CdnService struct {
// contains filtered or unexported fields
}
func NewCdnService ¶
func NewCdnService(client *connectivity.TencentCloudClient) CdnService
func (*CdnService) CreateVerifyRecord ¶
func (me *CdnService) CreateVerifyRecord(ctx context.Context, domain string) (resp *cdn.CreateVerifyRecordResponseParams, errRet error)
func (*CdnService) DeleteDomain ¶
func (me *CdnService) DeleteDomain(ctx context.Context, domain string) error
func (*CdnService) DescribeDomainsConfigByDomain ¶
func (me *CdnService) DescribeDomainsConfigByDomain(ctx context.Context, domain string) (domainConfig *cdn.DetailDomain, errRet error)
func (*CdnService) DescribeDomainsConfigByFilters ¶
func (me *CdnService) DescribeDomainsConfigByFilters(ctx context.Context, filterMap map[string]interface{}) (domainConfig []*cdn.DetailDomain, errRet error)
func (*CdnService) DescribePurgeTasks ¶
func (me *CdnService) DescribePurgeTasks(ctx context.Context, request *cdn.DescribePurgeTasksRequest) (task []*cdn.PurgeTask, errRet error)
func (*CdnService) DescribePushTasks ¶
func (me *CdnService) DescribePushTasks(ctx context.Context, request *cdn.DescribePushTasksRequest) (task []*cdn.PushTask, errRet error)
func (*CdnService) PurgeUrlsCache ¶
func (me *CdnService) PurgeUrlsCache(ctx context.Context, request *cdn.PurgeUrlsCacheRequest) (taskId string, errRet error)
func (*CdnService) PushUrlsCache ¶
func (me *CdnService) PushUrlsCache(ctx context.Context, request *cdn.PushUrlsCacheRequest) (taskId string, errRet error)
func (*CdnService) StartDomain ¶
func (me *CdnService) StartDomain(ctx context.Context, domain string) error
func (*CdnService) StopDomain ¶
func (me *CdnService) StopDomain(ctx context.Context, domain string) error
func (*CdnService) UpdateDomainConfig ¶
func (me *CdnService) UpdateDomainConfig(ctx context.Context, request *cdn.UpdateDomainConfigRequest) (errRet error)
func (*CdnService) VerifyDomainRecord ¶
type CdnVerifyRecordResponse ¶
type DomainService ¶
type DomainService struct {
// contains filtered or unexported fields
}
func NewDomainService ¶
func NewDomainService(client *connectivity.TencentCloudClient) DomainService
func (*DomainService) DescribeDomainNameList ¶
func (me *DomainService) DescribeDomainNameList(ctx context.Context, request *domain.DescribeDomainNameListRequest) (result []*domain.DomainList, errRet error)
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
func (*TagService) DeleteTagResourceById ¶
func (*TagService) DeleteTagTagAttachmentById ¶
func (*TagService) DescribeProjectById ¶
func (*TagService) DescribeProjects ¶
func (*TagService) DescribeResourceTags ¶
func (*TagService) DescribeTagResourceById ¶
func (*TagService) DescribeTagTagAttachmentById ¶
func (me *TagService) DescribeTagTagAttachmentById(ctx context.Context, tagKey string, tagValue string, resource string) (resourceTag *tag.ResourceTagMapping, errRet error)
func (*TagService) DisableProjectById ¶
func (me *TagService) DisableProjectById(ctx context.Context, projectId uint64) (errRet error)
func (*TagService) ModifyTags ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.