MCPcopy
hub / github.com/grafana/tempo / RegisterFlagsWithPrefix

Method RegisterFlagsWithPrefix

pkg/util/http.go:36–39  ·  view source on GitHub ↗
(prefix string, f *flag.FlagSet)

Source from the content-addressed store, hash-verified

34}
35
36func (b *BasicAuth) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet) {
37 f.StringVar(&b.Username, prefix+"basic-auth-username", "", "HTTP Basic authentication username. It overrides the username set in the URL (if any).")
38 f.StringVar(&b.Password, prefix+"basic-auth-password", "", "HTTP Basic authentication password. It overrides the password set in the URL (if any).")
39}
40
41// IsEnabled returns false if basic authentication isn't enabled.
42func (b BasicAuth) IsEnabled() bool {

Callers 9

RegisterFlagsMethod · 0.45
RegisterFlagsMethod · 0.45
RegisterFlagsMethod · 0.45
RegisterFlagsMethod · 0.45
RegisterFlagsMethod · 0.45
RegisterFlagsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected