You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by tn...@apache.org on 2015/11/06 08:06:16 UTC
[7/9] mesos git commit: Added const to private methods in registry
client.
Added const to private methods in registry client.
Review: https://reviews.apache.org/r/39053
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/850d6fe8
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/850d6fe8
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/850d6fe8
Branch: refs/heads/master
Commit: 850d6fe80994a7269ca5b7791bec762c688d4999
Parents: b5cb930
Author: Jojy Varghese <jo...@mesosphere.io>
Authored: Thu Nov 5 21:12:47 2015 -0800
Committer: Timothy Chen <tn...@apache.org>
Committed: Thu Nov 5 22:28:06 2015 -0800
----------------------------------------------------------------------
.../mesos/provisioner/docker/registry_client.cpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/850d6fe8/src/slave/containerizer/mesos/provisioner/docker/registry_client.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/provisioner/docker/registry_client.cpp b/src/slave/containerizer/mesos/provisioner/docker/registry_client.cpp
index 19d7f16..79f7556 100644
--- a/src/slave/containerizer/mesos/provisioner/docker/registry_client.cpp
+++ b/src/slave/containerizer/mesos/provisioner/docker/registry_client.cpp
@@ -94,15 +94,15 @@ private:
const http::Response& httpResponse) const;
Future<http::Response> handleHttpBadResponse(
- const http::Response& httpResponse);
+ const http::Response& httpResponse) const;
Future<http::Response> handleHttpUnauthResponse(
const http::Response& httpResponse,
- const http::URL& url);
+ const http::URL& url) const;
Future<http::Response> handleHttpRedirect(
const http::Response& httpResponse,
- const Option<http::Headers>& headers);
+ const Option<http::Headers>& headers) const;
const http::URL registryServer_;
Owned<TokenManager> tokenManager_;
@@ -247,7 +247,7 @@ Try<http::Headers> RegistryClientProcess::getAuthenticationAttributes(
Future<http::Response> RegistryClientProcess::handleHttpUnauthResponse(
const http::Response& httpResponse,
- const http::URL& url)
+ const http::URL& url) const
{
Try<http::Headers> authenticationAttributes =
getAuthenticationAttributes(httpResponse);
@@ -293,7 +293,7 @@ Future<http::Response> RegistryClientProcess::handleHttpUnauthResponse(
Future<http::Response> RegistryClientProcess::handleHttpBadResponse(
- const http::Response& httpResponse)
+ const http::Response& httpResponse) const
{
Try<JSON::Object> errorResponse =
JSON::parse<JSON::Object>(httpResponse.body);
@@ -348,7 +348,7 @@ Future<http::Response> RegistryClientProcess::handleHttpBadResponse(
Future<http::Response> RegistryClientProcess::handleHttpRedirect(
const http::Response& httpResponse,
- const Option<http::Headers>& headers)
+ const Option<http::Headers>& headers) const
{
// TODO(jojy): Add redirect functionality in http::get.
auto toURL = [](