CopyConfig returns a copy of the given config
(config *Config)
| 511 | |
| 512 | // CopyConfig returns a copy of the given config |
| 513 | func CopyConfig(config *Config) *Config { |
| 514 | return &Config{ |
| 515 | Host: config.Host, |
| 516 | APIPath: config.APIPath, |
| 517 | ContentConfig: config.ContentConfig, |
| 518 | Username: config.Username, |
| 519 | Password: config.Password, |
| 520 | BearerToken: config.BearerToken, |
| 521 | BearerTokenFile: config.BearerTokenFile, |
| 522 | Impersonate: ImpersonationConfig{ |
| 523 | Groups: config.Impersonate.Groups, |
| 524 | Extra: config.Impersonate.Extra, |
| 525 | UserName: config.Impersonate.UserName, |
| 526 | }, |
| 527 | AuthProvider: config.AuthProvider, |
| 528 | AuthConfigPersister: config.AuthConfigPersister, |
| 529 | ExecProvider: config.ExecProvider, |
| 530 | TLSClientConfig: TLSClientConfig{ |
| 531 | Insecure: config.TLSClientConfig.Insecure, |
| 532 | ServerName: config.TLSClientConfig.ServerName, |
| 533 | CertFile: config.TLSClientConfig.CertFile, |
| 534 | KeyFile: config.TLSClientConfig.KeyFile, |
| 535 | CAFile: config.TLSClientConfig.CAFile, |
| 536 | CertData: config.TLSClientConfig.CertData, |
| 537 | KeyData: config.TLSClientConfig.KeyData, |
| 538 | CAData: config.TLSClientConfig.CAData, |
| 539 | }, |
| 540 | UserAgent: config.UserAgent, |
| 541 | Transport: config.Transport, |
| 542 | WrapTransport: config.WrapTransport, |
| 543 | QPS: config.QPS, |
| 544 | Burst: config.Burst, |
| 545 | RateLimiter: config.RateLimiter, |
| 546 | Timeout: config.Timeout, |
| 547 | Dial: config.Dial, |
| 548 | } |
| 549 | } |
no outgoing calls