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

Method SetDirectory

config/config.go:80–80  ·  view source on GitHub ↗

SetDirectory joins any relative file paths with dir. Any paths that are empty or absolute remain unchanged.

(dir string)

Source from the content-addressed store, hash-verified

78 // SetDirectory joins any relative file paths with dir.
79 // Any paths that are empty or absolute remain unchanged.
80 SetDirectory(dir string)
81}
82
83// JoinDir joins dir and path if path is relative.

Callers 3

SetDirectoryMethod · 0.65
LoadHTTPConfigFileFunction · 0.65
SetDirectoryMethod · 0.65

Implementers 5

BasicAuthconfig/http_config.go
Authorizationconfig/http_config.go
OAuth2config/http_config.go
HTTPClientConfigconfig/http_config.go
TLSConfigconfig/http_config.go

Calls

no outgoing calls

Tested by

no test coverage detected