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

Struct Authorization

config/http_config.go:160–166  ·  view source on GitHub ↗

Authorization contains HTTP authorization credentials.

Source from the content-addressed store, hash-verified

158
159// Authorization contains HTTP authorization credentials.
160type Authorization struct {
161 Type string `yaml:"type,omitempty" json:"type,omitempty"`
162 Credentials Secret `yaml:"credentials,omitempty" json:"credentials,omitempty"`
163 CredentialsFile string `yaml:"credentials_file,omitempty" json:"credentials_file,omitempty"`
164 // CredentialsRef is the name of the secret within the secret manager to use as credentials.
165 CredentialsRef string `yaml:"credentials_ref,omitempty" json:"credentials_ref,omitempty"`
166}
167
168// SetDirectory joins any relative file paths with dir.
169func (a *Authorization) SetDirectory(dir string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected