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