Operator is the entry for all public APIs.
More...
#include <opendal.hpp>
Operator is the entry for all public APIs.
◆ Operator() [1/4]
opendal::Operator::Operator |
( |
| ) |
|
|
default |
◆ Operator() [2/4]
opendal::Operator::Operator |
( |
std::string_view |
scheme, |
|
|
const std::unordered_map< std::string, std::string > & |
config = {} |
|
) |
| |
Construct a new Operator object.
- Parameters
-
scheme | The scheme of the operator, same as the name of rust doc |
config | The configuration of the operator, same as the service doc |
◆ Operator() [3/4]
opendal::Operator::Operator |
( |
const Operator & |
| ) |
|
|
delete |
◆ Operator() [4/4]
opendal::Operator::Operator |
( |
Operator && |
| ) |
|
|
default |
◆ ~Operator()
opendal::Operator::~Operator |
( |
| ) |
|
|
default |
◆ available()
bool opendal::Operator::available |
( |
| ) |
const |
Check if the operator is available.
- Returns
- true if the operator is available, false otherwise
◆ copy()
void opendal::Operator::copy |
( |
std::string_view |
src, |
|
|
std::string_view |
dst |
|
) |
| |
Copy a file from src to dst.
- Parameters
-
src | The source path |
dst | The destination path |
◆ create_dir()
void opendal::Operator::create_dir |
( |
std::string_view |
path | ) |
|
Create a directory.
- Parameters
-
path | The path of the directory |
◆ is_exist()
bool opendal::Operator::is_exist |
( |
std::string_view |
path | ) |
|
Check if the path exists.
- Parameters
-
- Returns
- true if the path exists, false otherwise
◆ list()
std::vector<Entry> opendal::Operator::list |
( |
std::string_view |
path | ) |
|
List the entries of a directory.
- Note
- The returned entries are sorted by name.
- Parameters
-
path | The path of the directory |
- Returns
- The entries of the directory
◆ lister()
Lister opendal::Operator::lister |
( |
std::string_view |
path | ) |
|
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ read()
std::vector<uint8_t> opendal::Operator::read |
( |
std::string_view |
path | ) |
|
Read data from the operator.
- Note
- The operation will make unnecessary copy. So we recommend to use the
reader
method.
- Parameters
-
- Returns
- The data read from the operator
◆ reader()
Reader opendal::Operator::reader |
( |
std::string_view |
path | ) |
|
Read data from the operator.
- Parameters
-
- Returns
- The reader of the data
◆ remove()
void opendal::Operator::remove |
( |
std::string_view |
path | ) |
|
Remove a file or directory.
- Parameters
-
path | The path of the file or directory |
◆ rename()
void opendal::Operator::rename |
( |
std::string_view |
src, |
|
|
std::string_view |
dst |
|
) |
| |
Rename a file from src to dst.
- Parameters
-
src | The source path |
dst | The destination path |
◆ stat()
Metadata opendal::Operator::stat |
( |
std::string_view |
path | ) |
|
Get the metadata of a file or directory.
- Parameters
-
path | The path of the file or directory |
- Returns
- The metadata of the file or directory
◆ write()
void opendal::Operator::write |
( |
std::string_view |
path, |
|
|
const std::vector< uint8_t > & |
data |
|
) |
| |
Write data to the operator.
- Parameters
-
path | The path of the data |
data | The data to write |
The documentation for this class was generated from the following file:
- /home/runner/work/opendal/opendal/bindings/cpp/include/opendal.hpp