setBootstrapConnectionOptsFromStartupConfig sets the bootstrapConnectionOpts struct with values from the startup config.
(opts *bootstrapConnectionOpts, config *StartupConfig)
| 410 | |
| 411 | // setBootstrapConnectionOptsFromStartupConfig sets the bootstrapConnectionOpts struct with values from the startup config. |
| 412 | func setBootstrapConnectionOptsFromStartupConfig(opts *bootstrapConnectionOpts, config *StartupConfig) { |
| 413 | opts.server = config.Bootstrap.Server |
| 414 | opts.username = config.Bootstrap.Username |
| 415 | opts.password = config.Bootstrap.Password |
| 416 | opts.x509CertPath = config.Bootstrap.X509CertPath |
| 417 | opts.x509KeyPath = config.Bootstrap.X509KeyPath |
| 418 | opts.caCertPath = config.Bootstrap.CACertPath |
| 419 | opts.isServerless = config.IsServerless() |
| 420 | opts.bucketCredentials = config.BucketCredentials |
| 421 | opts.tlsSkipVerify = config.Bootstrap.ServerTLSSkipVerify |
| 422 | opts.useXattrConfig = base.ValDefault(config.Unsupported.UseXattrConfig, false) |
| 423 | } |
| 424 | |
| 425 | // setBootstrapConnectionOptsFromDbConfig sets the bootstrapConnectionOpts struct with values from the db config. |
| 426 | func setBootstrapConnectionOptsFromDbConfig(opts *bootstrapConnectionOpts, dbConfig DbConfig) { |
no test coverage detected