-
Notifications
You must be signed in to change notification settings - Fork 1
/
equals_helper.go
25 lines (22 loc) · 964 Bytes
/
equals_helper.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// DISCLAIMER
//
// Copyright 2022-2023 ArangoDB GmbH, Cologne, Germany
//
package v1
// Equals returns true when source and other have the same values.
func (source *DeploymentReplication_Status) Equals(other *DeploymentReplication_Status) bool {
return source.GetPhase() == other.GetPhase() &&
source.GetMessage() == other.GetMessage() &&
source.GetProgress() == other.GetProgress() &&
source.GetSyncEndpoint() == other.GetSyncEndpoint() &&
source.GetForwarderEndpoint() == other.GetForwarderEndpoint()
}
// Equals returns true when source and other have the same values.
func (source *DeploymentMigration_Status) Equals(other *DeploymentMigration_Status) bool {
return source.GetPhase() == other.GetPhase() &&
source.GetDescription() == other.GetDescription() &&
source.GetBackupId() == other.GetBackupId() &&
source.GetTargetDeploymentId() == other.GetTargetDeploymentId() &&
source.GetLastUpdatedAt().Equal(other.GetLastUpdatedAt())
}