| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.5"/> |
| <title>Apache Mesos: src/files/files.hpp Source File</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <td style="padding-left: 0.5em;"> |
| <div id="projectname">Apache Mesos |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.5 --> |
| <div id="navrow1" class="tabs"> |
| <ul class="tablist"> |
| <li><a href="index.html"><span>Main Page</span></a></li> |
| <li><a href="pages.html"><span>Related Pages</span></a></li> |
| <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
| <li><a href="annotated.html"><span>Classes</span></a></li> |
| <li class="current"><a href="files.html"><span>Files</span></a></li> |
| <li><a href="examples.html"><span>Examples</span></a></li> |
| </ul> |
| </div> |
| <div id="navrow2" class="tabs2"> |
| <ul class="tablist"> |
| <li><a href="files.html"><span>File List</span></a></li> |
| <li><a href="globals.html"><span>File Members</span></a></li> |
| </ul> |
| </div> |
| <div id="nav-path" class="navpath"> |
| <ul> |
| <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_251697ed71d3107a084c4be76de6bea7.html">files</a></li> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="headertitle"> |
| <div class="title">files.hpp</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="files_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div> |
| <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// or more contributor license agreements. See the NOTICE file</span></div> |
| <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// distributed with this work for additional information</span></div> |
| <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div> |
| <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// to you under the Apache License, Version 2.0 (the</span></div> |
| <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// "License"); you may not use this file except in compliance</span></div> |
| <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// with the License. You may obtain a copy of the License at</span></div> |
| <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div> |
| <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div> |
| <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div> |
| <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div> |
| <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div> |
| <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div> |
| <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// See the License for the specific language governing permissions and</span></div> |
| <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// limitations under the License.</span></div> |
| <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div> |
| <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef __FILES_HPP__</span></div> |
| <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"></span><span class="preprocessor">#define __FILES_HPP__</span></div> |
| <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"></span></div> |
| <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <string></span></div> |
| <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> |
| <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="include_2mesos_2authorizer_2authorizer_8hpp.html">mesos/authorizer/authorizer.hpp</a>></span></div> |
| <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div> |
| <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="future_8hpp.html">process/future.hpp</a>></span></div> |
| <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2libprocess_2include_2process_2http_8hpp.html">process/http.hpp</a>></span></div> |
| <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> |
| <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="code" href="format_8hpp.html">stout/format.hpp</a>></span></div> |
| <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="code" href="json_8hpp.html">stout/json.hpp</a>></span></div> |
| <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div> |
| <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <<a class="code" href="path_8hpp.html">stout/path.hpp</a>></span></div> |
| <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div> |
| <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="protobuf__utils_8hpp.html">common/protobuf_utils.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="include_2mesos_2mesos_8hpp.html">mesos/mesos.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="keyword">namespace </span>mesos {</div> |
| <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">namespace </span>internal {</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="comment">// Forward declarations.</span></div> |
| <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">class </span>FilesProcess;</div> |
| <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> |
| <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> |
| <div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment">// Represents the various errors that can be returned by methods on the `Files`</span></div> |
| <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">// class via a `Try` that has failed.</span></div> |
| <div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1FilesError.html"> 45</a></span> <span class="keyword">class </span><a class="code" href="classmesos_1_1internal_1_1FilesError.html">FilesError</a> : <span class="keyword">public</span> <a class="code" href="classError.html">Error</a></div> |
| <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div> |
| <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1"> 48</a></span>  <span class="keyword">enum</span> <a class="code" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1">Type</a></div> |
| <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {</div> |
| <div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1aa741e894029f1c8e90a96157e2a8431a"> 50</a></span>  <a class="code" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1aa741e894029f1c8e90a96157e2a8431a">INVALID</a>, <span class="comment">// Invalid argument.</span></div> |
| <div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1acfc988478adbf124c28fc4aca33655d5"> 51</a></span>  <a class="code" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1acfc988478adbf124c28fc4aca33655d5">NOT_FOUND</a>, <span class="comment">// Not found.</span></div> |
| <div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1afb32cf154932d1480e90409508c14169"> 52</a></span>  <a class="code" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1afb32cf154932d1480e90409508c14169">UNAUTHORIZED</a>, <span class="comment">// Not authorized to perform the operation.</span></div> |
| <div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1a8ebd647d75794b12cc0826f2b4761761"> 53</a></span>  <a class="code" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1a8ebd647d75794b12cc0826f2b4761761">UNKNOWN</a> <span class="comment">// Internal error/all other errors.</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> </div> |
| <div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1FilesError.html#a8b51d297cb0ebb4b7d44cd4a8f343da6"> 56</a></span>  <a class="code" href="classmesos_1_1internal_1_1FilesError.html#a8b51d297cb0ebb4b7d44cd4a8f343da6">FilesError</a>(<a class="code" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1">Type</a> _type)</div> |
| <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  : <a class="code" href="classError.html">Error</a>(<a class="code" href="namespacens.html#a28116b46e6543597a11733424cd1aa20">stringify</a>(_type)), <a class="code" href="classmesos_1_1internal_1_1FilesError.html#aef08f763f1a964529d6e612e5ab49db4">type</a>(_type) {}</div> |
| <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div> |
| <div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1FilesError.html#a3376a64097330c2f042e0b8d36e92531"> 59</a></span>  <a class="code" href="classmesos_1_1internal_1_1FilesError.html#a3376a64097330c2f042e0b8d36e92531">FilesError</a>(<a class="code" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1">Type</a> _type, <span class="keyword">const</span> std::string& _message)</div> |
| <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  : <a class="code" href="classError.html">Error</a>(<a class="code" href="namespacens.html#a28116b46e6543597a11733424cd1aa20">stringify</a>(_type)), <a class="code" href="classmesos_1_1internal_1_1FilesError.html#aef08f763f1a964529d6e612e5ab49db4">type</a>(_type), <a class="code" href="classmesos_1_1internal_1_1FilesError.html#a470c1ef5e1dc129752806b42a7544efe">message</a>(_message) {}</div> |
| <div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div> |
| <div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1FilesError.html#aef08f763f1a964529d6e612e5ab49db4"> 62</a></span>  <a class="code" href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1">Type</a> <a class="code" href="classmesos_1_1internal_1_1FilesError.html#aef08f763f1a964529d6e612e5ab49db4">type</a>;</div> |
| <div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1FilesError.html#a470c1ef5e1dc129752806b42a7544efe"> 63</a></span>  std::string <a class="code" href="classmesos_1_1internal_1_1FilesError.html#a470c1ef5e1dc129752806b42a7544efe">message</a>;</div> |
| <div class="line"><a name="l00064"></a><span class="lineno"> 64</span> };</div> |
| <div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div> |
| <div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div> |
| <div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment">// Provides an abstraction for browsing and reading files via HTTP</span></div> |
| <div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// endpoints. A path (file or directory) may be "attached" to a name</span></div> |
| <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment">// (similar to "mounting" a device) for subsequent browsing and</span></div> |
| <div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment">// reading of any files and directories it contains. The "mounting" of</span></div> |
| <div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment">// paths to names enables us to do a form of chrooting for better</span></div> |
| <div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment">// security and isolation of files.</span></div> |
| <div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1Files.html"> 73</a></span> <span class="keyword">class </span><a class="code" href="classmesos_1_1internal_1_1Files.html">Files</a></div> |
| <div class="line"><a name="l00074"></a><span class="lineno"> 74</span> {</div> |
| <div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="classmesos_1_1internal_1_1Files.html#ac43f3c44d233e4e153cc432e94e0d21d">Files</a>(<span class="keyword">const</span> <a class="code" href="classOption.html">Option<std::string></a>& authenticationRealm = <a class="code" href="structNone.html">None</a>(),</div> |
| <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<mesos::Authorizer*></a>& authorizer = <a class="code" href="structNone.html">None</a>());</div> |
| <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classmesos_1_1internal_1_1Files.html#ab825084bfa552b3d5c76d7c2d958dd0b">~Files</a>();</div> |
| <div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div> |
| <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="comment">// Returns the result of trying to attach the specified path</span></div> |
| <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">// (directory or file) at the specified name.</span></div> |
| <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="classprocess_1_1Future.html">process::Future<Nothing></a> <a class="code" href="classmesos_1_1internal_1_1Files.html#a75538880bb9e2b2a924c8a0d547a2c6f">attach</a>(</div> |
| <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">const</span> std::string& path,</div> |
| <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">const</span> std::string& <a class="code" href="namespaceos_1_1Shell.html#acfe16ef2b1146ad49a8651c0a457ce46">name</a>,</div> |
| <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option</a><lambda::function<<a class="code" href="classprocess_1_1Future.html">process::Future<bool></a>(</div> |
| <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<process::http::authentication::Principal></a>&)>>&</div> |
| <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  authorized = <a class="code" href="structNone.html">None</a>());</div> |
| <div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div> |
| <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">// Removes the specified name.</span></div> |
| <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">void</span> <a class="code" href="classmesos_1_1internal_1_1Files.html#a39efea925b8ffda5f6d8e06c09731a61">detach</a>(<span class="keyword">const</span> std::string& name);</div> |
| <div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div> |
| <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// Returns a file listing for a directory similar to `ls -l`.</span></div> |
| <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="classprocess_1_1Future.html">process::Future<Try<std::list<FileInfo></a>, <a class="code" href="classmesos_1_1internal_1_1FilesError.html">FilesError</a>>> <a class="code" href="classmesos_1_1internal_1_1Files.html#a6defb7f332d81067616ac274678da7aa">browse</a>(</div> |
| <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">const</span> std::string& path,</div> |
| <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<process::http::authentication::Principal></a>& principal);</div> |
| <div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div> |
| <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="comment">// Returns the size and data of file.</span></div> |
| <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="classprocess_1_1Future.html">process::Future<Try<std::tuple<size_t, std::string></a>, <a class="code" href="classmesos_1_1internal_1_1FilesError.html">FilesError</a>>> <a class="code" href="classmesos_1_1internal_1_1Files.html#a3317f5bd0a0b60f331d74b01bb478d13">read</a>(</div> |
| <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> offset,</div> |
| <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<size_t></a>& length,</div> |
| <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keyword">const</span> std::string& path,</div> |
| <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">const</span> <a class="code" href="classOption.html">Option<process::http::authentication::Principal></a>& principal);</div> |
| <div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div> |
| <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keyword">private</span>:</div> |
| <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  FilesProcess* process;</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> </div> |
| <div class="line"><a name="l00108"></a><span class="lineno"> 108</span> } <span class="comment">// namespace internal {</span></div> |
| <div class="line"><a name="l00109"></a><span class="lineno"> 109</span> } <span class="comment">// namespace mesos {</span></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="preprocessor">#endif // __FILES_HPP__</span></div> |
| <div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div> |
| <div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option< std::string ></a></div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1FilesError_html_ace93cf1c2ae2be0671102df57ed0b5a1"><div class="ttname"><a href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1">mesos::internal::FilesError::Type</a></div><div class="ttdeci">Type</div><div class="ttdef"><b>Definition:</b> files.hpp:48</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1FilesError_html"><div class="ttname"><a href="classmesos_1_1internal_1_1FilesError.html">mesos::internal::FilesError</a></div><div class="ttdef"><b>Definition:</b> files.hpp:45</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1Files_html_ac43f3c44d233e4e153cc432e94e0d21d"><div class="ttname"><a href="classmesos_1_1internal_1_1Files.html#ac43f3c44d233e4e153cc432e94e0d21d">mesos::internal::Files::Files</a></div><div class="ttdeci">Files(const Option< std::string > &authenticationRealm=None(), const Option< mesos::Authorizer * > &authorizer=None())</div></div> |
| <div class="ttc" id="include_2mesos_2mesos_8hpp_html"><div class="ttname"><a href="include_2mesos_2mesos_8hpp.html">mesos.hpp</a></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="json_8hpp_html"><div class="ttname"><a href="json_8hpp.html">json.hpp</a></div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1Files_html"><div class="ttname"><a href="classmesos_1_1internal_1_1Files.html">mesos::internal::Files</a></div><div class="ttdef"><b>Definition:</b> files.hpp:73</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1FilesError_html_a470c1ef5e1dc129752806b42a7544efe"><div class="ttname"><a href="classmesos_1_1internal_1_1FilesError.html#a470c1ef5e1dc129752806b42a7544efe">mesos::internal::FilesError::message</a></div><div class="ttdeci">std::string message</div><div class="ttdef"><b>Definition:</b> files.hpp:63</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1Files_html_a39efea925b8ffda5f6d8e06c09731a61"><div class="ttname"><a href="classmesos_1_1internal_1_1Files.html#a39efea925b8ffda5f6d8e06c09731a61">mesos::internal::Files::detach</a></div><div class="ttdeci">void detach(const std::string &name)</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1FilesError_html_ace93cf1c2ae2be0671102df57ed0b5a1afb32cf154932d1480e90409508c14169"><div class="ttname"><a href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1afb32cf154932d1480e90409508c14169">mesos::internal::FilesError::UNAUTHORIZED</a></div><div class="ttdef"><b>Definition:</b> files.hpp:52</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1Files_html_ab825084bfa552b3d5c76d7c2d958dd0b"><div class="ttname"><a href="classmesos_1_1internal_1_1Files.html#ab825084bfa552b3d5c76d7c2d958dd0b">mesos::internal::Files::~Files</a></div><div class="ttdeci">~Files()</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="path_8hpp_html"><div class="ttname"><a href="path_8hpp.html">path.hpp</a></div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1FilesError_html_aef08f763f1a964529d6e612e5ab49db4"><div class="ttname"><a href="classmesos_1_1internal_1_1FilesError.html#aef08f763f1a964529d6e612e5ab49db4">mesos::internal::FilesError::type</a></div><div class="ttdeci">Type type</div><div class="ttdef"><b>Definition:</b> files.hpp:62</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1Files_html_a3317f5bd0a0b60f331d74b01bb478d13"><div class="ttname"><a href="classmesos_1_1internal_1_1Files.html#a3317f5bd0a0b60f331d74b01bb478d13">mesos::internal::Files::read</a></div><div class="ttdeci">process::Future< Try< std::tuple< size_t, std::string >, FilesError > > read(const size_t offset, const Option< size_t > &length, const std::string &path, const Option< process::http::authentication::Principal > &principal)</div></div> |
| <div class="ttc" id="include_2mesos_2authorizer_2authorizer_8hpp_html"><div class="ttname"><a href="include_2mesos_2authorizer_2authorizer_8hpp.html">authorizer.hpp</a></div></div> |
| <div class="ttc" id="future_8hpp_html"><div class="ttname"><a href="future_8hpp.html">future.hpp</a></div></div> |
| <div class="ttc" id="protobuf__utils_8hpp_html"><div class="ttname"><a href="protobuf__utils_8hpp.html">protobuf_utils.hpp</a></div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1FilesError_html_ace93cf1c2ae2be0671102df57ed0b5a1a8ebd647d75794b12cc0826f2b4761761"><div class="ttname"><a href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1a8ebd647d75794b12cc0826f2b4761761">mesos::internal::FilesError::UNKNOWN</a></div><div class="ttdef"><b>Definition:</b> files.hpp:53</div></div> |
| <div class="ttc" id="structNone_html"><div class="ttname"><a href="structNone.html">None</a></div><div class="ttdef"><b>Definition:</b> none.hpp:27</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1FilesError_html_ace93cf1c2ae2be0671102df57ed0b5a1acfc988478adbf124c28fc4aca33655d5"><div class="ttname"><a href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1acfc988478adbf124c28fc4aca33655d5">mesos::internal::FilesError::NOT_FOUND</a></div><div class="ttdef"><b>Definition:</b> files.hpp:51</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1FilesError_html_a8b51d297cb0ebb4b7d44cd4a8f343da6"><div class="ttname"><a href="classmesos_1_1internal_1_1FilesError.html#a8b51d297cb0ebb4b7d44cd4a8f343da6">mesos::internal::FilesError::FilesError</a></div><div class="ttdeci">FilesError(Type _type)</div><div class="ttdef"><b>Definition:</b> files.hpp:56</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1FilesError_html_ace93cf1c2ae2be0671102df57ed0b5a1aa741e894029f1c8e90a96157e2a8431a"><div class="ttname"><a href="classmesos_1_1internal_1_1FilesError.html#ace93cf1c2ae2be0671102df57ed0b5a1aa741e894029f1c8e90a96157e2a8431a">mesos::internal::FilesError::INVALID</a></div><div class="ttdef"><b>Definition:</b> files.hpp:50</div></div> |
| <div class="ttc" id="namespacens_html_a28116b46e6543597a11733424cd1aa20"><div class="ttname"><a href="namespacens.html#a28116b46e6543597a11733424cd1aa20">ns::stringify</a></div><div class="ttdeci">std::string stringify(int flags)</div><div class="ttdef"><b>Definition:</b> ns.hpp:688</div></div> |
| <div class="ttc" id="3rdparty_2libprocess_2include_2process_2http_8hpp_html"><div class="ttname"><a href="3rdparty_2libprocess_2include_2process_2http_8hpp.html">http.hpp</a></div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1FilesError_html_a3376a64097330c2f042e0b8d36e92531"><div class="ttname"><a href="classmesos_1_1internal_1_1FilesError.html#a3376a64097330c2f042e0b8d36e92531">mesos::internal::FilesError::FilesError</a></div><div class="ttdeci">FilesError(Type _type, const std::string &_message)</div><div class="ttdef"><b>Definition:</b> files.hpp:59</div></div> |
| <div class="ttc" id="namespaceos_1_1Shell_html_acfe16ef2b1146ad49a8651c0a457ce46"><div class="ttname"><a href="namespaceos_1_1Shell.html#acfe16ef2b1146ad49a8651c0a457ce46">os::Shell::name</a></div><div class="ttdeci">constexpr const char * name</div><div class="ttdef"><b>Definition:</b> shell.hpp:41</div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1Files_html_a6defb7f332d81067616ac274678da7aa"><div class="ttname"><a href="classmesos_1_1internal_1_1Files.html#a6defb7f332d81067616ac274678da7aa">mesos::internal::Files::browse</a></div><div class="ttdeci">process::Future< Try< std::list< FileInfo >, FilesError > > browse(const std::string &path, const Option< process::http::authentication::Principal > &principal)</div></div> |
| <div class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future< Nothing ></a></div></div> |
| <div class="ttc" id="classmesos_1_1internal_1_1Files_html_a75538880bb9e2b2a924c8a0d547a2c6f"><div class="ttname"><a href="classmesos_1_1internal_1_1Files.html#a75538880bb9e2b2a924c8a0d547a2c6f">mesos::internal::Files::attach</a></div><div class="ttdeci">process::Future< Nothing > attach(const std::string &path, const std::string &name, const Option< lambda::function< process::Future< bool >(const Option< process::http::authentication::Principal > &)>> &authorized=None())</div></div> |
| </div><!-- fragment --></div><!-- contents --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated by  <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/> |
| </a> 1.8.5 |
| </small></address> |
| </body> |
| </html> |