MCPcopy Create free account
hub / github.com/prometheus/common / SetDirectory

Method SetDirectory

config/http_config.go:300–306  ·  view source on GitHub ↗

SetDirectory joins any relative file paths with dir.

(dir string)

Source from the content-addressed store, hash-verified

298
299// SetDirectory joins any relative file paths with dir.
300func (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.
309func LoadHTTPConfig(s string) (*HTTPClientConfig, error) {

Callers

nothing calls this directly

Calls 2

JoinDirFunction · 0.85
SetDirectoryMethod · 0.65

Tested by

no test coverage detected