Documentation
¶
Overview ¶
Package secret provides the Secret type used in Prometheus configuration.
It is split out of package config so that libraries can use Secret without pulling in the dependencies of the HTTP client configuration. config.Secret is an alias of this type, so the two can be used interchangeably.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Secret ¶
type Secret string
Secret special type for storing secrets.
Secret values are redacted when marshalled, unless config.MarshalSecretValue is set to true.
func (Secret) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Secret.
func (Secret) MarshalYAML ¶
MarshalYAML implements the yaml.Marshaler interface for Secrets.
Click to show internal directories.
Click to hide internal directories.