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

Struct Authorization

config/http_config.go:147–151  ·  view source on GitHub ↗

Authorization contains HTTP authorization credentials.

Source from the content-addressed store, hash-verified

145
146// Authorization contains HTTP authorization credentials.
147type Authorization struct {
148 Type string `yaml:"type,omitempty" json:"type,omitempty"`
149 Credentials Secret `yaml:"credentials,omitempty" json:"credentials,omitempty"`
150 CredentialsFile string `yaml:"credentials_file,omitempty" json:"credentials_file,omitempty"`
151}
152
153// SetDirectory joins any relative file paths with dir.
154func (a *Authorization) SetDirectory(dir string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected