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

Method SetDirectory

config/config.go:91–91  ·  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

89 // SetDirectory joins any relative file paths with dir.
90 // Any paths that are empty or absolute remain unchanged.
91 SetDirectory(dir string)
92}
93
94// JoinDir joins dir and path if path is relative.

Callers 3

SetDirectoryMethod · 0.65
LoadHTTPConfigFileFunction · 0.65
SetDirectoryMethod · 0.65

Implementers 7

Headersconfig/headers.go
Headerconfig/headers.go
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