Skip to content

Commit

Permalink
Add new fields for HA
Browse files Browse the repository at this point in the history
  • Loading branch information
kairen committed Sep 27, 2019
1 parent 661e036 commit 70726eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion testdata/testdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ func (c *MockClient) GetHighAvailabilityStatus() (*util.HighAvailability, error)
ha := &util.HighAvailability{
Enable: "yes",
Group: util.HighAvailabilityGroup{
Mode: "Active-Passive",
Mode: "Active-Passive",
RunningSync: "synchronized",
RunningSyncEnabled: "yes",
Local: util.HighAvailabilityInfo{
State: "active",
StateSync: "Complete",
Expand Down
8 changes: 5 additions & 3 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,11 @@ type HighAvailabilityInfo struct {
}

type HighAvailabilityGroup struct {
Mode string `xml:"mode"`
Local HighAvailabilityInfo `xml:"local-info"`
Peer HighAvailabilityInfo `xml:"peer-info"`
Mode string `xml:"mode"`
RunningSync string `xml:"running-sync"`
RunningSyncEnabled string `xml:"running-sync-enabled"`
Local HighAvailabilityInfo `xml:"local-info"`
Peer HighAvailabilityInfo `xml:"peer-info"`
}

type HighAvailability struct {
Expand Down

0 comments on commit 70726eb

Please sign in to comment.