| 433 | |
| 434 | |
| 435 | static http::Headers getAuthHeaderBearer( |
| 436 | const Option<string>& authToken) |
| 437 | { |
| 438 | http::Headers headers; |
| 439 | |
| 440 | if (authToken.isSome()) { |
| 441 | headers["Authorization"] = "Bearer " + authToken.get(); |
| 442 | } |
| 443 | |
| 444 | return headers; |
| 445 | } |
| 446 | |
| 447 | |
| 448 | static URI constructRegistryUri(const URI& imageUri, string&& path) |
no test coverage detected