Apache Mesos
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
mesos::internal::slave::docker::volume::DriverClient Class Reference

Abstraction for Docker Volume Driver Client. More...

#include <driver.hpp>

Public Member Functions

virtual ~DriverClient ()
 
virtual process::Future< std::string > mount (const std::string &driver, const std::string &name, const hashmap< std::string, std::string > &options)
 Performs a 'mount' and returns the path of the mount point. More...
 
virtual process::Future< Nothingunmount (const std::string &driver, const std::string &name)
 Performs an 'unmount'. More...
 

Static Public Member Functions

static Try< process::Owned< DriverClient > > create (const std::string &dvdcli)
 Create a Docker Volume Driver Client. More...
 

Protected Member Functions

 DriverClient ()
 

Detailed Description

Abstraction for Docker Volume Driver Client.

TODO(gyliu513): Update the docker volume driver client use docker volume driver API directly via curl.

Refer to https://github.com/yp-engineering/rbd-docker-plugin for how curl works with docker volume driver API.

Constructor & Destructor Documentation

virtual mesos::internal::slave::docker::volume::DriverClient::~DriverClient ( )
inlinevirtual
mesos::internal::slave::docker::volume::DriverClient::DriverClient ( )
inlineprotected

Member Function Documentation

static Try<process::Owned<DriverClient> > mesos::internal::slave::docker::volume::DriverClient::create ( const std::string &  dvdcli)
static

Create a Docker Volume Driver Client.

virtual process::Future<std::string> mesos::internal::slave::docker::volume::DriverClient::mount ( const std::string &  driver,
const std::string &  name,
const hashmap< std::string, std::string > &  options 
)
virtual

Performs a 'mount' and returns the path of the mount point.

If the 'options' field is specified, the 'mount' will do an implicit creation of the volume if it does not exist.

virtual process::Future<Nothing> mesos::internal::slave::docker::volume::DriverClient::unmount ( const std::string &  driver,
const std::string &  name 
)
virtual

Performs an 'unmount'.


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