Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudTCRInstances() *schema.Resource
- func DataSourceTencentCloudTCRNamespaces() *schema.Resource
- func DataSourceTencentCloudTCRRepositories() *schema.Resource
- func DataSourceTencentCloudTCRTokens() *schema.Resource
- func DataSourceTencentCloudTCRVPCAttachments() *schema.Resource
- func DataSourceTencentCloudTcrImageManifests() *schema.Resource
- func DataSourceTencentCloudTcrImages() *schema.Resource
- func DataSourceTencentCloudTcrReplicationInstanceCreateTasks() *schema.Resource
- func DataSourceTencentCloudTcrReplicationInstanceSyncStatus() *schema.Resource
- func DataSourceTencentCloudTcrTagRetentionExecutionTasks() *schema.Resource
- func DataSourceTencentCloudTcrTagRetentionExecutions() *schema.Resource
- func DataSourceTencentCloudTcrWebhookTriggerLogs() *schema.Resource
- func DisableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, ...) error
- func EnableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, ...) error
- func GetDnsStatus(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, ...) (status *tcr.VpcPrivateDomainStatus, err error)
- func ResourceTencentCloudTcrCreateImageSignatureOperation() *schema.Resource
- func ResourceTencentCloudTcrCustomizedDomain() *schema.Resource
- func ResourceTencentCloudTcrDeleteImageOperation() *schema.Resource
- func ResourceTencentCloudTcrFillReplicas(replicas []interface{}, registries []*tcr.ReplicationRegistry) []interface{}
- func ResourceTencentCloudTcrImmutableTagRule() *schema.Resource
- func ResourceTencentCloudTcrInstance() *schema.Resource
- func ResourceTencentCloudTcrManageReplicationOperation() *schema.Resource
- func ResourceTencentCloudTcrNamespace() *schema.Resource
- func ResourceTencentCloudTcrRepository() *schema.Resource
- func ResourceTencentCloudTcrServiceAccount() *schema.Resource
- func ResourceTencentCloudTcrTagRetentionExecutionConfig() *schema.Resource
- func ResourceTencentCloudTcrTagRetentionRule() *schema.Resource
- func ResourceTencentCloudTcrToken() *schema.Resource
- func ResourceTencentCloudTcrVpcAttachment() *schema.Resource
- func ResourceTencentCloudTcrWebhookTrigger() *schema.Resource
- func WaitForAccessIpExists(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, ...) (accessIp string, errRet error)
- type TCRService
- func (me *TCRService) CreateReplicationInstance(ctx context.Context, request *tcr.CreateReplicationInstanceRequest) (id string, errRet error)
- func (me *TCRService) CreateTCRInstance(ctx context.Context, name string, instanceType string, ...) (instanceId string, errRet error)
- func (me *TCRService) CreateTCRLongTermToken(ctx context.Context, instanceId string, description string) (tokenId string, token string, userName string, errRet error)
- func (me *TCRService) CreateTCRNameSpace(ctx context.Context, instanceId string, name string, ...) (errRet error)
- func (me *TCRService) CreateTCRRepository(ctx context.Context, instanceId string, namespace string, ...) (errRet error)
- func (me *TCRService) CreateTCRVPCAttachment(ctx context.Context, instanceId string, vpcId string, subnetId string, ...) (errRet error)
- func (me *TCRService) CreateTcrVpcDns(ctx context.Context, instanceId string, vpcId string, accessIp string, ...) (errRet error)
- func (me *TCRService) DeleteReplicationInstance(ctx context.Context, request *tcr.DeleteReplicationInstanceRequest) (errRet error)
- func (me *TCRService) DeleteTCRInstance(ctx context.Context, instanceId string, deleteBucket bool) (errRet error)
- func (me *TCRService) DeleteTCRLongTermToken(ctx context.Context, instanceId string, tokenId string) (errRet error)
- func (me *TCRService) DeleteTCRNameSpace(ctx context.Context, instanceId string, name string) (errRet error)
- func (me *TCRService) DeleteTCRRepository(ctx context.Context, instanceId string, namespace string, ...) (errRet error)
- func (me *TCRService) DeleteTCRVPCAttachment(ctx context.Context, instanceId string, vpcId string, subnetId string, ...) (errRet error)
- func (me *TCRService) DeleteTcrCustomizedDomainById(ctx context.Context, registryId string, domainName string) (errRet error)
- func (me *TCRService) DeleteTcrImmutableTagRuleById(ctx context.Context, registryId string, namespaceName string, ruleId string) (errRet error)
- func (me *TCRService) DeleteTcrServiceAccountById(ctx context.Context, registryId string, name string) (errRet error)
- func (me *TCRService) DeleteTcrTagRetentionRuleById(ctx context.Context, registryId string, retentionId string) (errRet error)
- func (me *TCRService) DeleteTcrVpcDns(ctx context.Context, instanceId string, vpcId string, accessIp string, ...) (errRet error)
- func (me *TCRService) DeleteTcrWebhookTriggerById(ctx context.Context, registryId string, namespaceName string, triggerId int64) (errRet error)
- func (me *TCRService) DescribeExternalEndpointStatus(ctx context.Context, instanceId string) (status string, has bool, errRet error)
- func (me *TCRService) DescribeReplicationInstances(ctx context.Context, request *tcr.DescribeReplicationInstancesRequest) (list []*tcr.ReplicationRegistry, errRet error)
- func (me *TCRService) DescribeSecurityPolicies(ctx context.Context, request *tcr.DescribeSecurityPoliciesRequest) (policies []*tcr.SecurityPolicy, errRet error)
- func (me *TCRService) DescribeTCRInstanceById(ctx context.Context, instanceId string) (instance *tcr.Registry, has bool, errRet error)
- func (me *TCRService) DescribeTCRInstances(ctx context.Context, instanceId string, filter []*tcr.Filter) (instanceList []*tcr.Registry, errRet error)
- func (me *TCRService) DescribeTCRLongTermTokenById(ctx context.Context, instanceId string, tokenId string) (token *tcr.TcrInstanceToken, has bool, errRet error)
- func (me *TCRService) DescribeTCRNameSpaceById(ctx context.Context, instanceId string, name string) (namespace *tcr.TcrNamespaceInfo, has bool, errRet error)
- func (me *TCRService) DescribeTCRNameSpaces(ctx context.Context, instanceId string, name string) (namespaceList []*tcr.TcrNamespaceInfo, errRet error)
- func (me *TCRService) DescribeTCRRepositories(ctx context.Context, instanceId string, namespace string, ...) (repositoryList []*tcr.TcrRepositoryInfo, errRet error)
- func (me *TCRService) DescribeTCRRepositoryById(ctx context.Context, instanceId string, namespace string, ...) (repository *tcr.TcrRepositoryInfo, has bool, errRet error)
- func (me *TCRService) DescribeTCRTokens(ctx context.Context, instanceId string, tokenId string) (tokenList []*tcr.TcrInstanceToken, errRet error)
- func (me *TCRService) DescribeTCRVPCAttachmentById(ctx context.Context, instanceId string, vpcId string, subnetId string) (vpcAccess *tcr.AccessVpc, has bool, errRet error)
- func (me *TCRService) DescribeTCRVPCAttachments(ctx context.Context, instanceId string, vpcId string, subnetId string) (vpcList []*tcr.AccessVpc, errRet error)
- func (me *TCRService) DescribeTcrCustomizedDomainById(ctx context.Context, registryId string, domainName *string) (CustomizedDomain []*tcr.CustomizedDomainInfo, errRet error)
- func (me *TCRService) DescribeTcrImageManifestsByFilter(ctx context.Context, param map[string]interface{}) (ImageManifests *tcr.DescribeImageManifestsResponseParams, errRet error)
- func (me *TCRService) DescribeTcrImagesByFilter(ctx context.Context, param map[string]interface{}) (Images []*tcr.TcrImageInfo, errRet error)
- func (me *TCRService) DescribeTcrImmutableTagRuleById(ctx context.Context, registryId string, namespaceName, ruleId *string) (ImmutableTagRules []*tcr.ImmutableTagRule, errRet error)
- func (me *TCRService) DescribeTcrReplicationInstanceCreateTasksByFilter(ctx context.Context, param map[string]interface{}) (ret *tcr.DescribeReplicationInstanceCreateTasksResponseParams, errRet error)
- func (me *TCRService) DescribeTcrReplicationInstanceSyncStatusByFilter(ctx context.Context, param map[string]interface{}) (ret *tcr.DescribeReplicationInstanceSyncStatusResponseParams, errRet error)
- func (me *TCRService) DescribeTcrServiceAccountById(ctx context.Context, registryId string, name string) (ServiceAccount *tcr.ServiceAccount, errRet error)
- func (me *TCRService) DescribeTcrTagRetentionExecutionConfigById(ctx context.Context, registryId string, retentionId string) (TagRetentionExecutionConfig *tcr.RetentionExecution, errRet error)
- func (me *TCRService) DescribeTcrTagRetentionExecutionTasksByFilter(ctx context.Context, param map[string]interface{}) (TagRetentionExecutionTasks []*tcr.RetentionTask, errRet error)
- func (me *TCRService) DescribeTcrTagRetentionExecutionsByFilter(ctx context.Context, param map[string]interface{}) (TagRetentionExecutions []*tcr.RetentionExecution, errRet error)
- func (me *TCRService) DescribeTcrTagRetentionRuleById(ctx context.Context, registryId, namespaceName string, retentionId *string) (TagRetentionRule *tcr.RetentionPolicy, errRet error)
- func (me *TCRService) DescribeTcrVpcDnsById(ctx context.Context, instanceId string, vpcId string, accessIp string, ...) (vpcPrivateDomainStatus *tcr.VpcPrivateDomainStatus, has bool, errRet error)
- func (me *TCRService) DescribeTcrWebhookTriggerById(ctx context.Context, registryId string, triggerId int64, namespaceName string) (WebhookTrigger *tcr.WebhookTrigger, errRet error)
- func (me *TCRService) DescribeTcrWebhookTriggerLogByFilter(ctx context.Context, param map[string]interface{}) (DescribeWebhookTriggerLog []*tcr.WebhookTriggerLog, errRet error)
- func (me *TCRService) ManageTCRExternalEndpoint(ctx context.Context, instanceId, operation string) (errRet error)
- func (me *TCRService) ModifyInstance(ctx context.Context, registryId, registryType string) (errRet error)
- func (me *TCRService) ModifyTCRLongTermToken(ctx context.Context, instanceId string, tokenId string, enable bool) (errRet error)
- func (me *TCRService) ModifyTCRNameSpace(ctx context.Context, instanceId string, name string, ...) (errRet error)
- func (me *TCRService) ModifyTCRRepository(ctx context.Context, instanceId string, namespace string, ...) (errRet error)
- func (me *TCRService) TcrCustomizedDomainStateRefreshFunc(registryId, domainName string, failStates []string) resource.StateRefreshFunc
- func (me *TCRService) TcrStateRefreshFunc(instanceId string, failStates []string) resource.StateRefreshFunc
- func (me *TCRService) TcrTagRetentionExecutionConfigStateRefreshFunc(registryId string, retentionId string, failStates []string) resource.StateRefreshFunc
Constants ¶
View Source
const ( TCR_VPC_DNS_STATUS_ENABLED = "ENABLED" TCR_VPC_DNS_STATUS_DISABLED = "DISABLED" )
View Source
const ( REGISTRY_CHARGE_TYPE_POSTPAID = 0 REGISTRY_CHARGE_TYPE_PREPAID = 1 )
View Source
const (
TCR_NAME_PREFIX = "tcr$"
)
Variables ¶
View Source
var RegionIdMap = map[string]string{
"ap-guangzhou": "1",
"ap-shanghai": "4",
"ap-hongkong": "5",
"na-toronto": "6",
"ap-shanghai-fsi": "7",
"ap-beijing": "8",
"ap-singapore": "9",
"ap-shenzhen-fsi": "11",
"ap-guangzhou-open": "12",
"ap-shanghai-ysx": "13",
"na-siliconvalley": "15",
"ap-chengdu": "16",
"eu-frankfurt": "17",
"ap-seoul": "18",
"ap-chongqing": "19",
"ap-mumbai": "21",
"na-ashburn": "22",
"ap-bangkok": "23",
"eu-moscow": "24",
"ap-tokyo": "25",
"ap-jinan-ec": "31",
"ap-hangzhou-ec": "32",
"ap-nanjing": "33",
"ap-fuzhou-ec": "34",
"ap-wuhan-ec": "35",
"ap-tianjin": "36",
"ap-shenzhen": "37",
"ap-taipei": "39",
"ap-changsha-ec": "45",
"ap-beijing-fsi": "46",
"ap-shijiazhuang-ec": "53",
"ap-qingyuan": "54",
"ap-hefei-ec": "55",
"ap-shenyang-ec": "56",
"ap-xian-ec": "57",
"ap-xibei-ec": "58",
"ap-zhengzhou-ec": "71",
"ap-jakarta": "72",
"ap-qingyuan-xinan": "73",
"sa-saopaulo": "74",
"ap-guiyang": "76",
"ap-shenzhen-sycft": "77",
"ap-shanghai-adc": "78",
}
FIXME: temp data, use api request instead if support
Functions ¶
func DisableTcrVpcDns ¶
func EnableTcrVpcDns ¶
func GetDnsStatus ¶
func GetDnsStatus(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, accessIp string, usePublicDomain bool) (status *tcr.VpcPrivateDomainStatus, err error)
func ResourceTencentCloudTcrFillReplicas ¶
func ResourceTencentCloudTcrFillReplicas(replicas []interface{}, registries []*tcr.ReplicationRegistry) []interface{}
func WaitForAccessIpExists ¶
Types ¶
type TCRService ¶
type TCRService struct {
// contains filtered or unexported fields
}
func NewTCRService ¶
func NewTCRService(client *connectivity.TencentCloudClient) TCRService
func (*TCRService) CreateReplicationInstance ¶
func (me *TCRService) CreateReplicationInstance(ctx context.Context, request *tcr.CreateReplicationInstanceRequest) (id string, errRet error)
func (*TCRService) CreateTCRInstance ¶
func (*TCRService) CreateTCRLongTermToken ¶
func (me *TCRService) CreateTCRLongTermToken(ctx context.Context, instanceId string, description string) (tokenId string, token string, userName string, errRet error)
longterm token
func (*TCRService) CreateTCRNameSpace ¶
func (me *TCRService) CreateTCRNameSpace(ctx context.Context, instanceId string, name string, isPublic, isAutoScan, isPreventVUL bool, severity string, whitelistItems []interface{}) (errRet error)
name space
func (*TCRService) CreateTCRRepository ¶
func (me *TCRService) CreateTCRRepository(ctx context.Context, instanceId string, namespace string, repositoryName string, briefDesc string, description string) (errRet error)
repository
func (*TCRService) CreateTCRVPCAttachment ¶
func (me *TCRService) CreateTCRVPCAttachment(ctx context.Context, instanceId string, vpcId string, subnetId string, regionId int64, regionName string, ) (errRet error)
VPC attachment
func (*TCRService) CreateTcrVpcDns ¶
func (*TCRService) DeleteReplicationInstance ¶
func (me *TCRService) DeleteReplicationInstance(ctx context.Context, request *tcr.DeleteReplicationInstanceRequest) (errRet error)
func (*TCRService) DeleteTCRInstance ¶
func (*TCRService) DeleteTCRLongTermToken ¶
func (*TCRService) DeleteTCRNameSpace ¶
func (*TCRService) DeleteTCRRepository ¶
func (*TCRService) DeleteTCRVPCAttachment ¶
func (*TCRService) DeleteTcrCustomizedDomainById ¶
func (*TCRService) DeleteTcrImmutableTagRuleById ¶
func (*TCRService) DeleteTcrServiceAccountById ¶
func (*TCRService) DeleteTcrTagRetentionRuleById ¶
func (*TCRService) DeleteTcrVpcDns ¶
func (*TCRService) DeleteTcrWebhookTriggerById ¶
func (*TCRService) DescribeExternalEndpointStatus ¶
func (*TCRService) DescribeReplicationInstances ¶
func (me *TCRService) DescribeReplicationInstances(ctx context.Context, request *tcr.DescribeReplicationInstancesRequest) (list []*tcr.ReplicationRegistry, errRet error)
func (*TCRService) DescribeSecurityPolicies ¶
func (me *TCRService) DescribeSecurityPolicies(ctx context.Context, request *tcr.DescribeSecurityPoliciesRequest) (policies []*tcr.SecurityPolicy, errRet error)
func (*TCRService) DescribeTCRInstanceById ¶
func (*TCRService) DescribeTCRInstances ¶
func (*TCRService) DescribeTCRLongTermTokenById ¶
func (me *TCRService) DescribeTCRLongTermTokenById(ctx context.Context, instanceId string, tokenId string) (token *tcr.TcrInstanceToken, has bool, errRet error)
func (*TCRService) DescribeTCRNameSpaceById ¶
func (me *TCRService) DescribeTCRNameSpaceById(ctx context.Context, instanceId string, name string) (namespace *tcr.TcrNamespaceInfo, has bool, errRet error)
func (*TCRService) DescribeTCRNameSpaces ¶
func (me *TCRService) DescribeTCRNameSpaces(ctx context.Context, instanceId string, name string) (namespaceList []*tcr.TcrNamespaceInfo, errRet error)
func (*TCRService) DescribeTCRRepositories ¶
func (me *TCRService) DescribeTCRRepositories(ctx context.Context, instanceId string, namespace string, repositoryName string) (repositoryList []*tcr.TcrRepositoryInfo, errRet error)
func (*TCRService) DescribeTCRRepositoryById ¶
func (me *TCRService) DescribeTCRRepositoryById(ctx context.Context, instanceId string, namespace string, repositoryName string) (repository *tcr.TcrRepositoryInfo, has bool, errRet error)
func (*TCRService) DescribeTCRTokens ¶
func (me *TCRService) DescribeTCRTokens(ctx context.Context, instanceId string, tokenId string) (tokenList []*tcr.TcrInstanceToken, errRet error)
func (*TCRService) DescribeTCRVPCAttachmentById ¶
func (*TCRService) DescribeTCRVPCAttachments ¶
func (*TCRService) DescribeTcrCustomizedDomainById ¶
func (me *TCRService) DescribeTcrCustomizedDomainById(ctx context.Context, registryId string, domainName *string) (CustomizedDomain []*tcr.CustomizedDomainInfo, errRet error)
func (*TCRService) DescribeTcrImageManifestsByFilter ¶
func (me *TCRService) DescribeTcrImageManifestsByFilter(ctx context.Context, param map[string]interface{}) (ImageManifests *tcr.DescribeImageManifestsResponseParams, errRet error)
func (*TCRService) DescribeTcrImagesByFilter ¶
func (me *TCRService) DescribeTcrImagesByFilter(ctx context.Context, param map[string]interface{}) (Images []*tcr.TcrImageInfo, errRet error)
func (*TCRService) DescribeTcrImmutableTagRuleById ¶
func (me *TCRService) DescribeTcrImmutableTagRuleById(ctx context.Context, registryId string, namespaceName, ruleId *string) (ImmutableTagRules []*tcr.ImmutableTagRule, errRet error)
func (*TCRService) DescribeTcrReplicationInstanceCreateTasksByFilter ¶
func (me *TCRService) DescribeTcrReplicationInstanceCreateTasksByFilter(ctx context.Context, param map[string]interface{}) (ret *tcr.DescribeReplicationInstanceCreateTasksResponseParams, errRet error)
func (*TCRService) DescribeTcrReplicationInstanceSyncStatusByFilter ¶
func (me *TCRService) DescribeTcrReplicationInstanceSyncStatusByFilter(ctx context.Context, param map[string]interface{}) (ret *tcr.DescribeReplicationInstanceSyncStatusResponseParams, errRet error)
func (*TCRService) DescribeTcrServiceAccountById ¶
func (me *TCRService) DescribeTcrServiceAccountById(ctx context.Context, registryId string, name string) (ServiceAccount *tcr.ServiceAccount, errRet error)
func (*TCRService) DescribeTcrTagRetentionExecutionConfigById ¶
func (me *TCRService) DescribeTcrTagRetentionExecutionConfigById(ctx context.Context, registryId string, retentionId string) (TagRetentionExecutionConfig *tcr.RetentionExecution, errRet error)
func (*TCRService) DescribeTcrTagRetentionExecutionTasksByFilter ¶
func (me *TCRService) DescribeTcrTagRetentionExecutionTasksByFilter(ctx context.Context, param map[string]interface{}) (TagRetentionExecutionTasks []*tcr.RetentionTask, errRet error)
func (*TCRService) DescribeTcrTagRetentionExecutionsByFilter ¶
func (me *TCRService) DescribeTcrTagRetentionExecutionsByFilter(ctx context.Context, param map[string]interface{}) (TagRetentionExecutions []*tcr.RetentionExecution, errRet error)
func (*TCRService) DescribeTcrTagRetentionRuleById ¶
func (me *TCRService) DescribeTcrTagRetentionRuleById(ctx context.Context, registryId, namespaceName string, retentionId *string) (TagRetentionRule *tcr.RetentionPolicy, errRet error)
func (*TCRService) DescribeTcrVpcDnsById ¶
func (*TCRService) DescribeTcrWebhookTriggerById ¶
func (me *TCRService) DescribeTcrWebhookTriggerById(ctx context.Context, registryId string, triggerId int64, namespaceName string) (WebhookTrigger *tcr.WebhookTrigger, errRet error)
func (*TCRService) DescribeTcrWebhookTriggerLogByFilter ¶
func (me *TCRService) DescribeTcrWebhookTriggerLogByFilter(ctx context.Context, param map[string]interface{}) (DescribeWebhookTriggerLog []*tcr.WebhookTriggerLog, errRet error)
func (*TCRService) ManageTCRExternalEndpoint ¶
func (me *TCRService) ManageTCRExternalEndpoint(ctx context.Context, instanceId, operation string) (errRet error)
func (*TCRService) ModifyInstance ¶
func (me *TCRService) ModifyInstance(ctx context.Context, registryId, registryType string) (errRet error)
func (*TCRService) ModifyTCRLongTermToken ¶
func (*TCRService) ModifyTCRNameSpace ¶
func (*TCRService) ModifyTCRRepository ¶
func (*TCRService) TcrCustomizedDomainStateRefreshFunc ¶
func (me *TCRService) TcrCustomizedDomainStateRefreshFunc(registryId, domainName string, failStates []string) resource.StateRefreshFunc
func (*TCRService) TcrStateRefreshFunc ¶
func (me *TCRService) TcrStateRefreshFunc(instanceId string, failStates []string) resource.StateRefreshFunc
func (*TCRService) TcrTagRetentionExecutionConfigStateRefreshFunc ¶
func (me *TCRService) TcrTagRetentionExecutionConfigStateRefreshFunc(registryId string, retentionId string, failStates []string) resource.StateRefreshFunc
Source Files ¶
- data_source_tc_tcr_image_manifests.go
- data_source_tc_tcr_images.go
- data_source_tc_tcr_instances.go
- data_source_tc_tcr_namespaces.go
- data_source_tc_tcr_replication_instance_create_tasks.go
- data_source_tc_tcr_replication_instance_sync_status.go
- data_source_tc_tcr_repositories.go
- data_source_tc_tcr_tag_retention_execution_tasks.go
- data_source_tc_tcr_tag_retention_executions.go
- data_source_tc_tcr_tokens.go
- data_source_tc_tcr_vpc_attachments.go
- data_source_tc_tcr_webhook_trigger_logs.go
- extension_tcr.go
- resource_tc_tcr_create_image_signature_operation.go
- resource_tc_tcr_customized_domain.go
- resource_tc_tcr_delete_image_operation.go
- resource_tc_tcr_immutable_tag_rule.go
- resource_tc_tcr_instance.go
- resource_tc_tcr_manage_replication_operation.go
- resource_tc_tcr_namespace.go
- resource_tc_tcr_repository.go
- resource_tc_tcr_service_account.go
- resource_tc_tcr_tag_retention_execution_config.go
- resource_tc_tcr_tag_retention_rule.go
- resource_tc_tcr_token.go
- resource_tc_tcr_vpc_attachment.go
- resource_tc_tcr_webhook_trigger.go
- service_tencentcloud_tcr.go
Click to show internal directories.
Click to hide internal directories.