Authorization contains HTTP authorization credentials.
| 156 | |
| 157 | // Authorization contains HTTP authorization credentials. |
| 158 | type Authorization struct { |
| 159 | Type string `yaml:"type,omitempty" json:"type,omitempty"` |
| 160 | Credentials Secret `yaml:"credentials,omitempty" json:"credentials,omitempty"` |
| 161 | CredentialsFile string `yaml:"credentials_file,omitempty" json:"credentials_file,omitempty"` |
| 162 | // CredentialsRef is the name of the secret within the secret manager to use as credentials. |
| 163 | CredentialsRef string `yaml:"credentials_ref,omitempty" json:"credentials_ref,omitempty"` |
| 164 | } |
| 165 | |
| 166 | // SetDirectory joins any relative file paths with dir. |
| 167 | func (a *Authorization) SetDirectory(dir string) { |
nothing calls this directly
no outgoing calls
no test coverage detected