MCPcopy Create free account
hub / github.com/bytebase/bytebase / Equal

Method Equal

backend/generated-go/store/instance_equal.pb.go:186–376  ·  view source on GitHub ↗
(y *DataSource)

Source from the content-addressed store, hash-verified

184}
185
186func (x *DataSource) Equal(y *DataSource) bool {
187 if x == y {
188 return true
189 }
190 if x == nil || y == nil {
191 return x == nil && y == nil
192 }
193 if x.Id != y.Id {
194 return false
195 }
196 if x.Type != y.Type {
197 return false
198 }
199 if x.Username != y.Username {
200 return false
201 }
202 if x.Password != y.Password {
203 return false
204 }
205 if x.ObfuscatedPassword != y.ObfuscatedPassword {
206 return false
207 }
208 if x.UseSsl != y.UseSsl {
209 return false
210 }
211 if x.SslCa != y.SslCa {
212 return false
213 }
214 if x.ObfuscatedSslCa != y.ObfuscatedSslCa {
215 return false
216 }
217 if x.SslCert != y.SslCert {
218 return false
219 }
220 if x.ObfuscatedSslCert != y.ObfuscatedSslCert {
221 return false
222 }
223 if x.SslKey != y.SslKey {
224 return false
225 }
226 if x.ObfuscatedSslKey != y.ObfuscatedSslKey {
227 return false
228 }
229 if x.SslCaPath != y.SslCaPath {
230 return false
231 }
232 if x.ObfuscatedSslCaPath != y.ObfuscatedSslCaPath {
233 return false
234 }
235 if x.SslCertPath != y.SslCertPath {
236 return false
237 }
238 if x.ObfuscatedSslCertPath != y.ObfuscatedSslCertPath {
239 return false
240 }
241 if x.SslKeyPath != y.SslKeyPath {
242 return false
243 }

Callers

nothing calls this directly

Calls 4

GetAzureCredentialMethod · 0.95
GetAwsCredentialMethod · 0.95
GetGcpCredentialMethod · 0.95
EqualMethod · 0.65

Tested by

no test coverage detected