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

Struct refSecret

config/http_config.go:822–825  ·  view source on GitHub ↗

refSecret fetches a single secret from a SecretManager.

Source from the content-addressed store, hash-verified

820
821// refSecret fetches a single secret from a SecretManager.
822type refSecret struct {
823 ref string
824 manager SecretManager // manager is expected to be not nil.
825}
826
827func (s *refSecret) Fetch(ctx context.Context) (string, error) {
828 return s.manager.Fetch(ctx, s.ref)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected