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

Function WithSecretManager

config/http_config.go:592–596  ·  view source on GitHub ↗

WithSecretManager allows setting the secret manager.

(manager SecretManager)

Source from the content-addressed store, hash-verified

590
591// WithSecretManager allows setting the secret manager.
592func WithSecretManager(manager SecretManager) SecretManagerOption {
593 return &secretManagerOption{
594 secretManager: manager,
595 }
596}
597
598// NewClient returns a http.Client using the specified http.RoundTripper.
599func newClient(rt http.RoundTripper) *http.Client {

Calls

no outgoing calls

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…