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

#include <mock_docker.hpp>

Inheritance diagram for mesos::internal::tests::MockDockerContainerizer:
mesos::internal::slave::DockerContainerizer mesos::internal::slave::Containerizer

Public Member Functions

 MockDockerContainerizer (const slave::Flags &flags, slave::Fetcher *fetcher, const process::Owned< mesos::slave::ContainerLogger > &logger, process::Shared< Docker > docker, const Option< NvidiaComponents > &nvidia=None())
 
 MockDockerContainerizer (const process::Owned< slave::DockerContainerizerProcess > &process)
 
 ~MockDockerContainerizer () override
 
void initialize ()
 
 MOCK_METHOD4 (launch, process::Future< slave::Containerizer::LaunchResult >(const ContainerID &, const mesos::slave::ContainerConfig &, const std::map< std::string, std::string > &, const Option< std::string > &))
 
 MOCK_METHOD3 (update, process::Future< Nothing >(const ContainerID &, const Resources &, const google::protobuf::Map< std::string, Value::Scalar > &))
 
process::Future< slave::Containerizer::LaunchResult_launch (const ContainerID &containerId, const mesos::slave::ContainerConfig &containerConfig, const std::map< std::string, std::string > &environment, const Option< std::string > &pidCheckpointPath)
 
process::Future< Nothing_update (const ContainerID &containerId, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits)
 
- Public Member Functions inherited from mesos::internal::slave::DockerContainerizer
 DockerContainerizer (const Flags &flags, Fetcher *fetcher, const process::Owned< mesos::slave::ContainerLogger > &logger, process::Shared< Docker > docker, const Option< NvidiaComponents > &nvidia=None())
 
 DockerContainerizer (const process::Owned< DockerContainerizerProcess > &_process)
 
 ~DockerContainerizer () override
 
process::Future< Nothingrecover (const Option< state::SlaveState > &state) override
 
process::Future< Containerizer::LaunchResultlaunch (const ContainerID &containerId, const mesos::slave::ContainerConfig &containerConfig, const std::map< std::string, std::string > &environment, const Option< std::string > &pidCheckpointPath) override
 
process::Future< Nothingupdate (const ContainerID &containerId, const Resources &resourceRequests, const google::protobuf::Map< std::string, Value::Scalar > &resourceLimits={}) override
 
process::Future< ResourceStatistics > usage (const ContainerID &containerId) override
 
process::Future< ContainerStatus > status (const ContainerID &containerId) override
 
process::Future< Option< mesos::slave::ContainerTermination > > wait (const ContainerID &containerId) override
 
process::Future< Option< mesos::slave::ContainerTermination > > destroy (const ContainerID &containerId) override
 
process::Future< hashset< ContainerID > > containers () override
 
process::Future< NothingpruneImages (const std::vector< Image > &excludedImages) override
 
- Public Member Functions inherited from mesos::internal::slave::Containerizer
virtual ~Containerizer ()
 
virtual process::Future< process::http::Connectionattach (const ContainerID &containerId)
 
virtual process::Future< bool > kill (const ContainerID &containerId, int signal)
 
virtual process::Future< Nothingremove (const ContainerID &containerId)
 

Additional Inherited Members

- Public Types inherited from mesos::internal::slave::Containerizer
enum  LaunchResult { LaunchResult::SUCCESS, LaunchResult::ALREADY_LAUNCHED, LaunchResult::NOT_SUPPORTED }
 
- Static Public Member Functions inherited from mesos::internal::slave::DockerContainerizer
static Try< DockerContainerizer * > create (const Flags &flags, Fetcher *fetcher, const Option< NvidiaComponents > &nvidia=None())
 
- Static Public Member Functions inherited from mesos::internal::slave::Containerizer
static Try< Containerizer * > create (const Flags &flags, bool local, Fetcher *fetcher, GarbageCollector *gc, SecretResolver *secretResolver=nullptr, VolumeGidManager *volumeGidManager=nullptr, PendingFutureTracker *futureTracker=nullptr, CSIServer *csiServer=nullptr)
 
static Try< Resourcesresources (const Flags &flags)
 

Constructor & Destructor Documentation

mesos::internal::tests::MockDockerContainerizer::MockDockerContainerizer ( const slave::Flags flags,
slave::Fetcher fetcher,
const process::Owned< mesos::slave::ContainerLogger > &  logger,
process::Shared< Docker docker,
const Option< NvidiaComponents > &  nvidia = None() 
)
mesos::internal::tests::MockDockerContainerizer::MockDockerContainerizer ( const process::Owned< slave::DockerContainerizerProcess > &  process)
mesos::internal::tests::MockDockerContainerizer::~MockDockerContainerizer ( )
override

Member Function Documentation

process::Future<slave::Containerizer::LaunchResult> mesos::internal::tests::MockDockerContainerizer::_launch ( const ContainerID &  containerId,
const mesos::slave::ContainerConfig &  containerConfig,
const std::map< std::string, std::string > &  environment,
const Option< std::string > &  pidCheckpointPath 
)
inline
process::Future<Nothing> mesos::internal::tests::MockDockerContainerizer::_update ( const ContainerID &  containerId,
const Resources resourceRequests,
const google::protobuf::Map< std::string, Value::Scalar > &  resourceLimits 
)
inline
void mesos::internal::tests::MockDockerContainerizer::initialize ( )
inline
mesos::internal::tests::MockDockerContainerizer::MOCK_METHOD3 ( update  ,
process::Future< Nothing const ContainerID &, const Resources &, const google::protobuf::Map< std::string, Value::Scalar > & 
)
mesos::internal::tests::MockDockerContainerizer::MOCK_METHOD4 ( launch  ,
process::Future< slave::Containerizer::LaunchResult const ContainerID &, const mesos::slave::ContainerConfig &, const std::map< std::string, std::string > &, const Option< std::string > & 
)

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