cdn

package
v1.81.61 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MPL-2.0 Imports: 17 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"
)
View Source
const DESCRIBE_TAGS_LIMIT = 20

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"`
}

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 (me *TagService) DeleteTagResourceById(ctx context.Context, tagKey string, tagValue string) (errRet error)

func (*TagService) DeleteTagTagAttachmentById

func (me *TagService) DeleteTagTagAttachmentById(ctx context.Context, tagKey string, resource string) (errRet error)

func (*TagService) DescribeProjectById

func (me *TagService) DescribeProjectById(ctx context.Context, projectId uint64) (project *tag.Project, disable *uint64, errRet error)

func (*TagService) DescribeProjects

func (me *TagService) DescribeProjects(ctx context.Context, param map[string]interface{}) (project []*tag.Project, errRet error)

func (*TagService) DescribeResourceTags

func (me *TagService) DescribeResourceTags(ctx context.Context, serviceType, resourceType, region, resourceId string) (tags map[string]string, err error)

func (*TagService) DescribeTagResourceById

func (me *TagService) DescribeTagResourceById(ctx context.Context, tagKey string, tagValue string) (tagRes *tag.Tag, errRet error)

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

func (me *TagService) ModifyTags(ctx context.Context, resourceName string, replaceTags map[string]string, deleteKeys []string) error

Jump to

Keyboard shortcuts

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