Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudTcaplusClusters() *schema.Resource
- func DataSourceTencentCloudTcaplusIdls() *schema.Resource
- func DataSourceTencentCloudTcaplusTableGroups() *schema.Resource
- func DataSourceTencentCloudTcaplusTables() *schema.Resource
- func ResourceTencentCloudTcaplusCluster() *schema.Resource
- func ResourceTencentCloudTcaplusIdl() *schema.Resource
- func ResourceTencentCloudTcaplusTable() *schema.Resource
- func ResourceTencentCloudTcaplusTableGroup() *schema.Resource
- type TcaplusIdlId
- type TcaplusService
- func (me *TcaplusService) CreateCluster(ctx context.Context, idlType, clusterName, vpcId, subnetId, password string) (id string, errRet error)
- func (me *TcaplusService) CreateGroup(ctx context.Context, id string, groupName string) (groupId string, errRet error)
- func (me *TcaplusService) CreateTables(ctx context.Context, tid TcaplusIdlId, ...) (taskId string, tableInstanceId string, errRet error)
- func (me *TcaplusService) DeleteCluster(ctx context.Context, id string) (taskId string, errRet error)
- func (me *TcaplusService) DeleteGroup(ctx context.Context, clusterId string, groupId string) (errRet error)
- func (me *TcaplusService) DeleteIdlFiles(ctx context.Context, tid TcaplusIdlId) (errRet error)
- func (me *TcaplusService) DeleteTable(ctx context.Context, clusterId, groupId, tableInstanceId, tableName string) (taskId string, errRet error)
- func (me *TcaplusService) DesOldIdlFiles(ctx context.Context, tid TcaplusIdlId) (tableInfos []*tcaplusdb.ParsedTableInfoNew, errRet error)
- func (me *TcaplusService) DescribeCluster(ctx context.Context, id string) (clusterInfo tcaplusdb.ClusterInfo, has bool, errRet error)
- func (me *TcaplusService) DescribeClusters(ctx context.Context, clusterId string, clusterName string) (clusterInfos []*tcaplusdb.ClusterInfo, errRet error)
- func (me *TcaplusService) DescribeGroup(ctx context.Context, id string, groupId string) (info tcaplusdb.TableGroupInfo, has bool, errRet error)
- func (me *TcaplusService) DescribeGroups(ctx context.Context, clusterId string, groupId, groupName string) (infos []*tcaplusdb.TableGroupInfo, errRet error)
- func (me *TcaplusService) DescribeIdlFileInfos(ctx context.Context, clusterId string) (infos []*tcaplusdb.IdlFileInfo, errRet error)
- func (me *TcaplusService) DescribeTable(ctx context.Context, clusterId, tableInstanceId string) (tableInfo tcaplusdb.TableInfoNew, has bool, errRet error)
- func (me *TcaplusService) DescribeTables(ctx context.Context, clusterId string, groupId, tableId, tableName string) (infos []*tcaplusdb.TableInfoNew, errRet error)
- func (me *TcaplusService) DescribeTask(ctx context.Context, clusterId string, taskId string) (taskInfo tcaplusdb.TaskInfoNew, has bool, errRet error)
- func (me *TcaplusService) ModifyClusterName(ctx context.Context, id string, clusterName string) (errRet error)
- func (me *TcaplusService) ModifyClusterPassword(ctx context.Context, id string, oldPassword, newPassword string, ...) (errRet error)
- func (me *TcaplusService) ModifyGroupName(ctx context.Context, id string, groupId, groupName string) (errRet error)
- func (me *TcaplusService) ModifyTableMemo(ctx context.Context, ...) (errRet error)
- func (me *TcaplusService) ModifyTables(ctx context.Context, tid TcaplusIdlId, ...) (taskId string, errRet error)
- func (me *TcaplusService) VerifyIdlFiles(ctx context.Context, tid TcaplusIdlId, groupId string, fileContent string) (idlId int64, tableInfos []*tcaplusdb.ParsedTableInfoNew, errRet error)
Constants ¶
View Source
const ( TCAPLUS_IDL_TYPE_PROTO = "PROTO" TCAPLUS_IDL_TYPE_TDR = "TDR" TCAPLUS_IDL_TYPE_MIX = "MIX" )
View Source
const ( TCAPLUS_FILE_EXT_TYPE_PROTO = "proto" TCAPLUS_FILE_EXT_TYPE_XML = "xml" )
View Source
const ( TCAPLUS_TABLE_IDL_TYPE_PROTO = "PROTO" TCAPLUS_TABLE_IDL_TYPE_TDR = "TDR" )
View Source
const ( TCAPLUS_TABLE_TYPE_GENERIC = "GENERIC" TCAPLUS_TABLE_TYPE__LIST = "LIST" )
Variables ¶
View Source
var FileExtTypeMatch = map[string]map[string]bool{ TCAPLUS_IDL_TYPE_PROTO: { TCAPLUS_FILE_EXT_TYPE_PROTO: true, }, TCAPLUS_IDL_TYPE_TDR: { TCAPLUS_FILE_EXT_TYPE_XML: true, }, TCAPLUS_IDL_TYPE_MIX: { TCAPLUS_FILE_EXT_TYPE_PROTO: true, TCAPLUS_FILE_EXT_TYPE_XML: true, }, }
View Source
var TCAPLUS_FILE_EXT_TYPES = []string{ TCAPLUS_FILE_EXT_TYPE_PROTO, TCAPLUS_FILE_EXT_TYPE_XML, }
View Source
var TCAPLUS_IDL_TYPES = []string{ TCAPLUS_IDL_TYPE_PROTO, TCAPLUS_IDL_TYPE_TDR, }
View Source
var TCAPLUS_TABLE_IDL_TYPES = []string{ TCAPLUS_TABLE_IDL_TYPE_PROTO, TCAPLUS_TABLE_IDL_TYPE_TDR, }
View Source
var TCAPLUS_TABLE_TYPES = []string{ TCAPLUS_TABLE_TYPE_GENERIC, TCAPLUS_TABLE_TYPE__LIST, }
Functions ¶
Types ¶
type TcaplusIdlId ¶
type TcaplusService ¶
type TcaplusService struct {
// contains filtered or unexported fields
}
func NewTcaplusService ¶
func NewTcaplusService(client *connectivity.TencentCloudClient) TcaplusService
func (*TcaplusService) CreateCluster ¶
func (*TcaplusService) CreateGroup ¶
func (*TcaplusService) CreateTables ¶
func (me *TcaplusService) CreateTables(ctx context.Context, tid TcaplusIdlId, clusterId, groupId, tableName, tableType, description, tableIdlType string, reservedReadQps, reservedWriteQps, reservedVolume int64) (taskId string, tableInstanceId string, errRet error)
func (*TcaplusService) DeleteCluster ¶
func (*TcaplusService) DeleteGroup ¶
func (*TcaplusService) DeleteIdlFiles ¶
func (me *TcaplusService) DeleteIdlFiles(ctx context.Context, tid TcaplusIdlId) (errRet error)
func (*TcaplusService) DeleteTable ¶
func (*TcaplusService) DesOldIdlFiles ¶
func (me *TcaplusService) DesOldIdlFiles(ctx context.Context, tid TcaplusIdlId) (tableInfos []*tcaplusdb.ParsedTableInfoNew, errRet error)
func (*TcaplusService) DescribeCluster ¶
func (me *TcaplusService) DescribeCluster(ctx context.Context, id string) (clusterInfo tcaplusdb.ClusterInfo, has bool, errRet error)
func (*TcaplusService) DescribeClusters ¶
func (me *TcaplusService) DescribeClusters(ctx context.Context, clusterId string, clusterName string) (clusterInfos []*tcaplusdb.ClusterInfo, errRet error)
func (*TcaplusService) DescribeGroup ¶
func (me *TcaplusService) DescribeGroup(ctx context.Context, id string, groupId string) (info tcaplusdb.TableGroupInfo, has bool, errRet error)
func (*TcaplusService) DescribeGroups ¶
func (me *TcaplusService) DescribeGroups(ctx context.Context, clusterId string, groupId, groupName string) (infos []*tcaplusdb.TableGroupInfo, errRet error)
func (*TcaplusService) DescribeIdlFileInfos ¶
func (me *TcaplusService) DescribeIdlFileInfos(ctx context.Context, clusterId string) (infos []*tcaplusdb.IdlFileInfo, errRet error)
func (*TcaplusService) DescribeTable ¶
func (me *TcaplusService) DescribeTable(ctx context.Context, clusterId, tableInstanceId string) (tableInfo tcaplusdb.TableInfoNew, has bool, errRet error)
func (*TcaplusService) DescribeTables ¶
func (me *TcaplusService) DescribeTables(ctx context.Context, clusterId string, groupId, tableId, tableName string) (infos []*tcaplusdb.TableInfoNew, errRet error)
func (*TcaplusService) DescribeTask ¶
func (me *TcaplusService) DescribeTask(ctx context.Context, clusterId string, taskId string) (taskInfo tcaplusdb.TaskInfoNew, has bool, errRet error)
func (*TcaplusService) ModifyClusterName ¶
func (*TcaplusService) ModifyClusterPassword ¶
func (*TcaplusService) ModifyGroupName ¶
func (*TcaplusService) ModifyTableMemo ¶
func (me *TcaplusService) ModifyTableMemo(ctx context.Context, clusterId, groupId, tableInstanceId, tableName, newDesc string) (errRet error)
func (*TcaplusService) ModifyTables ¶
func (me *TcaplusService) ModifyTables(ctx context.Context, tid TcaplusIdlId, clusterId, groupId, tableInstanceId, tableName, tableIdType string) (taskId string, errRet error)
func (*TcaplusService) VerifyIdlFiles ¶
func (me *TcaplusService) VerifyIdlFiles(ctx context.Context, tid TcaplusIdlId, groupId string, fileContent string) (idlId int64, tableInfos []*tcaplusdb.ParsedTableInfoNew, errRet error)
Source Files ¶
- data_source_tc_tcaplus_clusters.go
- data_source_tc_tcaplus_idls.go
- data_source_tc_tcaplus_tablegroups.go
- data_source_tc_tcaplus_tables.go
- extension_tcaplus.go
- resource_tc_tcaplus_cluster.go
- resource_tc_tcaplus_idl.go
- resource_tc_tcaplus_table.go
- resource_tc_tcaplus_tablegroup.go
- service_tencentcloud_tcaplus.go
Click to show internal directories.
Click to hide internal directories.