MCPcopy Create free account
hub / github.com/apache/mesos / createVolumeFromDockerImage

Function createVolumeFromDockerImage

src/tests/mesos.hpp:843–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841
842template <typename TVolume, typename TImage>
843inline TVolume createVolumeFromDockerImage(
844 const std::string& containerPath,
845 const std::string& imageName,
846 const typename TVolume::Mode& mode)
847{
848 TVolume volume;
849 volume.set_container_path(containerPath);
850 volume.set_mode(mode);
851 volume.mutable_image()->CopyFrom(createDockerImage<TImage>(imageName));
852 return volume;
853}
854
855
856template <typename TVolume>

Callers 2

TEST_PFunction · 0.85
TEST_PFunction · 0.85

Calls 1

CopyFromMethod · 0.80

Tested by

no test coverage detected