Apache Mesos
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Docker Class Reference

#include <docker.hpp>

Inheritance diagram for Docker:
mesos::internal::tests::MockDocker

Classes

class  Container
 
struct  Device
 
class  Image
 
struct  PortMapping
 
class  RunOptions
 

Public Member Functions

virtual ~Docker ()
 
virtual process::Future
< Option< int > > 
run (const RunOptions &options, const process::Subprocess::IO &_stdout=process::Subprocess::FD(STDOUT_FILENO), const process::Subprocess::IO &_stderr=process::Subprocess::FD(STDERR_FILENO)) const
 
virtual process::Future< Versionversion () const
 
virtual process::Future< Nothingstop (const std::string &containerName, const Duration &timeout=Seconds(0), bool remove=false) const
 
virtual process::Future< Nothingkill (const std::string &containerName, int signal) const
 
virtual process::Future< Nothingrm (const std::string &containerName, bool force=false) const
 
virtual process::Future
< Container
inspect (const std::string &containerName, const Option< Duration > &retryInterval=None()) const
 
virtual process::Future
< std::list< Container > > 
ps (bool all=false, const Option< std::string > &prefix=None()) const
 
virtual process::Future< Imagepull (const std::string &directory, const std::string &image, bool force=false) const
 
virtual Try< NothingvalidateVersion (const Version &minVersion) const
 
virtual std::string getPath ()
 

Static Public Member Functions

static Try< process::Owned
< Docker > > 
create (const std::string &path, const std::string &socket, bool validate=true, const Option< JSON::Object > &config=None())
 

Protected Member Functions

 Docker (const std::string &_path, const std::string &_socket, const Option< JSON::Object > &_config)
 

Constructor & Destructor Documentation

virtual Docker::~Docker ( )
inlinevirtual
Docker::Docker ( const std::string &  _path,
const std::string &  _socket,
const Option< JSON::Object > &  _config 
)
inlineprotected

Member Function Documentation

static Try<process::Owned<Docker> > Docker::create ( const std::string &  path,
const std::string &  socket,
bool  validate = true,
const Option< JSON::Object > &  config = None() 
)
static
virtual std::string Docker::getPath ( )
inlinevirtual
virtual process::Future<Container> Docker::inspect ( const std::string &  containerName,
const Option< Duration > &  retryInterval = None() 
) const
virtual
virtual process::Future<Nothing> Docker::kill ( const std::string &  containerName,
int  signal 
) const
virtual
virtual process::Future<std::list<Container> > Docker::ps ( bool  all = false,
const Option< std::string > &  prefix = None() 
) const
virtual
virtual process::Future<Image> Docker::pull ( const std::string &  directory,
const std::string &  image,
bool  force = false 
) const
virtual
virtual process::Future<Nothing> Docker::rm ( const std::string &  containerName,
bool  force = false 
) const
virtual
virtual process::Future<Option<int> > Docker::run ( const RunOptions options,
const process::Subprocess::IO _stdout = process::Subprocess::FD(STDOUT_FILENO),
const process::Subprocess::IO _stderr = process::Subprocess::FD(STDERR_FILENO) 
) const
virtual
virtual process::Future<Nothing> Docker::stop ( const std::string &  containerName,
const Duration timeout = Seconds(0),
bool  remove = false 
) const
virtual
virtual Try<Nothing> Docker::validateVersion ( const Version minVersion) const
virtual
virtual process::Future<Version> Docker::version ( ) const
virtual

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