FileLocationHandlerSftp.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
/* FileLocationHandlerSftp Copyright 2021 - 2022 Qore Technologies, s.r.o.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
namespace FileLocationHandler {
class FileLocationHandlerSftp : public AbstractFileLocationHandler {
public:
const SftpClientLocationOpts = ...;
protected:
string getTextFileImpl(string scheme, string location, *hash<auto> opts);
public:
protected:
binary getBinaryFileImpl(string scheme, string location, *hash<auto> opts);
public:
protected:
Qore::StreamReader getStreamReaderImpl(string scheme, string location, *hash<auto> opts);
public:
protected:
Qore::InputStream getBinaryStreamImpl(string scheme, string location, *hash<auto> opts);
public:
protected:
writeFileImpl(string scheme, string location, data contents, *hash<auto> opts);
public:
protected:
OutputStreamWrapper getOutputStreamImpl(string scheme, string location, *hash<auto> opts);
public:
protected:
hash<string, hash<FileHandlerOptionInfo>> getReadOptionsImpl();
public:
protected:
hash<string, hash<FileHandlerOptionInfo>> getWriteOptionsImpl();
public:
protected:
object getSftpClient(string scheme, string location, *hash<auto> opts, reference<string> file);
public:
};
};
FileLocationHandler::FileLocationHandlerSftp::getSftpClient
object getSftpClient(string scheme, string location, *hash< auto > opts, reference< string > file)
Returns an SFTP client for the given location.
FileLocationHandler::FileLocationHandlerSftp::getStreamReaderImpl
Qore::StreamReader getStreamReaderImpl(string scheme, string location, *hash< auto > opts)
Returns a stream reader for the file&#39;s data at the given location.
FileLocationHandler::FileLocationHandlerSftp::getWriteOptionsImpl
hash< string, hash< FileHandlerOptionInfo > > getWriteOptionsImpl()
Gets supported write options.
FileLocationHandler::FileLocationHandlerSftp
The class for handling file locations.
Definition: FileLocationHandlerSftp.qc.dox.h:28
binary
binary binary()
Qore::StreamReader
FileLocationHandler
Contains all public definitions in the FileLocationHandler module.
Definition: FileLocationHandler.qc.dox.h:26
FileLocationHandler::OutputStreamWrapper
The abstract file location handler class.
Definition: OutputStramWrapper.qc.dox.h:28
FileLocationHandler::FileLocationHandlerSftp::getReadOptionsImpl
hash< string, hash< FileHandlerOptionInfo > > getReadOptionsImpl()
Gets supported read options.
FileLocationHandler::AbstractFileLocationHandler
The abstract file location handler class.
Definition: FileLocationHandler.qc.dox.h:43
FileLocationHandler::FileLocationHandlerSftp::SftpClientLocationOpts
const SftpClientLocationOpts
Valid SFTP location options.
Definition: FileLocationHandlerSftp.qc.dox.h:37
FileLocationHandler::FileLocationHandlerSftp::getBinaryStreamImpl
Qore::InputStream getBinaryStreamImpl(string scheme, string location, *hash< auto > opts)
Retrieves a binary file from the given location.
FileLocationHandler::FileLocationHandlerSftp::getTextFileImpl
string getTextFileImpl(string scheme, string location, *hash< auto > opts)
Retrieves a text file from the given location.
FileLocationHandler::FileLocationHandlerSftp::getOutputStreamImpl
OutputStreamWrapper getOutputStreamImpl(string scheme, string location, *hash< auto > opts)
Returns an output stream for writing data to the given location.
FileLocationHandler::FileLocationHandlerSftp::getBinaryFileImpl
binary getBinaryFileImpl(string scheme, string location, *hash< auto > opts)
Retrieves a binary file from the given location.
Qore::InputStream
FileLocationHandler::FileLocationHandlerSftp::writeFileImpl
writeFileImpl(string scheme, string location, data contents, *hash< auto > opts)
Writes data to a file at the given location.