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

#include <remote_storage.h>

Public Member Functions

virtual ~RemoteStorageUploader ()=default
 
virtual Status Open ()=0
 
virtual Status Put (const std::string &local_path, const std::string &remote_path, bool override=false)=0
 
virtual Status Delete (const std::string &remote_path)=0
 
virtual Status Close ()=0
 

Constructor & Destructor Documentation

◆ ~RemoteStorageUploader()

virtual gs::RemoteStorageUploader::~RemoteStorageUploader ( )
virtualdefault

Member Function Documentation

◆ Close()

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

Close the remote storage.

◆ Delete()

virtual Status gs::RemoteStorageUploader::Delete ( const std::string &  remote_path)
pure virtual

Delete a file from the remote storage.

Parameters
remote_pathThe remote file path.
Returns
Status

◆ Open()

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

Open a remote storage for writing.

Returns
Status

◆ Put()

virtual Status gs::RemoteStorageUploader::Put ( const std::string &  local_path,
const std::string &  remote_path,
bool  override = false 
)
pure virtual

Put a local file to the remote storage.

Parameters
local_pathThe local file path.
remote_pathThe remote file path.
overrideIf true, the file will be override if it exists.
Returns
Status
Note
The local path could be a directory or a file.

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