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

Method SetDirectory

config/http_config.go:910–917  ·  view source on GitHub ↗

SetDirectory joins any relative file paths with dir.

(dir string)

Source from the content-addressed store, hash-verified

908
909// SetDirectory joins any relative file paths with dir.
910func (c *TLSConfig) SetDirectory(dir string) {
911 if c == nil {
912 return
913 }
914 c.CAFile = JoinDir(dir, c.CAFile)
915 c.CertFile = JoinDir(dir, c.CertFile)
916 c.KeyFile = JoinDir(dir, c.KeyFile)
917}
918
919// UnmarshalYAML implements the yaml.Unmarshaler interface.
920func (c *TLSConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {

Callers

nothing calls this directly

Calls 1

JoinDirFunction · 0.85

Tested by

no test coverage detected