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

Dropbox driver. More...

#include <arbiter/drivers/dropbox.hpp>

Inheritance diagram for arbiter::drivers::Dropbox:
arbiter::drivers::Http arbiter::Driver

Classes

class  Auth
 Dropbox authentication information. More...
 

Public Member Functions

 Dropbox (http::Pool &pool, const Auth &auth)
 
virtual std::string type () const override
 
virtual void put (std::string path, const std::vector< char > &data, http::Headers headers, http::Query query=http::Query()) const override
 
- Public Member Functions inherited from arbiter::drivers::Http
 Http (http::Pool &pool)
 
virtual void put (std::string path, const std::vector< char > &data) const final override
 
std::string get (std::string path, http::Headers headers, http::Query query) const
 
std::unique_ptr< std::string > tryGet (std::string path, http::Headers headers, http::Query query) const
 
std::vector< char > getBinary (std::string path, http::Headers headers, http::Query query) const
 
std::unique_ptr< std::vector< char > > tryGetBinary (std::string path, http::Headers headers, http::Query query) const
 
void put (std::string path, const std::string &data, http::Headers headers, http::Query query) const
 
- 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
 
virtual bool isRemote () 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< Dropboxcreate (http::Pool &pool, const Json::Value &json)
 
- Static Public Member Functions inherited from arbiter::drivers::Http
static std::unique_ptr< Httpcreate (http::Pool &pool, const Json::Value &json)
 

Additional Inherited Members

- Protected Member Functions inherited from arbiter::drivers::Http
http::Response internalGet (std::string path, http::Headers headers=http::Headers(), http::Query query=http::Query()) const
 
http::Response internalPut (std::string path, const std::vector< char > &data, http::Headers headers=http::Headers(), http::Query query=http::Query()) const
 
http::Response internalHead (std::string path, http::Headers headers=http::Headers(), http::Query query=http::Query()) const
 
http::Response internalPost (std::string path, const std::vector< char > &data, http::Headers headers=http::Headers(), http::Query query=http::Query()) const
 

Detailed Description

Dropbox driver.

Member Function Documentation

std::unique_ptr< Dropbox > arbiter::drivers::Dropbox::create ( http::Pool &  pool,
const Json::Value &  json 
)
static

Try to construct a Dropbox Driver. Searches json for the key token to construct a DropboxAuth.

void arbiter::drivers::Dropbox::put ( std::string  path,
const std::vector< char > &  data,
http::Headers  headers,
http::Query  query = http::Query() 
) const
overridevirtual

HTTP-derived Drivers should override this version of PUT to allow for custom headers and query parameters.Perform an HTTP PUT request.

Reimplemented from arbiter::drivers::Http.

virtual std::string arbiter::drivers::Dropbox::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::Http.


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