SetDirectory joins any relative file paths with dir.
(dir string)
| 298 | |
| 299 | // SetDirectory joins any relative file paths with dir. |
| 300 | func (o *OAuth2) SetDirectory(dir string) { |
| 301 | if o == nil { |
| 302 | return |
| 303 | } |
| 304 | o.ClientSecretFile = JoinDir(dir, o.ClientSecretFile) |
| 305 | o.TLSConfig.SetDirectory(dir) |
| 306 | } |
| 307 | |
| 308 | // LoadHTTPConfig parses the YAML input s into a HTTPClientConfig. |
| 309 | func LoadHTTPConfig(s string) (*HTTPClientConfig, error) { |
nothing calls this directly
no test coverage detected