Representation of a remote file system accessed by SSH.
More...
#include <cppfs/include/cppfs/ssh/SshFileSystem.h>
|
| SshFileSystem (const std::string &host, int port, const std::string &username, const std::string &password, const std::string &publicKey, const std::string &privateKey) |
| Constructor. More...
|
|
| SshFileSystem (std::string &&host, int port, std::string &&username, std::string &&password, std::string &&publicKey, std::string &&privateKey) |
| Constructor. More...
|
|
virtual | ~SshFileSystem () |
| Destructor. More...
|
|
virtual FileHandle | open (const std::string &path) override |
| Open file or directory in file system. More...
|
|
virtual FileHandle | open (std::string &&path) override |
| Open file or directory in file system. More...
|
|
| AbstractFileSystem () |
| Constructor. More...
|
|
virtual | ~AbstractFileSystem () |
| Destructor. More...
|
|
Representation of a remote file system accessed by SSH.
cppfs::SshFileSystem::SshFileSystem |
( |
const std::string & |
host, |
|
|
int |
port, |
|
|
const std::string & |
username, |
|
|
const std::string & |
password, |
|
|
const std::string & |
publicKey, |
|
|
const std::string & |
privateKey |
|
) |
| |
Constructor.
- Parameters
-
[in] | host | Host name |
[in] | port | Port |
[in] | username | User name |
[in] | password | Password |
[in] | publicKey | Path to public key file |
[in] | privateKey | Path to private key file |
cppfs::SshFileSystem::SshFileSystem |
( |
std::string && |
host, |
|
|
int |
port, |
|
|
std::string && |
username, |
|
|
std::string && |
password, |
|
|
std::string && |
publicKey, |
|
|
std::string && |
privateKey |
|
) |
| |
Constructor.
- Parameters
-
[in] | host | Host name |
[in] | port | Port |
[in] | username | User name |
[in] | password | Password |
[in] | publicKey | Path to public key file |
[in] | privateKey | Path to private key file |
virtual cppfs::SshFileSystem::~SshFileSystem |
( |
| ) |
|
|
virtual |
virtual FileHandle cppfs::SshFileSystem::open |
( |
const std::string & |
path | ) |
|
|
overridevirtual |
virtual FileHandle cppfs::SshFileSystem::open |
( |
std::string && |
path | ) |
|
|
overridevirtual |
void cppfs::SshFileSystem::connect |
( |
| ) |
|
|
protected |
void cppfs::SshFileSystem::disconnect |
( |
| ) |
|
|
protected |
void cppfs::SshFileSystem::initSftp |
( |
| ) |
|
|
protected |
void cppfs::SshFileSystem::checkError |
( |
| ) |
|
|
protected |
std::string cppfs::SshFileSystem::m_host |
|
protected |
int cppfs::SshFileSystem::m_port |
|
protected |
std::string cppfs::SshFileSystem::m_username |
|
protected |
std::string cppfs::SshFileSystem::m_password |
|
protected |
std::string cppfs::SshFileSystem::m_publicKey |
|
protected |
std::string cppfs::SshFileSystem::m_privateKey |
|
protected |
int cppfs::SshFileSystem::m_socket |
|
protected |
void* cppfs::SshFileSystem::m_session |
|
protected |
void* cppfs::SshFileSystem::m_sftpSession |
|
protected |
The documentation for this class was generated from the following file: