Apache Mesos
Public Member Functions | List of all members
mesos::internal::tests::MockDocker Class Reference

#include <mock_docker.hpp>

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

Public Member Functions

 MockDocker (const std::string &path, const std::string &socket, const Option< JSON::Object > &config=None())
 
 ~MockDocker () override
 
 MOCK_CONST_METHOD3 (run, process::Future< Option< int >>(const Docker::RunOptions &options, const process::Subprocess::IO &, const process::Subprocess::IO &))
 
 MOCK_CONST_METHOD2 (ps, process::Future< std::vector< Docker::Container >>(bool, const Option< std::string > &))
 
 MOCK_CONST_METHOD3 (pull, process::Future< Docker::Image >(const std::string &, const std::string &, bool))
 
 MOCK_CONST_METHOD3 (stop, process::Future< Nothing >(const std::string &, const Duration &, bool))
 
 MOCK_CONST_METHOD2 (inspect, process::Future< Docker::Container >(const std::string &, const Option< Duration > &))
 
process::Future< Option< int > > _run (const Docker::RunOptions &runOptions, const process::Subprocess::IO &_stdout, const process::Subprocess::IO &_stderr) const
 
process::Future< std::vector< Docker::Container > > _ps (bool all, const Option< std::string > &prefix) const
 
process::Future< Docker::Image_pull (const std::string &directory, const std::string &image, bool force) const
 
process::Future< Nothing_stop (const std::string &containerName, const Duration &timeout, bool remove) const
 
process::Future< Docker::Container_inspect (const std::string &containerName, const Option< Duration > &retryInterval)
 
- Public Member Functions inherited from Docker
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< Containerinspect (const std::string &containerName, const Option< Duration > &retryInterval=None()) const
 
virtual process::Future< std::vector< 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 ()
 
virtual std::string getSocket ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Docker
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 inherited from Docker
 Docker (const std::string &_path, const std::string &_socket, const Option< JSON::Object > &_config)
 

Constructor & Destructor Documentation

mesos::internal::tests::MockDocker::MockDocker ( const std::string &  path,
const std::string &  socket,
const Option< JSON::Object > &  config = None() 
)
mesos::internal::tests::MockDocker::~MockDocker ( )
override

Member Function Documentation

process::Future<Docker::Container> mesos::internal::tests::MockDocker::_inspect ( const std::string &  containerName,
const Option< Duration > &  retryInterval 
)
inline
process::Future<std::vector<Docker::Container> > mesos::internal::tests::MockDocker::_ps ( bool  all,
const Option< std::string > &  prefix 
) const
inline
process::Future<Docker::Image> mesos::internal::tests::MockDocker::_pull ( const std::string &  directory,
const std::string &  image,
bool  force 
) const
inline
process::Future<Option<int> > mesos::internal::tests::MockDocker::_run ( const Docker::RunOptions runOptions,
const process::Subprocess::IO _stdout,
const process::Subprocess::IO _stderr 
) const
inline
process::Future<Nothing> mesos::internal::tests::MockDocker::_stop ( const std::string &  containerName,
const Duration timeout,
bool  remove 
) const
inline
mesos::internal::tests::MockDocker::MOCK_CONST_METHOD2 ( ps  ,
process::Future< std::vector< Docker::Container >>  bool, const Option< std::string > & 
)
mesos::internal::tests::MockDocker::MOCK_CONST_METHOD2 ( inspect  ,
process::Future< Docker::Container const std::string &, const Option< Duration > & 
)
mesos::internal::tests::MockDocker::MOCK_CONST_METHOD3 ( run  ,
process::Future< Option< int >>  const Docker::RunOptions &options, const process::Subprocess::IO &, const process::Subprocess::IO & 
)
mesos::internal::tests::MockDocker::MOCK_CONST_METHOD3 ( pull  ,
process::Future< Docker::Image const std::string &, const std::string &, bool 
)
mesos::internal::tests::MockDocker::MOCK_CONST_METHOD3 ( stop  ,
process::Future< Nothing const std::string &, const Duration &, bool 
)

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