(ctx context.Context)
| 1257 | } |
| 1258 | |
| 1259 | func (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. |
| 1272 | func (config *DbConfig) redactInPlace(ctx context.Context) error { |
no test coverage detected