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

Method SetDirectory

config/http_config.go:154–159  ·  view source on GitHub ↗

SetDirectory joins any relative file paths with dir.

(dir string)

Source from the content-addressed store, hash-verified

152
153// SetDirectory joins any relative file paths with dir.
154func (a *Authorization) SetDirectory(dir string) {
155 if a == nil {
156 return
157 }
158 a.CredentialsFile = JoinDir(dir, a.CredentialsFile)
159}
160
161// URL is a custom URL type that allows validation at configuration load time.
162type URL struct {

Callers

nothing calls this directly

Calls 1

JoinDirFunction · 0.85

Tested by

no test coverage detected