(prefix string, f *flag.FlagSet)
| 34 | } |
| 35 | |
| 36 | func (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. |
| 42 | func (b BasicAuth) IsEnabled() bool { |
no outgoing calls
no test coverage detected