17 #ifndef __MESOS_URI_FETCHER_HPP__ 18 #define __MESOS_URI_FETCHER_HPP__ 60 virtual std::set<std::string>
schemes()
const = 0;
65 virtual std::string
name()
const = 0;
81 const std::string& directory,
105 const std::string& directory,
121 const std::string& directory,
122 const std::string&
name,
137 #endif // __MESOS_URI_FETCHER_HPP__
Fetcher(const std::vector< process::Owned< Plugin >> &plugins)
Create the Fetcher instance with the given plugins.
Definition: hashmap.hpp:38
virtual ~Plugin()
Definition: fetcher.hpp:55
virtual std::set< std::string > schemes() const =0
Returns the URI schemes that this plugin handles.
Provides an abstraction for fetching URIs.
Definition: fetcher.hpp:46
virtual std::string name() const =0
Returns the name that this plugin registered with.
virtual process::Future< Nothing > fetch(const URI &uri, const std::string &directory, const Option< std::string > &data=None(), const Option< std::string > &outputFileName=None()) const =0
Fetches a URI to the given directory.
Represents a fetcher plugin that handles one or more URI schemes.
Definition: fetcher.hpp:52