Skip to content

Commit

Permalink
Add doc and update SCS features
Browse files Browse the repository at this point in the history
  • Loading branch information
DDC-Console committed May 20, 2022
1 parent 0bcd6d3 commit 3eba63c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/SCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ args := &scs.CreateInstanceArgs{
EngineVersion: "3.2",
// 存储空间 当Engine为3时添加
// DiskFlavor: 60,
// 磁盘类型 当Engine为3时添加目前支持cds essd两个类型
// DiskType: "essd",
// 节点规格
NodeType: "cache.n1.micro",
// 集群类型,集群版:"cluster",主从版:"master_slave"
Expand Down
1 change: 1 addition & 0 deletions services/scs/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func TestClient_CreateInstance(t *testing.T) {
ShardNum: 1,
ProxyNum: 2,
DiskFlavor: 60,
DiskType: "essd",
BgwGroupId: "",
StoreType: 3,
EnableReadOnly: 1,
Expand Down
2 changes: 2 additions & 0 deletions services/scs/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type CreateInstanceArgs struct {
Engine int `json:"engine,omitempty"`
EngineVersion string `json:"engineVersion"`
DiskFlavor int `json:"diskFlavor,omitempty"`
DiskType string `json:"diskType,omitempty"`
VpcID string `json:"vpcId"`
Subnets []Subnet `json:"subnets,omitempty"`
AutoRenewTimeUnit string `json:"autoRenewTimeUnit,omitempty"`
Expand Down Expand Up @@ -100,6 +101,7 @@ type ResizeInstanceArgs struct {
IsDefer bool `json:"isDefer"`
ClientToken string `json:"-"`
DiskFlavor int `json:"diskFlavor"`
DiskType string `json:"diskType"`
}

type ReplicationArgs struct {
Expand Down

0 comments on commit 3eba63c

Please sign in to comment.