Updated the website built from mesos SHA: 348ec1a.
Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/dfbf7828 Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/dfbf7828 Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/dfbf7828 Branch: refs/heads/asf-site Commit: dfbf782867116c18648e5c8f2f90e821b5bc2642 Parents: 2306ff3 Author: jenkins <bui...@apache.org> Authored: Wed Mar 7 02:08:28 2018 +0000 Committer: jenkins <bui...@apache.org> Committed: Wed Mar 7 02:08:28 2018 +0000 ---------------------------------------------------------------------- content/api/latest/c++/Nodes.xml | 5 + content/api/latest/c++/Tokens.xml | 22 + content/api/latest/c++/docker__common_8hpp.html | 3 + .../latest/c++/docker__common_8hpp_source.html | 338 +- content/api/latest/c++/globals_0x75.html | 6 +- content/api/latest/c++/index.hhc | 1 + content/api/latest/c++/index.hhk | 156 +- .../api/latest/c++/namespacemembers_0x61.html | 16 +- .../api/latest/c++/namespacemembers_0x67.html | 6 +- .../api/latest/c++/namespacemembers_0x6b.html | 6 +- .../api/latest/c++/namespacemembers_0x6d.html | 6 +- .../api/latest/c++/namespacemembers_0x72.html | 19 +- .../api/latest/c++/namespacemembers_0x73.html | 11 +- .../api/latest/c++/namespacemembers_0x74.html | 12 +- .../api/latest/c++/namespacemembers_0x75.html | 6 +- .../latest/c++/namespacemembers_func_0x61.html | 15 +- .../latest/c++/namespacemembers_func_0x75.html | 6 +- .../namespacemesos_1_1internal_1_1tests.html | 26 + content/blog/feed.xml | 2 +- .../index.html | 2 +- content/sitemap.xml | 9090 +++++++++--------- 21 files changed, 4929 insertions(+), 4825 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/Nodes.xml ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/Nodes.xml b/content/api/latest/c++/Nodes.xml index 9c517df..a00f3ca 100644 --- a/content/api/latest/c++/Nodes.xml +++ b/content/api/latest/c++/Nodes.xml @@ -92367,6 +92367,11 @@ <Anchor>a4853e9066cb5127d1b29a07d1a3c9e02</Anchor> </Node> <Node> + <Name>assertDockerKillStatus</Name> + <Path>docker__common_8hpp.html</Path> + <Anchor>af386ecbbf46a9598c02450185b4ba3e2</Anchor> + </Node> + <Node> <Name>createDockerIPv6UserNetwork</Name> <Path>docker__common_8hpp.html</Path> <Anchor>a971a18f563bfbd01896a97a7a72ccde1</Anchor> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/Tokens.xml ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/Tokens.xml b/content/api/latest/c++/Tokens.xml index d500491..50944c8 100644 --- a/content/api/latest/c++/Tokens.xml +++ b/content/api/latest/c++/Tokens.xml @@ -29508,6 +29508,17 @@ </Token> <Token> <TokenIdentifier> + <Name>assertDockerKillStatus</Name> + <APILanguage>cpp</APILanguage> + <Type>func</Type> + <Scope>mesos::internal::tests</Scope> + </TokenIdentifier> + <Path>namespacemesos_1_1internal_1_1tests.html</Path> + <Anchor>af386ecbbf46a9598c02450185b4ba3e2</Anchor> + <DeclaredIn>docker_common.hpp</DeclaredIn> + </Token> + <Token> + <TokenIdentifier> <Name>DOCKER_IPv6_NETWORK</Name> <APILanguage>cpp</APILanguage> <Type>data</Type> @@ -130853,6 +130864,17 @@ </Token> <Token> <TokenIdentifier> + <Name>assertDockerKillStatus</Name> + <APILanguage>cpp</APILanguage> + <Type>func</Type> + <Scope>mesos::internal::tests</Scope> + </TokenIdentifier> + <Path>namespacemesos_1_1internal_1_1tests.html</Path> + <Anchor>af386ecbbf46a9598c02450185b4ba3e2</Anchor> + <DeclaredIn>docker_common.hpp</DeclaredIn> + </Token> + <Token> + <TokenIdentifier> <Name>createEnvironment</Name> <APILanguage>cpp</APILanguage> <Type>func</Type> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/docker__common_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/docker__common_8hpp.html b/content/api/latest/c++/docker__common_8hpp.html index 6ebb2c1..42ed71f 100644 --- a/content/api/latest/c++/docker__common_8hpp.html +++ b/content/api/latest/c++/docker__common_8hpp.html @@ -67,6 +67,7 @@ <code>#include <<a class="el" href="stout_2include_2stout_2gtest_8hpp_source.html">stout/gtest.hpp</a>></code><br/> <code>#include <<a class="el" href="lambda_8hpp_source.html">stout/lambda.hpp</a>></code><br/> <code>#include <<a class="el" href="nothing_8hpp_source.html">stout/nothing.hpp</a>></code><br/> +<code>#include <<a class="el" href="option_8hpp_source.html">stout/option.hpp</a>></code><br/> <code>#include <<a class="el" href="try_8hpp_source.html">stout/try.hpp</a>></code><br/> <code>#include <<a class="el" href="mkdtemp_8hpp_source.html">stout/os/mkdtemp.hpp</a>></code><br/> <code>#include "<a class="el" href="docker_2docker_8hpp_source.html">docker/docker.hpp</a>"</code><br/> @@ -96,6 +97,8 @@ Functions</h2></td></tr> <tr class="separator:a971a18f563bfbd01896a97a7a72ccde1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4143a755ba48009f54529ab97cb3beb3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemesos_1_1internal_1_1tests.html#a4143a755ba48009f54529ab97cb3beb3">mesos::internal::tests::removeDockerIPv6UserNetwork</a> ()</td></tr> <tr class="separator:a4143a755ba48009f54529ab97cb3beb3"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:af386ecbbf46a9598c02450185b4ba3e2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemesos_1_1internal_1_1tests.html#af386ecbbf46a9598c02450185b4ba3e2">mesos::internal::tests::assertDockerKillStatus</a> (<a class="el" href="classprocess_1_1Future.html">process::Future</a>< <a class="el" href="classOption.html">Option</a>< int >> &status)</td></tr> +<tr class="separator:af386ecbbf46a9598c02450185b4ba3e2"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> Variables</h2></td></tr> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/docker__common_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/docker__common_8hpp_source.html b/content/api/latest/c++/docker__common_8hpp_source.html index c0ef697..152c698 100644 --- a/content/api/latest/c++/docker__common_8hpp_source.html +++ b/content/api/latest/c++/docker__common_8hpp_source.html @@ -83,187 +83,206 @@ <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <<a class="code" href="stout_2include_2stout_2gtest_8hpp.html">stout/gtest.hpp</a>></span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <<a class="code" href="lambda_8hpp.html">stout/lambda.hpp</a>></span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div> -<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div> -<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> -<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <<a class="code" href="mkdtemp_8hpp.html">stout/os/mkdtemp.hpp</a>></span></div> -<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div> -<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="docker_2docker_8hpp.html">docker/docker.hpp</a>"</span></div> -<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> -<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include "<a class="code" href="src_2tests_2flags_8hpp.html">tests/flags.hpp</a>"</span></div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> -<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">namespace </span>mesos {</div> -<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">namespace </span>internal {</div> -<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">namespace </span>tests {</div> -<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div> -<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div> -<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor"></span><span class="comment">// The following image is the microsoft/powershell:nanoserver image with</span></div> -<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">// ContainerAdministrator as the default user. There are some permission bugs</span></div> -<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment">// with accessing volume mounts in process (but not Hyper-V) isolation as</span></div> -<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">// the regular ContainerUser user, but accesing them as ContainerAdministrator</span></div> -<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// works fine. Note that this image runs the 1709 version, so the host needs</span></div> -<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">// to be 1709 if running on Windows Server. Running on a 1709 host is</span></div> -<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment">// recommended anyway since it fixes bugs that made these tests run slowly.</span></div> -<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_TEST_IMAGE[] = <span class="stringliteral">"akagup/pwsh-nano-admin"</span>;</div> -<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div> -<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment">// The powershell image uses Powershell Core, which calls the executable as</span></div> -<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// `pwsh` instead of `powershell`. So the regular sleep macro doesn't work.</span></div> -<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor">#define DOCKER_SLEEP_CMD(x) "pwsh -Command Start-Sleep -Seconds " #x</span></div> -<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor"></span></div> -<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment">// We use a custom HTTP(S) server here, because the official `microsoft/iis`</span></div> -<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment">// HTTP server image is ~20x larger than this one, so pulling it takes too</span></div> -<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment">// long. This server supports HTTP and HTTPS listening on port 80 and 443.</span></div> -<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment">// For more information, see https://github.com/gupta-ak/https-server.</span></div> -<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTP_IMAGE[] = <span class="stringliteral">"akagup/https-server"</span>;</div> -<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTP_COMMAND[] = <span class="stringliteral">"http.exe"</span>;</div> -<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTPS_IMAGE[] = <span class="stringliteral">"akagup/https-server"</span>;</div> -<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTPS_COMMAND[] = <span class="stringliteral">"http.exe"</span>;</div> -<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#else</span></div> -<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor"></span><span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_TEST_IMAGE[] = <span class="stringliteral">"alpine"</span>;</div> -<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div> -<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="docker__common_8hpp.html#a4853e9066cb5127d1b29a07d1a3c9e02"> 69</a></span> <span class="preprocessor">#define DOCKER_SLEEP_CMD(x) SLEEP_COMMAND(x)</span></div> -<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="preprocessor"></span></div> -<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment">// The HTTP server is netcat running on alpine.</span></div> -<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTP_IMAGE[] = <span class="stringliteral">"alpine"</span>;</div> -<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTP_COMMAND[] =</div> -<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="stringliteral">"nc -lk -p 80 -e echo -e \"HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\""</span>;</div> -<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div> -<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment">// Refer to https://github.com/qianzhangxa/https-server for</span></div> -<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment">// how the Docker image `zhq527725/https-server` works.</span></div> -<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTPS_IMAGE[] = <span class="stringliteral">"zhq527725/https-server"</span>;</div> -<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTPS_COMMAND[] = <span class="stringliteral">"python https_server.py 443"</span>;</div> -<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> -<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor"></span></div> -<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e"> 82</a></span> constexpr <span class="keywordtype">char</span> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">DOCKER_IPv6_NETWORK</a>[] = <span class="stringliteral">"mesos-docker-ip6-test"</span>;</div> -<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <<a class="code" href="option_8hpp.html">stout/option.hpp</a>></span></div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include <<a class="code" href="mkdtemp_8hpp.html">stout/os/mkdtemp.hpp</a>></span></div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="docker_2docker_8hpp.html">docker/docker.hpp</a>"</span></div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include "<a class="code" href="src_2tests_2flags_8hpp.html">tests/flags.hpp</a>"</span></div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">namespace </span>mesos {</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">namespace </span>internal {</div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">namespace </span>tests {</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor"></span><span class="comment">// The following image is the microsoft/powershell:nanoserver image with</span></div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment">// ContainerAdministrator as the default user. There are some permission bugs</span></div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">// with accessing volume mounts in process (but not Hyper-V) isolation as</span></div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// the regular ContainerUser user, but accesing them as ContainerAdministrator</span></div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">// works fine. Note that this image runs the 1709 version, so the host needs</span></div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment">// to be 1709 if running on Windows Server. Running on a 1709 host is</span></div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">// recommended anyway since it fixes bugs that made these tests run slowly.</span></div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_TEST_IMAGE[] = <span class="stringliteral">"akagup/pwsh-nano-admin"</span>;</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// The powershell image uses Powershell Core, which calls the executable as</span></div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment">// `pwsh` instead of `powershell`. So the regular sleep macro doesn't work.</span></div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">#define DOCKER_SLEEP_CMD(x) "pwsh -Command Start-Sleep -Seconds " #x</span></div> +<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment">// We use a custom HTTP(S) server here, because the official `microsoft/iis`</span></div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment">// HTTP server image is ~20x larger than this one, so pulling it takes too</span></div> +<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment">// long. This server supports HTTP and HTTPS listening on port 80 and 443.</span></div> +<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// For more information, see https://github.com/gupta-ak/https-server.</span></div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTP_IMAGE[] = <span class="stringliteral">"akagup/https-server"</span>;</div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTP_COMMAND[] = <span class="stringliteral">"http.exe"</span>;</div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTPS_IMAGE[] = <span class="stringliteral">"akagup/https-server"</span>;</div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTPS_COMMAND[] = <span class="stringliteral">"http.exe"</span>;</div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">#else</span></div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor"></span><span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_TEST_IMAGE[] = <span class="stringliteral">"alpine"</span>;</div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div> +<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="docker__common_8hpp.html#a4853e9066cb5127d1b29a07d1a3c9e02"> 70</a></span> <span class="preprocessor">#define DOCKER_SLEEP_CMD(x) SLEEP_COMMAND(x)</span></div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment">// The HTTP server is netcat running on alpine.</span></div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTP_IMAGE[] = <span class="stringliteral">"alpine"</span>;</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTP_COMMAND[] =</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="stringliteral">"nc -lk -p 80 -e echo -e \"HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\""</span>;</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment">// Refer to https://github.com/qianzhangxa/https-server for</span></div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="comment">// how the Docker image `zhq527725/https-server` works.</span></div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTPS_IMAGE[] = <span class="stringliteral">"zhq527725/https-server"</span>;</div> +<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keyword">static</span> constexpr <span class="keywordtype">char</span> DOCKER_HTTPS_COMMAND[] = <span class="stringliteral">"python https_server.py 443"</span>;</div> +<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> +<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e"> 83</a></span> constexpr <span class="keywordtype">char</span> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">DOCKER_IPv6_NETWORK</a>[] = <span class="stringliteral">"mesos-docker-ip6-test"</span>;</div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div> -<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1tests.html#a15c592efe4e9ba851ddcf2c79f4b2dcf"> 85</a></span> <span class="keyword">inline</span> <a class="code" href="classprocess_1_1Future.html">process::Future<Nothing></a> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a15c592efe4e9ba851ddcf2c79f4b2dcf">pullDockerImage</a>(<span class="keyword">const</span> std::string& imageName)</div> -<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> {</div> -<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="classTry.html">Try<process::Owned<Docker></a>> docker =</div> -<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classDocker.html#a370c1d613e35cc8b8e393dc8c83876e6">Docker::create</a>(<a class="code" href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">tests::flags</a>.docker, <a class="code" href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">tests::flags</a>.docker_socket, <span class="keyword">false</span>);</div> -<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div> -<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">if</span> (docker.isError()) {</div> -<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> <a class="code" href="structprocess_1_1Failure.html">process::Failure</a>(docker.error());</div> -<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div> -<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div> -<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">const</span> <a class="code" href="classTry.html">Try<std::string></a> directory = <a class="code" href="namespaceos.html#afe70fd86d13b8f10cafb222bb80adcf6">os::mkdtemp</a>();</div> -<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">if</span> (directory.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div> -<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">return</span> <a class="code" href="structprocess_1_1Failure.html">process::Failure</a>(docker.error());</div> -<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div> -<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div> -<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">return</span> docker.get()->pull(directory.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>(), imageName)</div> -<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  .<a class="code" href="namespaceprocess_1_1internal.html#a7885011cf6470b707294a6ef4ec7a0a6">then</a>([]() {</div> -<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="comment">// `Docker::pull` returns a `Future<Docker::Image`>, but we only really</span></div> -<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="comment">// if the pull was successful, so we just return `Nothing` to match the</span></div> -<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">// return type of `pullDockerImage`.</span></div> -<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div> -<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  })</div> -<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  .onAny([directory]() -> <a class="code" href="classprocess_1_1Future.html">process::Future<Nothing></a> {</div> -<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceos.html#a84298b990ad52dfd353358427b04ff3f">rmdir</a> = <a class="code" href="namespaceos.html#a84298b990ad52dfd353358427b04ff3f">os::rmdir</a>(directory.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>());</div> -<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">if</span> (rmdir.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div> -<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">return</span> <a class="code" href="structprocess_1_1Failure.html">process::Failure</a>(rmdir.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div> -<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  }</div> -<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div> -<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  });</div> -<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> }</div> -<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div> +<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1tests.html#a15c592efe4e9ba851ddcf2c79f4b2dcf"> 86</a></span> <span class="keyword">inline</span> <a class="code" href="classprocess_1_1Future.html">process::Future<Nothing></a> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a15c592efe4e9ba851ddcf2c79f4b2dcf">pullDockerImage</a>(<span class="keyword">const</span> std::string& imageName)</div> +<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> {</div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classTry.html">Try<process::Owned<Docker></a>> docker =</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="classDocker.html#a370c1d613e35cc8b8e393dc8c83876e6">Docker::create</a>(<a class="code" href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">tests::flags</a>.docker, <a class="code" href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">tests::flags</a>.docker_socket, <span class="keyword">false</span>);</div> +<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div> +<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">if</span> (docker.isError()) {</div> +<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">return</span> <a class="code" href="structprocess_1_1Failure.html">process::Failure</a>(docker.error());</div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div> +<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">const</span> <a class="code" href="classTry.html">Try<std::string></a> directory = <a class="code" href="namespaceos.html#afe70fd86d13b8f10cafb222bb80adcf6">os::mkdtemp</a>();</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">if</span> (directory.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">return</span> <a class="code" href="structprocess_1_1Failure.html">process::Failure</a>(docker.error());</div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  }</div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div> +<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">return</span> docker.get()->pull(directory.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>(), imageName)</div> +<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  .<a class="code" href="namespaceprocess_1_1internal.html#a7885011cf6470b707294a6ef4ec7a0a6">then</a>([]() {</div> +<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="comment">// `Docker::pull` returns a `Future<Docker::Image`>, but we only really</span></div> +<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">// if the pull was successful, so we just return `Nothing` to match the</span></div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="comment">// return type of `pullDockerImage`.</span></div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  })</div> +<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  .onAny([directory]() -> <a class="code" href="classprocess_1_1Future.html">process::Future<Nothing></a> {</div> +<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceos.html#a84298b990ad52dfd353358427b04ff3f">rmdir</a> = <a class="code" href="namespaceos.html#a84298b990ad52dfd353358427b04ff3f">os::rmdir</a>(directory.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>());</div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">if</span> (rmdir.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> <a class="code" href="structprocess_1_1Failure.html">process::Failure</a>(rmdir.<a class="code" href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">error</a>());</div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div> +<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div> +<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  });</div> +<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> }</div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div> -<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1tests.html#a971a18f563bfbd01896a97a7a72ccde1"> 116</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a971a18f563bfbd01896a97a7a72ccde1">createDockerIPv6UserNetwork</a>()</div> -<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> {</div> -<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="comment">// Docker IPv6 is not supported on Windows, so no-op on that platform.</span></div> -<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">// TODO(akagup): Remove the #ifdef when Windows supports IPv6 networks</span></div> -<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="comment">// in docker containers. See MESOS-8566.</span></div> -<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="preprocessor">#ifndef __WINDOWS__</span></div> -<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="preprocessor"></span> <span class="comment">// Create a Docker user network with IPv6 enabled.</span></div> -<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="classTry.html">Try<std::string></a> dockerCommand = <a class="code" href="namespacestrings.html#a7884a23bea2a6543b8a93ad48faabe0c">strings::format</a>(</div> -<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="stringliteral">"docker network create --driver=bridge --ipv6 "</span></div> -<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="stringliteral">"--subnet=fd01::/64 %s"</span>,</div> -<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">DOCKER_IPv6_NETWORK</a>);</div> -<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div> -<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="classTry.html">Try<process::Subprocess></a> s = <a class="code" href="namespaceprocess.html#aabc8d31889b5a325275d13d7bcef6a9c">process::subprocess</a>(</div> -<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  dockerCommand.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>(),</div> -<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="classprocess_1_1Subprocess.html#a54793e9c516257d68776f63f0872c3c7">process::Subprocess::PATH</a>(<span class="stringliteral">"/dev/null"</span>),</div> +<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div> +<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1tests.html#a971a18f563bfbd01896a97a7a72ccde1"> 117</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a971a18f563bfbd01896a97a7a72ccde1">createDockerIPv6UserNetwork</a>()</div> +<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> {</div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">// Docker IPv6 is not supported on Windows, so no-op on that platform.</span></div> +<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="comment">// TODO(akagup): Remove the #ifdef when Windows supports IPv6 networks</span></div> +<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="comment">// in docker containers. See MESOS-8566.</span></div> +<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="preprocessor">#ifndef __WINDOWS__</span></div> +<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="preprocessor"></span> <span class="comment">// Create a Docker user network with IPv6 enabled.</span></div> +<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="classTry.html">Try<std::string></a> dockerCommand = <a class="code" href="namespacestrings.html#a7884a23bea2a6543b8a93ad48faabe0c">strings::format</a>(</div> +<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="stringliteral">"docker network create --driver=bridge --ipv6 "</span></div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="stringliteral">"--subnet=fd01::/64 %s"</span>,</div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">DOCKER_IPv6_NETWORK</a>);</div> +<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="classTry.html">Try<process::Subprocess></a> s = <a class="code" href="namespaceprocess.html#aabc8d31889b5a325275d13d7bcef6a9c">process::subprocess</a>(</div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  dockerCommand.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>(),</div> <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="classprocess_1_1Subprocess.html#a54793e9c516257d68776f63f0872c3c7">process::Subprocess::PATH</a>(<span class="stringliteral">"/dev/null"</span>),</div> -<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="classprocess_1_1Subprocess.html#a6af5024bd1932707893908fceb86ddad">process::Subprocess::PIPE</a>());</div> -<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div> -<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="stout_2include_2stout_2gtest_8hpp.html#a0add664e84bbf99f845f1b715dd63f90">ASSERT_SOME</a>(s) << <span class="stringliteral">"Unable to create the Docker IPv6 network: "</span></div> -<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  << <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">DOCKER_IPv6_NETWORK</a>;</div> -<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div> -<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="classprocess_1_1Future.html">process::Future<std::string></a> err = <a class="code" href="namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">process::io::read</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a98180558f1427a64a03cf3f656310bc4">err</a>().<a class="code" href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">get</a>());</div> -<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div> -<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="comment">// Wait for the network to be created.</span></div> -<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="libprocess_2include_2process_2gtest_8hpp.html#a269c59ba4bb2bec7ac8e361e45f52d43">AWAIT_READY</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>());</div> -<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="libprocess_2include_2process_2gtest_8hpp.html#a269c59ba4bb2bec7ac8e361e45f52d43">AWAIT_READY</a>(err);</div> -<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div> -<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="stout_2include_2stout_2gtest_8hpp.html#a0add664e84bbf99f845f1b715dd63f90">ASSERT_SOME</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>().<a class="code" href="classprocess_1_1Future.html#aa78977d3b585a5f5ccd682c1e9e2ddc4">get</a>());</div> -<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  ASSERT_EQ(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>()-><a class="code" href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">get</a>(), 0)</div> -<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  << <span class="stringliteral">"Unable to create the Docker IPv6 network "</span></div> -<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  << DOCKER_IPv6_NETWORK</div> -<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  << <span class="stringliteral">" : "</span> << err.<a class="code" href="classprocess_1_1Future.html#aa78977d3b585a5f5ccd682c1e9e2ddc4">get</a>();</div> -<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> -<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="preprocessor"></span>}</div> -<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div> +<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="classprocess_1_1Subprocess.html#a54793e9c516257d68776f63f0872c3c7">process::Subprocess::PATH</a>(<span class="stringliteral">"/dev/null"</span>),</div> +<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="classprocess_1_1Subprocess.html#a6af5024bd1932707893908fceb86ddad">process::Subprocess::PIPE</a>());</div> +<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="stout_2include_2stout_2gtest_8hpp.html#a0add664e84bbf99f845f1b715dd63f90">ASSERT_SOME</a>(s) << <span class="stringliteral">"Unable to create the Docker IPv6 network: "</span></div> +<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  << <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">DOCKER_IPv6_NETWORK</a>;</div> +<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div> +<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classprocess_1_1Future.html">process::Future<std::string></a> err = <a class="code" href="namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">process::io::read</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a98180558f1427a64a03cf3f656310bc4">err</a>().<a class="code" href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">get</a>());</div> +<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div> +<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="comment">// Wait for the network to be created.</span></div> +<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="libprocess_2include_2process_2gtest_8hpp.html#a269c59ba4bb2bec7ac8e361e45f52d43">AWAIT_READY</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>());</div> +<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="libprocess_2include_2process_2gtest_8hpp.html#a269c59ba4bb2bec7ac8e361e45f52d43">AWAIT_READY</a>(err);</div> +<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div> +<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="stout_2include_2stout_2gtest_8hpp.html#a0add664e84bbf99f845f1b715dd63f90">ASSERT_SOME</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>().<a class="code" href="classprocess_1_1Future.html#aa78977d3b585a5f5ccd682c1e9e2ddc4">get</a>());</div> +<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  ASSERT_EQ(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>()-><a class="code" href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">get</a>(), 0)</div> +<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  << <span class="stringliteral">"Unable to create the Docker IPv6 network "</span></div> +<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  << DOCKER_IPv6_NETWORK</div> +<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  << <span class="stringliteral">" : "</span> << err.<a class="code" href="classprocess_1_1Future.html#aa78977d3b585a5f5ccd682c1e9e2ddc4">get</a>();</div> +<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> +<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="preprocessor"></span>}</div> <div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div> -<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1tests.html#a4143a755ba48009f54529ab97cb3beb3"> 152</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a4143a755ba48009f54529ab97cb3beb3">removeDockerIPv6UserNetwork</a>()</div> -<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> {</div> -<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="comment">// Docker IPv6 is not supported on Windows, so no-op on that platform.</span></div> -<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="comment">// TODO(akagup): Remove the #ifdef when Windows supports IPv6 networks</span></div> -<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="comment">// in docker containers. See MESOS-8566.</span></div> -<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="preprocessor">#ifndef __WINDOWS__</span></div> -<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor"></span> <span class="comment">// Delete the Docker user network.</span></div> -<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="classTry.html">Try<std::string></a> dockerCommand =</div> -<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="namespacestrings.html#a7884a23bea2a6543b8a93ad48faabe0c">strings::format</a>(<span class="stringliteral">"docker network rm %s"</span>, <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">DOCKER_IPv6_NETWORK</a>);</div> -<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div> -<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="classTry.html">Try<process::Subprocess></a> s = <a class="code" href="namespaceprocess.html#aabc8d31889b5a325275d13d7bcef6a9c">subprocess</a>(</div> -<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  dockerCommand.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>(),</div> -<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="classprocess_1_1Subprocess.html#a54793e9c516257d68776f63f0872c3c7">process::Subprocess::PATH</a>(<span class="stringliteral">"/dev/null"</span>),</div> +<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div> +<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1tests.html#a4143a755ba48009f54529ab97cb3beb3"> 153</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a4143a755ba48009f54529ab97cb3beb3">removeDockerIPv6UserNetwork</a>()</div> +<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> {</div> +<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="comment">// Docker IPv6 is not supported on Windows, so no-op on that platform.</span></div> +<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="comment">// TODO(akagup): Remove the #ifdef when Windows supports IPv6 networks</span></div> +<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="comment">// in docker containers. See MESOS-8566.</span></div> +<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor">#ifndef __WINDOWS__</span></div> +<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="preprocessor"></span> <span class="comment">// Delete the Docker user network.</span></div> +<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="classTry.html">Try<std::string></a> dockerCommand =</div> +<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="namespacestrings.html#a7884a23bea2a6543b8a93ad48faabe0c">strings::format</a>(<span class="stringliteral">"docker network rm %s"</span>, <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">DOCKER_IPv6_NETWORK</a>);</div> +<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div> +<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="classTry.html">Try<process::Subprocess></a> s = <a class="code" href="namespaceprocess.html#aabc8d31889b5a325275d13d7bcef6a9c">subprocess</a>(</div> +<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  dockerCommand.<a class="code" href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">get</a>(),</div> <div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classprocess_1_1Subprocess.html#a54793e9c516257d68776f63f0872c3c7">process::Subprocess::PATH</a>(<span class="stringliteral">"/dev/null"</span>),</div> -<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classprocess_1_1Subprocess.html#a6af5024bd1932707893908fceb86ddad">process::Subprocess::PIPE</a>());</div> -<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div> -<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// This is best effort cleanup. In case of an error just a log an</span></div> -<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="comment">// error.</span></div> -<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="stout_2include_2stout_2gtest_8hpp.html#a0add664e84bbf99f845f1b715dd63f90">ASSERT_SOME</a>(s) << <span class="stringliteral">"Unable to delete the Docker IPv6 network: "</span></div> -<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  << <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">DOCKER_IPv6_NETWORK</a>;</div> -<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div> -<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="classprocess_1_1Future.html">process::Future<std::string></a> err = <a class="code" href="namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">process::io::read</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a98180558f1427a64a03cf3f656310bc4">err</a>().<a class="code" href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">get</a>());</div> -<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div> -<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="comment">// Wait for the network to be deleted.</span></div> -<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="libprocess_2include_2process_2gtest_8hpp.html#a269c59ba4bb2bec7ac8e361e45f52d43">AWAIT_READY</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>());</div> -<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="libprocess_2include_2process_2gtest_8hpp.html#a269c59ba4bb2bec7ac8e361e45f52d43">AWAIT_READY</a>(err);</div> -<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div> -<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="stout_2include_2stout_2gtest_8hpp.html#a0add664e84bbf99f845f1b715dd63f90">ASSERT_SOME</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>().<a class="code" href="classprocess_1_1Future.html#aa78977d3b585a5f5ccd682c1e9e2ddc4">get</a>());</div> -<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  ASSERT_EQ(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>()-><a class="code" href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">get</a>(), 0)</div> -<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  << <span class="stringliteral">"Unable to delete the Docker IPv6 network "</span></div> -<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  << DOCKER_IPv6_NETWORK</div> -<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  << <span class="stringliteral">" : "</span> << err.<a class="code" href="classprocess_1_1Future.html#aa78977d3b585a5f5ccd682c1e9e2ddc4">get</a>();</div> -<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> -<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="preprocessor"></span>}</div> -<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div> -<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> } <span class="comment">// namespace tests {</span></div> -<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> } <span class="comment">// namespace internal {</span></div> -<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> } <span class="comment">// namespace mesos {</span></div> -<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div> -<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="preprocessor">#endif // __TEST_DOCKER_COMMON_HPP__</span></div> +<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classprocess_1_1Subprocess.html#a54793e9c516257d68776f63f0872c3c7">process::Subprocess::PATH</a>(<span class="stringliteral">"/dev/null"</span>),</div> +<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="classprocess_1_1Subprocess.html#a6af5024bd1932707893908fceb86ddad">process::Subprocess::PIPE</a>());</div> +<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div> +<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="comment">// This is best effort cleanup. In case of an error just a log an</span></div> +<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="comment">// error.</span></div> +<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="stout_2include_2stout_2gtest_8hpp.html#a0add664e84bbf99f845f1b715dd63f90">ASSERT_SOME</a>(s) << <span class="stringliteral">"Unable to delete the Docker IPv6 network: "</span></div> +<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  << <a class="code" href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">DOCKER_IPv6_NETWORK</a>;</div> +<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div> +<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="classprocess_1_1Future.html">process::Future<std::string></a> err = <a class="code" href="namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">process::io::read</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a98180558f1427a64a03cf3f656310bc4">err</a>().<a class="code" href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">get</a>());</div> +<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div> +<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="comment">// Wait for the network to be deleted.</span></div> +<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="libprocess_2include_2process_2gtest_8hpp.html#a269c59ba4bb2bec7ac8e361e45f52d43">AWAIT_READY</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>());</div> +<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="libprocess_2include_2process_2gtest_8hpp.html#a269c59ba4bb2bec7ac8e361e45f52d43">AWAIT_READY</a>(err);</div> +<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div> +<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="stout_2include_2stout_2gtest_8hpp.html#a0add664e84bbf99f845f1b715dd63f90">ASSERT_SOME</a>(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>().<a class="code" href="classprocess_1_1Future.html#aa78977d3b585a5f5ccd682c1e9e2ddc4">get</a>());</div> +<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  ASSERT_EQ(s-><a class="code" href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">status</a>()-><a class="code" href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">get</a>(), 0)</div> +<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  << <span class="stringliteral">"Unable to delete the Docker IPv6 network "</span></div> +<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  << DOCKER_IPv6_NETWORK</div> +<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  << <span class="stringliteral">" : "</span> << err.<a class="code" href="classprocess_1_1Future.html#aa78977d3b585a5f5ccd682c1e9e2ddc4">get</a>();</div> +<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> +<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="preprocessor"></span>}</div> +<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div> +<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div> +<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="namespacemesos_1_1internal_1_1tests.html#af386ecbbf46a9598c02450185b4ba3e2"> 189</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#af386ecbbf46a9598c02450185b4ba3e2">assertDockerKillStatus</a>(<a class="code" href="classprocess_1_1Future.html">process::Future</a><<a class="code" href="classOption.html">Option<int></a>>& <a class="code" href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">status</a>)</div> +<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> {</div> +<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div> +<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="preprocessor"></span> <span class="comment">// On Windows, there is no standard exit code for determining if a process</span></div> +<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="comment">// as been killed. However, in Docker, it will not return 0.</span></div> +<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="libprocess_2include_2process_2gtest_8hpp.html#ae4d00c37c2287bce910fff6885429cfb">AWAIT_EXPECT_WEXITSTATUS_NE</a>(0, <a class="code" href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">status</a>.get());</div> +<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="preprocessor">#else</span></div> +<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="preprocessor"></span> <a class="code" href="libprocess_2include_2process_2gtest_8hpp.html#a222e5f770c87370e0f92d2a597b95b2d">AWAIT_EXPECT_WEXITSTATUS_EQ</a>(128 + <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a1c2b5693161bbc9d516ef5d16c7b54f5">SIGKILL</a>, <a class="code" href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">status</a>);</div> +<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> +<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="preprocessor"></span>}</div> +<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div> +<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> } <span class="comment">// namespace tests {</span></div> +<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> } <span class="comment">// namespace internal {</span></div> +<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> } <span class="comment">// namespace mesos {</span></div> +<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div> +<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="preprocessor">#endif // __TEST_DOCKER_COMMON_HPP__</span></div> <div class="ttc" id="namespaceos_html_a84298b990ad52dfd353358427b04ff3f"><div class="ttname"><a href="namespaceos.html#a84298b990ad52dfd353358427b04ff3f">os::rmdir</a></div><div class="ttdeci">Try< Nothing > rmdir(const std::string &directory, bool recursive=true, bool removeRoot=true, bool continueOnError=false)</div><div class="ttdef"><b>Definition:</b> rmdir.hpp:43</div></div> <div class="ttc" id="namespaceprocess_html_aabc8d31889b5a325275d13d7bcef6a9c"><div class="ttname"><a href="namespaceprocess.html#aabc8d31889b5a325275d13d7bcef6a9c">process::subprocess</a></div><div class="ttdeci">Try< Subprocess > subprocess(const std::string &path, std::vector< std::string > argv, const Subprocess::IO &in=Subprocess::FD(STDIN_FILENO), const Subprocess::IO &out=Subprocess::FD(STDOUT_FILENO), const Subprocess::IO &err=Subprocess::FD(STDERR_FILENO), const flags::FlagsBase *flags=nullptr, const Option< std::map< std::string, std::string >> &environment=None(), const Option< lambda::function< pid_t(const lambda::function< int()> &)>> &clone=None(), const std::vector< Subprocess::ParentHook > &parent_hooks={}, const std::vector< Subprocess::ChildHook > &child_hooks={})</div><div class="ttdoc">Forks a subprocess and execs the specified &#39;path&#39; with the specified &# 39;argv&#39;, redirecting stdin...</div></div> <div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div> +<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option< int ></a></div></div> <div class="ttc" id="classTry_html_a8bc7f43e75a47111ea18e9c83b007be5"><div class="ttname"><a href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">Try::get</a></div><div class="ttdeci">T & get()&</div><div class="ttdef"><b>Definition:</b> try.hpp:73</div></div> <div class="ttc" id="classprocess_1_1Future_html_aa78977d3b585a5f5ccd682c1e9e2ddc4"><div class="ttname"><a href="classprocess_1_1Future.html#aa78977d3b585a5f5ccd682c1e9e2ddc4">process::Future::get</a></div><div class="ttdeci">const T & get() const </div><div class="ttdef"><b>Definition:</b> future.hpp:1299</div></div> -<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_a4143a755ba48009f54529ab97cb3beb3"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#a4143a755ba48009f54529ab97cb3beb3">mesos::internal::tests::removeDockerIPv6UserNetwork</a></div><div class="ttdeci">void removeDockerIPv6UserNetwork()</div><div class="ttdef"><b>Definition:</b> docker_common.hpp:152</div></div> +<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_a4143a755ba48009f54529ab97cb3beb3"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#a4143a755ba48009f54529ab97cb3beb3">mesos::internal::tests::removeDockerIPv6UserNetwork</a></div><div class="ttdeci">void removeDockerIPv6UserNetwork()</div><div class="ttdef"><b>Definition:</b> docker_common.hpp:153</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a1c2b5693161bbc9d516ef5d16c7b54f5"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a1c2b5693161bbc9d516ef5d16c7b54f5">SIGKILL</a></div><div class="ttdeci">const mode_t SIGKILL</div><div class="ttdef"><b>Definition:</b> windows.hpp:346</div></div> <div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div> <div class="ttc" id="src_2tests_2flags_8hpp_html"><div class="ttname"><a href="src_2tests_2flags_8hpp.html">flags.hpp</a></div></div> <div class="ttc" id="subprocess_8hpp_html"><div class="ttname"><a href="subprocess_8hpp.html">subprocess.hpp</a></div></div> <div class="ttc" id="structprocess_1_1Failure_html"><div class="ttname"><a href="structprocess_1_1Failure.html">process::Failure</a></div><div class="ttdef"><b>Definition:</b> future.hpp:665</div></div> +<div class="ttc" id="namespaceproc_html_a34396c6140a28f583dc13fee3c3c35d4"><div class="ttname"><a href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">proc::status</a></div><div class="ttdeci">Result< ProcessStatus > status(pid_t pid)</div><div class="ttdef"><b>Definition:</b> proc.hpp:166</div></div> <div class="ttc" id="classprocess_1_1Subprocess_html_a54793e9c516257d68776f63f0872c3c7"><div class="ttname"><a href="classprocess_1_1Subprocess.html#a54793e9c516257d68776f63f0872c3c7">process::Subprocess::PATH</a></div><div class="ttdeci">static IO PATH(const std::string &path)</div></div> <div class="ttc" id="format_8hpp_html"><div class="ttname"><a href="format_8hpp.html">format.hpp</a></div></div> <div class="ttc" id="lambda_8hpp_html"><div class="ttname"><a href="lambda_8hpp.html">lambda.hpp</a></div></div> +<div class="ttc" id="libprocess_2include_2process_2gtest_8hpp_html_a222e5f770c87370e0f92d2a597b95b2d"><div class="ttname"><a href="libprocess_2include_2process_2gtest_8hpp.html#a222e5f770c87370e0f92d2a597b95b2d">AWAIT_EXPECT_WEXITSTATUS_EQ</a></div><div class="ttdeci">#define AWAIT_EXPECT_WEXITSTATUS_EQ(expected, actual)</div><div class="ttdef"><b>Definition:</b> gtest.hpp:661</div></div> <div class="ttc" id="stout_2include_2stout_2gtest_8hpp_html"><div class="ttname"><a href="stout_2include_2stout_2gtest_8hpp.html">gtest.hpp</a></div></div> <div class="ttc" id="classprocess_1_1Subprocess_html_a98180558f1427a64a03cf3f656310bc4"><div class="ttname"><a href="classprocess_1_1Subprocess.html#a98180558f1427a64a03cf3f656310bc4">process::Subprocess::err</a></div><div class="ttdeci">Option< int_fd > err() const </div><div class="ttdef"><b>Definition:</b> subprocess.hpp:268</div></div> <div class="ttc" id="libprocess_2include_2process_2gtest_8hpp_html_a269c59ba4bb2bec7ac8e361e45f52d43"><div class="ttname"><a href="libprocess_2include_2process_2gtest_8hpp.html#a269c59ba4bb2bec7ac8e361e45f52d43">AWAIT_READY</a></div><div class="ttdeci">#define AWAIT_READY(actual)</div><div class="ttdef"><b>Definition:</b> gtest.hpp:282</div></div> <div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div> <div class="ttc" id="libprocess_2include_2process_2gtest_8hpp_html"><div class="ttname"><a href="libprocess_2include_2process_2gtest_8hpp.html">gtest.hpp</a></div></div> -<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_a15c592efe4e9ba851ddcf2c79f4b2dcf"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#a15c592efe4e9ba851ddcf2c79f4b2dcf">mesos::internal::tests::pullDockerImage</a></div><div class="ttdeci">process::Future< Nothing > pullDockerImage(const std::string &imageName)</div><div class="ttdef"><b>Definition:</b> docker_common.hpp:85</div></div> +<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_af386ecbbf46a9598c02450185b4ba3e2"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#af386ecbbf46a9598c02450185b4ba3e2">mesos::internal::tests::assertDockerKillStatus</a></div><div class="ttdeci">void assertDockerKillStatus(process::Future< Option< int >> &status)</div><div class="ttdef"><b>Definition:</b> docker_common.hpp:189</div></div> +<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_a15c592efe4e9ba851ddcf2c79f4b2dcf"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#a15c592efe4e9ba851ddcf2c79f4b2dcf">mesos::internal::tests::pullDockerImage</a></div><div class="ttdeci">process::Future< Nothing > pullDockerImage(const std::string &imageName)</div><div class="ttdef"><b>Definition:</b> docker_common.hpp:86</div></div> <div class="ttc" id="classDocker_html_a370c1d613e35cc8b8e393dc8c83876e6"><div class="ttname"><a href="classDocker.html#a370c1d613e35cc8b8e393dc8c83876e6">Docker::create</a></div><div class="ttdeci">static Try< process::Owned< Docker > > create(const std::string &path, const std::string &socket, bool validate=true, const Option< JSON::Object > &config=None())</div></div> <div class="ttc" id="classOption_html_a21358442c0fac1cc978a67a9a9089a79"><div class="ttname"><a href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">Option::get</a></div><div class="ttdeci">const T & get() const &</div><div class="ttdef"><b>Definition:</b> option.hpp:118</div></div> +<div class="ttc" id="option_8hpp_html"><div class="ttname"><a href="option_8hpp.html">option.hpp</a></div></div> <div class="ttc" id="classTry_html_aec4a11ddd3c036e889d90b7eb6258ba7"><div class="ttname"><a href="classTry.html#aec4a11ddd3c036e889d90b7eb6258ba7">Try::error</a></div><div class="ttdeci">static Try error(const E &e)</div><div class="ttdef"><b>Definition:</b> try.hpp:42</div></div> <div class="ttc" id="docker_2docker_8hpp_html"><div class="ttname"><a href="docker_2docker_8hpp.html">docker.hpp</a></div></div> <div class="ttc" id="future_8hpp_html"><div class="ttname"><a href="future_8hpp.html">future.hpp</a></div></div> @@ -271,14 +290,15 @@ <div class="ttc" id="classTry_html_a0b98f95163b8a38daafd1651b043a276"><div class="ttname"><a href="classTry.html#a0b98f95163b8a38daafd1651b043a276">Try::isError</a></div><div class="ttdeci">bool isError() const </div><div class="ttdef"><b>Definition:</b> try.hpp:71</div></div> <div class="ttc" id="namespaceprocess_1_1internal_html_a7885011cf6470b707294a6ef4ec7a0a6"><div class="ttname"><a href="namespaceprocess_1_1internal.html#a7885011cf6470b707294a6ef4ec7a0a6">process::internal::then</a></div><div class="ttdeci">void then(lambda::CallableOnce< X(const T &)> &&f, std::unique_ptr< Promise< X >> promise, const Future< T > &future)</div><div class="ttdef"><b>Definition:</b> future.hpp:1492</div></div> <div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div> -<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_a3e9b4c80f181d9d31576c268120dd49e"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">mesos::internal::tests::DOCKER_IPv6_NETWORK</a></div><div class="ttdeci">constexpr char DOCKER_IPv6_NETWORK[]</div><div class="ttdef"><b>Definition:</b> docker_common.hpp:82</div></div> +<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_a3e9b4c80f181d9d31576c268120dd49e"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#a3e9b4c80f181d9d31576c268120dd49e">mesos::internal::tests::DOCKER_IPv6_NETWORK</a></div><div class="ttdeci">constexpr char DOCKER_IPv6_NETWORK[]</div><div class="ttdef"><b>Definition:</b> docker_common.hpp:83</div></div> <div class="ttc" id="3rdparty_2libprocess_2include_2process_2io_8hpp_html"><div class="ttname"><a href="3rdparty_2libprocess_2include_2process_2io_8hpp.html">io.hpp</a></div></div> -<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_a971a18f563bfbd01896a97a7a72ccde1"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#a971a18f563bfbd01896a97a7a72ccde1">mesos::internal::tests::createDockerIPv6UserNetwork</a></div><div class="ttdeci">void createDockerIPv6UserNetwork()</div><div class="ttdef"><b>Definition:</b> docker_common.hpp:116</div></div> +<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_a971a18f563bfbd01896a97a7a72ccde1"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#a971a18f563bfbd01896a97a7a72ccde1">mesos::internal::tests::createDockerIPv6UserNetwork</a></div><div class="ttdeci">void createDockerIPv6UserNetwork()</div><div class="ttdef"><b>Definition:</b> docker_common.hpp:117</div></div> <div class="ttc" id="namespaceprocess_1_1io_html_a4c34d22e475e29f12ac739921dcc580f"><div class="ttname"><a href="namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">process::io::read</a></div><div class="ttdeci">Future< size_t > read(int_fd fd, void *data, size_t size)</div><div class="ttdoc">Performs a single non-blocking read by polling on the specified file descriptor until any data can be...</div></div> <div class="ttc" id="owned_8hpp_html"><div class="ttname"><a href="owned_8hpp.html">owned.hpp</a></div></div> <div class="ttc" id="namespacestrings_html_a7884a23bea2a6543b8a93ad48faabe0c"><div class="ttname"><a href="namespacestrings.html#a7884a23bea2a6543b8a93ad48faabe0c">strings::format</a></div><div class="ttdeci">Try< std::string > format(const std::string &s, const T &...t)</div><div class="ttdef"><b>Definition:</b> format.hpp:58</div></div> <div class="ttc" id="classprocess_1_1Subprocess_html_a6af5024bd1932707893908fceb86ddad"><div class="ttname"><a href="classprocess_1_1Subprocess.html#a6af5024bd1932707893908fceb86ddad">process::Subprocess::PIPE</a></div><div class="ttdeci">static IO PIPE()</div></div> <div class="ttc" id="stout_2include_2stout_2gtest_8hpp_html_a0add664e84bbf99f845f1b715dd63f90"><div class="ttname"><a href="stout_2include_2stout_2gtest_8hpp.html#a0add664e84bbf99f845f1b715dd63f90">ASSERT_SOME</a></div><div class="ttdeci">#define ASSERT_SOME(actual)</div><div class="ttdef"><b>Definition:</b> gtest.hpp:128</div></div> +<div class="ttc" id="libprocess_2include_2process_2gtest_8hpp_html_ae4d00c37c2287bce910fff6885429cfb"><div class="ttname"><a href="libprocess_2include_2process_2gtest_8hpp.html#ae4d00c37c2287bce910fff6885429cfb">AWAIT_EXPECT_WEXITSTATUS_NE</a></div><div class="ttdeci">#define AWAIT_EXPECT_WEXITSTATUS_NE(expected, actual)</div><div class="ttdef"><b>Definition:</b> gtest.hpp:708</div></div> <div class="ttc" id="classprocess_1_1Subprocess_html_a3946c31d16c0625ea554d5216cd4fa3b"><div class="ttname"><a href="classprocess_1_1Subprocess.html#a3946c31d16c0625ea554d5216cd4fa3b">process::Subprocess::status</a></div><div class="ttdeci">Future< Option< int > > status() const </div><div class="ttdoc">Exit status of this subprocess captured as a Future (completed when the subprocess exits)...</div><div class="ttdef"><b>Definition:</b> subprocess.hpp:294</div></div> <div class="ttc" id="namespaceos_html_afe70fd86d13b8f10cafb222bb80adcf6"><div class="ttname"><a href="namespaceos.html#afe70fd86d13b8f10cafb222bb80adcf6">os::mkdtemp</a></div><div class="ttdeci">Try< std::string > mkdtemp(const std::string &path=path::join(os::temp(),"XXXXXX"))</div><div class="ttdef"><b>Definition:</b> mkdtemp.hpp:38</div></div> <div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_af8289f648a916c3f66923867452c7b1b"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">mesos::internal::tests::flags</a></div><div class="ttdeci">Flags flags</div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/globals_0x75.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/globals_0x75.html b/content/api/latest/c++/globals_0x75.html index 8077d72..d1aebbf 100644 --- a/content/api/latest/c++/globals_0x75.html +++ b/content/api/latest/c++/globals_0x75.html @@ -94,12 +94,12 @@ <li>UNIMPLEMENTED : <a class="el" href="unimplemented_8hpp.html#a8608fe736d309b01e7bf6c4d414e3bf4">unimplemented.hpp</a> </li> -<li>Unreachable() -: <a class="el" href="unreachable_8hpp.html#a247a4dee16fdea6cdd332f35a572e7d3">unreachable.hpp</a> -</li> <li>UNREACHABLE : <a class="el" href="unreachable_8hpp.html#a0bc63b24b654ca433be7b97a3edde132">unreachable.hpp</a> </li> +<li>Unreachable() +: <a class="el" href="unreachable_8hpp.html#a247a4dee16fdea6cdd332f35a572e7d3">unreachable.hpp</a> +</li> </ul> </div><!-- contents --> <!-- start footer part --> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/dfbf7828/content/api/latest/c++/index.hhc ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/index.hhc b/content/api/latest/c++/index.hhc index a39bb5a..ceec323 100644 --- a/content/api/latest/c++/index.hhc +++ b/content/api/latest/c++/index.hhc @@ -24254,6 +24254,7 @@ <LI><OBJECT type="text/sitemap"><param name="Name" value="docker_common.hpp"><param name="Local" value="docker__common_8hpp.html"><param name="ImageNumber" value="1"></OBJECT> <UL> <LI><OBJECT type="text/sitemap"><param name="Name" value="DOCKER_SLEEP_CMD"><param name="Local" value="docker__common_8hpp.html#a4853e9066cb5127d1b29a07d1a3c9e02"><param name="ImageNumber" value="11"></OBJECT> + <LI><OBJECT type="text/sitemap"><param name="Name" value="assertDockerKillStatus"><param name="Local" value="docker__common_8hpp.html#af386ecbbf46a9598c02450185b4ba3e2"><param name="ImageNumber" value="11"></OBJECT> <LI><OBJECT type="text/sitemap"><param name="Name" value="createDockerIPv6UserNetwork"><param name="Local" value="docker__common_8hpp.html#a971a18f563bfbd01896a97a7a72ccde1"><param name="ImageNumber" value="11"></OBJECT> <LI><OBJECT type="text/sitemap"><param name="Name" value="pullDockerImage"><param name="Local" value="docker__common_8hpp.html#a15c592efe4e9ba851ddcf2c79f4b2dcf"><param name="ImageNumber" value="11"></OBJECT> <LI><OBJECT type="text/sitemap"><param name="Name" value="removeDockerIPv6UserNetwork"><param name="Local" value="docker__common_8hpp.html#a4143a755ba48009f54529ab97cb3beb3"><param name="ImageNumber" value="11"></OBJECT>