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

Method VolumeManagerProcess

src/csi/v1_volume_manager.cpp:81–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79namespace v1 {
80
81VolumeManagerProcess::VolumeManagerProcess(
82 const string& _rootDir,
83 const CSIPluginInfo& _info,
84 const hashset<Service> _services,
85 const Runtime& _runtime,
86 ServiceManager* _serviceManager,
87 Metrics* _metrics,
88 SecretResolver* _secretResolver)
89 : ProcessBase(process::ID::generate("csi-v1-volume-manager")),
90 rootDir(_rootDir),
91 info(_info),
92 services(_services),
93 runtime(_runtime),
94 serviceManager(_serviceManager),
95 metrics(_metrics),
96 secretResolver(_secretResolver),
97 mountRootDir(info.has_target_path_root()
98 ? info.target_path_root()
99 : paths::getMountRootDir(rootDir, info.type(), info.name()))
100{
101 // This should have been validated in `VolumeManager::create`.
102 CHECK(!services.empty())
103 << "Must specify at least one service for CSI plugin type '" << info.type()
104 << "' and name '" << info.name() << "'";
105}
106
107
108Future<Nothing> VolumeManagerProcess::recover()

Callers

nothing calls this directly

Calls 5

generateFunction · 0.85
getMountRootDirFunction · 0.85
typeMethod · 0.80
nameMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected