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

Method SetDirectory

config/http_config.go:167–172  ·  view source on GitHub ↗

SetDirectory joins any relative file paths with dir.

(dir string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

JoinDirFunction · 0.85

Tested by

no test coverage detected