Flex  0.17.9
Public Member Functions | List of all members
gs::RemoteStorageDownloader Class Referenceabstract

#include <remote_storage.h>

Public Member Functions

virtual ~RemoteStorageDownloader ()=default
 
virtual Status Open ()=0
 
virtual Status Get (const std::string &remote_path, const std::string &local_path)=0
 
virtual Status List (const std::string &remote_path, std::vector< std::string > &files)=0
 
virtual Status Close ()=0
 

Constructor & Destructor Documentation

◆ ~RemoteStorageDownloader()

virtual gs::RemoteStorageDownloader::~RemoteStorageDownloader ( )
virtualdefault

Member Function Documentation

◆ Close()

virtual Status gs::RemoteStorageDownloader::Close ( )
pure virtual

Close the remote storage.

◆ Get()

virtual Status gs::RemoteStorageDownloader::Get ( const std::string &  remote_path,
const std::string &  local_path 
)
pure virtual

Get a file from the remote storage.

Parameters
remote_pathThe remote file path.
local_pathThe local file path.
Returns
Status

◆ List()

virtual Status gs::RemoteStorageDownloader::List ( const std::string &  remote_path,
std::vector< std::string > &  files 
)
pure virtual

List all files in the remote storage.

Parameters
remote_pathThe remote path.
filesThe files in the remote path.
Returns
Status

◆ Open()

virtual Status gs::RemoteStorageDownloader::Open ( )
pure virtual

Open a remote storage for reading.

Parameters
uriThe uri of the remote storage.
Returns
Status

The documentation for this class was generated from the following file: