MCPcopy Create free account
hub / github.com/apache/mesos / getAuthHeaderBearer

Function getAuthHeaderBearer

src/uri/fetchers/docker.cpp:435–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433
434
435static 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
448static URI constructRegistryUri(const URI& imageUri, string&& path)

Callers 1

getAuthHeaderMethod · 0.85

Calls 2

isSomeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected