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

Method SetDirectory

config/http_config.go:169–174  ·  view source on GitHub ↗

SetDirectory joins any relative file paths with dir.

(dir string)

Source from the content-addressed store, hash-verified

167
168// SetDirectory joins any relative file paths with dir.
169func (a *Authorization) SetDirectory(dir string) {
170 if a == nil {
171 return
172 }
173 a.CredentialsFile = JoinDir(dir, a.CredentialsFile)
174}
175
176// URL is a custom URL type that allows validation at configuration load time.
177type URL struct {

Callers

nothing calls this directly

Calls 1

JoinDirFunction · 0.85

Tested by

no test coverage detected