Arbiter  0.0.0
Public Member Functions | Static Public Member Functions | List of all members
arbiter::drivers::Test Class Reference

A filesystem driver that acts as if it were remote for testing purposes. More...

#include <arbiter/drivers/test.hpp>

Inheritance diagram for arbiter::drivers::Test:
arbiter::drivers::Fs arbiter::Driver

Public Member Functions

virtual std::string type () const override
 
virtual bool isRemote () const override
 
- Public Member Functions inherited from arbiter::drivers::Fs
virtual std::unique_ptr< std::size_t > tryGetSize (std::string path) const override
 
virtual void put (std::string path, const std::vector< char > &data) const override
 
- Public Member Functions inherited from arbiter::Driver
std::string get (std::string path) const
 
std::unique_ptr< std::string > tryGet (std::string path) const
 
std::vector< char > getBinary (std::string path) const
 
std::unique_ptr< std::vector< char > > tryGetBinary (std::string path) const
 
std::size_t getSize (std::string path) const
 
void put (std::string path, const std::string &data) const
 
std::vector< std::string > resolve (std::string path, bool verbose=false) const
 Resolve a possibly globbed path. More...
 

Static Public Member Functions

static std::unique_ptr< Testcreate (const Json::Value &json)
 
- Static Public Member Functions inherited from arbiter::drivers::Fs
static std::unique_ptr< Fscreate (const Json::Value &json)
 

Additional Inherited Members

- Protected Member Functions inherited from arbiter::drivers::Fs
virtual bool get (std::string path, std::vector< char > &data) const override
 

Detailed Description

A filesystem driver that acts as if it were remote for testing purposes.

Member Function Documentation

virtual bool arbiter::drivers::Test::isRemote ( ) const
inlineoverridevirtual

True for remote paths, otherwise false. If true, a fs::LocalHandle request will download and write this file to the local filesystem.

Reimplemented from arbiter::drivers::Fs.

virtual std::string arbiter::drivers::Test::type ( ) const
inlineoverridevirtual

Returns a string identifying this driver type, which should be unique among all other drivers. Paths that begin with the substring <type>:// will be routed to this driver. For example, fs, s3, or http.

Note
Derived classes must override.

Reimplemented from arbiter::drivers::Fs.


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