OverrideRemotes takes a signing configuration and updates the remote server object to the hostname:port combination sent by remote
(remote string)
| 380 | // OverrideRemotes takes a signing configuration and updates the remote server object |
| 381 | // to the hostname:port combination sent by remote |
| 382 | func (p *Signing) OverrideRemotes(remote string) error { |
| 383 | if remote != "" { |
| 384 | var err error |
| 385 | for _, profile := range p.Profiles { |
| 386 | err = profile.updateRemote(remote) |
| 387 | if err != nil { |
| 388 | return err |
| 389 | } |
| 390 | } |
| 391 | err = p.Default.updateRemote(remote) |
| 392 | if err != nil { |
| 393 | return err |
| 394 | } |
| 395 | } |
| 396 | return nil |
| 397 | } |
| 398 | |
| 399 | // SetClientCertKeyPairFromFile updates the properties to set client certificates for mutual |
| 400 | // authenticated TLS remote requests |