初步实现多集群共享节点

This commit is contained in:
GoEdgeLab
2021-07-31 22:23:11 +08:00
parent 4407973626
commit 83ae3095cd
15 changed files with 468 additions and 116 deletions

View File

@@ -14,7 +14,8 @@ type Node struct {
Secret string `field:"secret"` // 密钥
Name string `field:"name"` // 节点名
Code string `field:"code"` // 代号
ClusterId uint32 `field:"clusterId"` // 集群ID
ClusterId uint32 `field:"clusterId"` // 集群ID
SecondaryClusterIds string `field:"secondaryClusterIds"` // 从集群ID
RegionId uint32 `field:"regionId"` // 区域ID
GroupId uint32 `field:"groupId"` // 分组ID
CreatedAt uint64 `field:"createdAt"` // 创建时间
@@ -45,7 +46,8 @@ type NodeOperator struct {
Secret interface{} // 密钥
Name interface{} // 节点名
Code interface{} // 代号
ClusterId interface{} // 集群ID
ClusterId interface{} // 集群ID
SecondaryClusterIds interface{} // 从集群ID
RegionId interface{} // 区域ID
GroupId interface{} // 分组ID
CreatedAt interface{} // 创建时间