MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Redacted

Method Redacted

rest/config.go:1259–1269  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1257}
1258
1259func (dbConfig *DbConfig) Redacted(ctx context.Context) (*DbConfig, error) {
1260 var config DbConfig
1261
1262 err := base.DeepCopyInefficient(&config, dbConfig)
1263 if err != nil {
1264 return nil, err
1265 }
1266
1267 err = config.redactInPlace(ctx)
1268 return &config, err
1269}
1270
1271// redactInPlace modifies the given config to redact the fields inside it.
1272func (config *DbConfig) redactInPlace(ctx context.Context) error {

Callers 8

handleGetDbConfigMethod · 0.95
handleGetConfigMethod · 0.45
handleGetStatusMethod · 0.45
getReplicationsMethod · 0.45
getReplicationMethod · 0.45
redactInPlaceMethod · 0.45
redactConfigAsStrFunction · 0.45

Calls 2

redactInPlaceMethod · 0.95
DeepCopyInefficientFunction · 0.92

Tested by

no test coverage detected