cdn

package
v1.81.98 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

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"
)

Variables

View Source
var CDN_BACKUP_ORIGIN_TYPE = []string{
	CDN_ORIGIN_TYPE_IP,
	CDN_ORIGIN_TYPE_DOMAIN,
}

Functions

func DataSourceTencentCloudCdnDomainVerifyRecord

func DataSourceTencentCloudCdnDomainVerifyRecord() *schema.Resource

func DataSourceTencentCloudCdnDomains

func DataSourceTencentCloudCdnDomains() *schema.Resource

func GetUrlsHash

func GetUrlsHash(urls []string) string

func ResourceTencentCloudCdnDomain

func ResourceTencentCloudCdnDomain() *schema.Resource

func ResourceTencentCloudUrlPurge

func ResourceTencentCloudUrlPurge() *schema.Resource

func ResourceTencentCloudUrlPush

func ResourceTencentCloudUrlPush() *schema.Resource

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

func (me *CdnService) VerifyDomainRecord(ctx context.Context, domain string) (result bool, errRet error)

type CdnVerifyRecordResponse

type CdnVerifyRecordResponse struct {
	SubDomain  *string `json:"SubDomain,omitempty" name:"SubDomain"`
	Record     *string `json:"Record,omitempty" name:"Record"`
	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`
	RequestId  *string `json:"RequestId,omitempty" name:"RequestId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL