Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DeprecatedFlagsUsed = promauto.NewCounter( prometheus.CounterOpts{ Namespace: "cortex", Name: "deprecated_flags_inuse_total", Help: "The number of deprecated flags currently set.", })
DeprecatedFlagsUsed is the metric that counts deprecated flags set.
Functions ¶
func DefaultValues ¶
func DefaultValues(rs ...Registerer)
DefaultValues initiates a set of configs (Registerers) with their defaults.
func DeprecatedFlag ¶
DeprecatedFlag logs a warning when you try to use it.
func IgnoredFlag ¶
IgnoredFlag ignores set value, without any warning
func RegisterFlags ¶
func RegisterFlags(rs ...Registerer)
RegisterFlags registers flags with the provided Registerers
Types ¶
type DayValue ¶
DayValue is a model.Time that can be used as a flag. NB it only parses days!
func NewDayValue ¶
NewDayValue makes a new DayValue; will round t down to the nearest midnight.
func (DayValue) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*DayValue) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Registerer ¶
Registerer is a thing that can RegisterFlags
type Secret ¶
type Secret struct {
Value string
}
func (Secret) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Secret) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type StringSlice ¶
type StringSlice []string
StringSlice is a slice of strings that implements flag.Value
type Time ¶
Time usable as flag or in YAML config.
func (Time) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Time) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type URLValue ¶
URLValue is a url.URL that can be used as a flag.
func (URLValue) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*URLValue) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.