 |
Disk ARchive
2.6.8
Full featured and portable backup and archiving tool
|
Go to the documentation of this file.
26 #ifndef ENTREPOT_LIBCURL_HPP
27 #define ENTREPOT_LIBCURL_HPP
29 #include "../my_config.h"
35 #include <curl/curl.h>
59 const std::string & login,
61 const std::string & host,
62 const std::string & port,
64 const std::string & sftp_pub_keyfile,
65 const std::string & sftp_prv_keyfile,
66 const std::string & sftp_known_hosts,
83 virtual std::string
get_url()
const override;
84 virtual const path & get_location()
const override;
85 virtual const path & get_root()
const override;
87 virtual bool read_dir_next(std::string & filename)
const override;
94 virtual fichier_global *inherited_open(
const std::shared_ptr<user_interaction> & dialog,
95 const std::string & filename,
97 bool force_permission,
100 bool erase)
const override;
102 virtual void inherited_unlink(
const std::string & filename)
const override;
103 virtual void read_dir_flush()
override;
106 #if defined ( LIBCURL_AVAILABLE ) && defined ( LIBTHREADAR_AVAILABLE )
107 class i_entrepot_libcurl;
108 std::shared_ptr<i_entrepot_libcurl> pimpl;
virtual void set_location(const path &chemin) override
defines the directory where to proceed to future open() – this is a "chdir" semantics
for managing archive into a remote repository
virtual path get_full_path() const override
returns the full path of location
virtual entrepot * clone() const override
generate a clone of "this"
gf_mode
generic_file openning modes
datastructure defining the network protocols available for entrepot_libcurl class
entrepot_libcurl(const std::shared_ptr< user_interaction > &dialog, mycurl_protocol proto, const std::string &login, const secu_string &password, const std::string &host, const std::string &port, bool auth_from_file, const std::string &sftp_pub_keyfile, const std::string &sftp_prv_keyfile, const std::string &sftp_known_hosts, U_I waiting_time)
defines the entrepot interface. Entrepot interface defines a generic way to interact with files (slic...
virtual std::string get_url() const override
the class path is here to manipulate paths in the Unix notation: using'/'
this file contains the definition of secu_string class, a std::string like class but allocated in sec...
virtual void set_root(const path &p_root) override
defines the root to use if set_location is given a relative path
mycurl_protocol
libcurl protocols supported by libdar
abstraction of filesystem files for entrepot
virtual void read_dir_reset() const override
routines to read existing files in the current directory (see set_location() / set_root() methods)
libdar namespace encapsulate all libdar symbols