BasicAuth contains basic HTTP authentication credentials.
| 137 | |
| 138 | // BasicAuth contains basic HTTP authentication credentials. |
| 139 | type BasicAuth struct { |
| 140 | Username string `yaml:"username,omitempty" json:"username,omitempty"` |
| 141 | UsernameFile string `yaml:"username_file,omitempty" json:"username_file,omitempty"` |
| 142 | // UsernameRef is the name of the secret within the secret manager to use as the username. |
| 143 | UsernameRef string `yaml:"username_ref,omitempty" json:"username_ref,omitempty"` |
| 144 | Password Secret `yaml:"password,omitempty" json:"password,omitempty"` |
| 145 | PasswordFile string `yaml:"password_file,omitempty" json:"password_file,omitempty"` |
| 146 | // PasswordRef is the name of the secret within the secret manager to use as the password. |
| 147 | PasswordRef string `yaml:"password_ref,omitempty" json:"password_ref,omitempty"` |
| 148 | } |
| 149 | |
| 150 | // SetDirectory joins any relative file paths with dir. |
| 151 | func (a *BasicAuth) SetDirectory(dir string) { |
nothing calls this directly
no outgoing calls
no test coverage detected