tcr

package
v1.81.124 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 DataSourceTencentCloudTCRInstances

func DataSourceTencentCloudTCRInstances() *schema.Resource

func DataSourceTencentCloudTCRNamespaces

func DataSourceTencentCloudTCRNamespaces() *schema.Resource

func DataSourceTencentCloudTCRRepositories

func DataSourceTencentCloudTCRRepositories() *schema.Resource

func DataSourceTencentCloudTCRTokens

func DataSourceTencentCloudTCRTokens() *schema.Resource

func DataSourceTencentCloudTCRVPCAttachments

func DataSourceTencentCloudTCRVPCAttachments() *schema.Resource

func DataSourceTencentCloudTcrImageManifests

func DataSourceTencentCloudTcrImageManifests() *schema.Resource

func DataSourceTencentCloudTcrImages

func DataSourceTencentCloudTcrImages() *schema.Resource

func DataSourceTencentCloudTcrReplicationInstanceCreateTasks

func DataSourceTencentCloudTcrReplicationInstanceCreateTasks() *schema.Resource

func DataSourceTencentCloudTcrReplicationInstanceSyncStatus

func DataSourceTencentCloudTcrReplicationInstanceSyncStatus() *schema.Resource

func DataSourceTencentCloudTcrTagRetentionExecutionTasks

func DataSourceTencentCloudTcrTagRetentionExecutionTasks() *schema.Resource

func DataSourceTencentCloudTcrTagRetentionExecutions

func DataSourceTencentCloudTcrTagRetentionExecutions() *schema.Resource

func DataSourceTencentCloudTcrWebhookTriggerLogs

func DataSourceTencentCloudTcrWebhookTriggerLogs() *schema.Resource

func DisableTcrVpcDns

func DisableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, subnetId string, usePublicDomain bool, regionName string) error

func EnableTcrVpcDns

func EnableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, subnetId string, usePublicDomain bool, regionName string) error

func GetDnsStatus

func GetDnsStatus(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, accessIp string, usePublicDomain bool) (status *tcr.VpcPrivateDomainStatus, err error)

func ResourceTencentCloudTcrCreateImageSignatureOperation

func ResourceTencentCloudTcrCreateImageSignatureOperation() *schema.Resource

func ResourceTencentCloudTcrCustomizedDomain

func ResourceTencentCloudTcrCustomizedDomain() *schema.Resource

func ResourceTencentCloudTcrDeleteImageOperation

func ResourceTencentCloudTcrDeleteImageOperation() *schema.Resource

func ResourceTencentCloudTcrFillReplicas

func ResourceTencentCloudTcrFillReplicas(replicas []interface{}, registries []*tcr.ReplicationRegistry) []interface{}

func ResourceTencentCloudTcrImmutableTagRule

func ResourceTencentCloudTcrImmutableTagRule() *schema.Resource

func ResourceTencentCloudTcrInstance

func ResourceTencentCloudTcrInstance() *schema.Resource

func ResourceTencentCloudTcrManageReplicationOperation

func ResourceTencentCloudTcrManageReplicationOperation() *schema.Resource

func ResourceTencentCloudTcrNamespace

func ResourceTencentCloudTcrNamespace() *schema.Resource

func ResourceTencentCloudTcrRepository

func ResourceTencentCloudTcrRepository() *schema.Resource

func ResourceTencentCloudTcrServiceAccount

func ResourceTencentCloudTcrServiceAccount() *schema.Resource

func ResourceTencentCloudTcrTagRetentionExecutionConfig

func ResourceTencentCloudTcrTagRetentionExecutionConfig() *schema.Resource

func ResourceTencentCloudTcrTagRetentionRule

func ResourceTencentCloudTcrTagRetentionRule() *schema.Resource

func ResourceTencentCloudTcrToken

func ResourceTencentCloudTcrToken() *schema.Resource

func ResourceTencentCloudTcrVpcAttachment

func ResourceTencentCloudTcrVpcAttachment() *schema.Resource

func ResourceTencentCloudTcrWebhookTrigger

func ResourceTencentCloudTcrWebhookTrigger() *schema.Resource

func WaitForAccessIpExists

func WaitForAccessIpExists(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, subnetId string) (accessIp string, errRet error)

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 (me *TCRService) CreateTCRInstance(ctx context.Context, name string, instanceType string, params map[string]interface{}) (instanceId string, errRet error)

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 (me *TCRService) CreateTcrVpcDns(ctx context.Context, instanceId string, vpcId string, accessIp string, usePublicDomain bool, regionName string) (errRet error)

func (*TCRService) DeleteReplicationInstance

func (me *TCRService) DeleteReplicationInstance(ctx context.Context, request *tcr.DeleteReplicationInstanceRequest) (errRet error)

func (*TCRService) DeleteTCRInstance

func (me *TCRService) DeleteTCRInstance(ctx context.Context, instanceId string, deleteBucket bool) (errRet error)

func (*TCRService) DeleteTCRLongTermToken

func (me *TCRService) DeleteTCRLongTermToken(ctx context.Context, instanceId string, tokenId string) (errRet error)

func (*TCRService) DeleteTCRNameSpace

func (me *TCRService) DeleteTCRNameSpace(ctx context.Context, instanceId string, name string) (errRet error)

func (*TCRService) DeleteTCRRepository

func (me *TCRService) DeleteTCRRepository(ctx context.Context, instanceId string, namespace string, repositoryName string) (errRet error)

func (*TCRService) DeleteTCRVPCAttachment

func (me *TCRService) DeleteTCRVPCAttachment(ctx context.Context, instanceId string, vpcId string,
	subnetId string, regionId int, regionName string,
) (errRet error)

func (*TCRService) DeleteTcrCustomizedDomainById

func (me *TCRService) DeleteTcrCustomizedDomainById(ctx context.Context, registryId string, domainName string) (errRet error)

func (*TCRService) DeleteTcrImmutableTagRuleById

func (me *TCRService) DeleteTcrImmutableTagRuleById(ctx context.Context, registryId string, namespaceName string, ruleId string) (errRet error)

func (*TCRService) DeleteTcrServiceAccountById

func (me *TCRService) DeleteTcrServiceAccountById(ctx context.Context, registryId string, name string) (errRet error)

func (*TCRService) DeleteTcrTagRetentionRuleById

func (me *TCRService) DeleteTcrTagRetentionRuleById(ctx context.Context, registryId string, retentionId string) (errRet error)

func (*TCRService) DeleteTcrVpcDns

func (me *TCRService) DeleteTcrVpcDns(ctx context.Context, instanceId string, vpcId string, accessIp string, usePublicDomain bool, regionName string) (errRet error)

func (*TCRService) DeleteTcrWebhookTriggerById

func (me *TCRService) DeleteTcrWebhookTriggerById(ctx context.Context, registryId string, namespaceName string, triggerId int64) (errRet error)

func (*TCRService) DescribeExternalEndpointStatus

func (me *TCRService) DescribeExternalEndpointStatus(ctx context.Context, instanceId string) (status string, has bool, errRet error)

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 (me *TCRService) DescribeTCRInstanceById(ctx context.Context, instanceId string) (instance *tcr.Registry, has bool, errRet error)

func (*TCRService) DescribeTCRInstances

func (me *TCRService) DescribeTCRInstances(ctx context.Context, instanceId string, filter []*tcr.Filter) (instanceList []*tcr.Registry, errRet error)

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 (me *TCRService) DescribeTCRVPCAttachmentById(ctx context.Context, instanceId string, vpcId string, subnetId string) (vpcAccess *tcr.AccessVpc, has bool, errRet error)

func (*TCRService) DescribeTCRVPCAttachments

func (me *TCRService) DescribeTCRVPCAttachments(ctx context.Context, instanceId string, vpcId string, subnetId string) (vpcList []*tcr.AccessVpc, errRet error)

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 (me *TCRService) DescribeTcrVpcDnsById(ctx context.Context, instanceId string, vpcId string, accessIp string, usePublicDomain bool) (vpcPrivateDomainStatus *tcr.VpcPrivateDomainStatus, has bool, errRet error)

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 (me *TCRService) ModifyTCRLongTermToken(ctx context.Context, instanceId string, tokenId string, enable bool) (errRet error)

func (*TCRService) ModifyTCRNameSpace

func (me *TCRService) ModifyTCRNameSpace(ctx context.Context, instanceId string, name string, isPublic, isAutoScan, isPreventVUL bool, severity string, whitelistItems []interface{}) (errRet error)

func (*TCRService) ModifyTCRRepository

func (me *TCRService) ModifyTCRRepository(ctx context.Context, instanceId string, namespace string, repositoryName string, briefDesc string, description string) (errRet error)

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

Jump to

Keyboard shortcuts

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