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

Method VolumeManagerProcess

src/csi/v0_volume_manager.cpp:80–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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