83 const std::string& path,
84 const std::string& virtualPath,
90 void detach(
const std::string& virtualPath);
94 const std::string& path,
101 const std::string& path,
105 FilesProcess* process;
111 #endif // __FILES_HPP__
Definition: errorbase.hpp:35
Type
Definition: files.hpp:48
Files(const Option< std::string > &authenticationRealm=None(), const Option< mesos::Authorizer * > &authorizer=None())
void detach(const std::string &virtualPath)
std::string message
Definition: files.hpp:63
Type type
Definition: files.hpp:62
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)
process::Future< Nothing > attach(const std::string &path, const std::string &virtualPath, const Option< lambda::function< process::Future< bool >(const Option< process::http::authentication::Principal > &)>> &authorized=None())
FilesError(Type _type)
Definition: files.hpp:56
std::string stringify(int flags)
FilesError(Type _type, const std::string &_message)
Definition: files.hpp:59
process::Future< Try< std::list< FileInfo >, FilesError > > browse(const std::string &path, const Option< process::http::authentication::Principal > &principal)