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

Method MarshalJSON

config/config.go:45–50  ·  view source on GitHub ↗

MarshalJSON implements the json.Marshaler interface for Secret.

()

Source from the content-addressed store, hash-verified

43
44// MarshalJSON implements the json.Marshaler interface for Secret.
45func (s Secret) MarshalJSON() ([]byte, error) {
46 if len(s) == 0 {
47 return json.Marshal("")
48 }
49 return json.Marshal(secretToken)
50}
51
52type Header map[string][]Secret
53

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected