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

Method createVolumeInfo

src/examples/test_csi_plugin.cpp:1351–1363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1349
1350
1351VolumeInfo TestCSIPlugin::createVolumeInfo(
1352 const Bytes& capacity,
1353 const string& name,
1354 const google::protobuf::Map<string, string> context)
1355{
1356 const string volumeId = volumeIdPath ? getVolumePath(capacity, name) : name;
1357
1358 return VolumeInfo{
1359 capacity,
1360 volumeId,
1361 getVolumePath(capacity, name),
1362 context};
1363}
1364
1365
1366Try<VolumeInfo, StatusError> TestCSIPlugin::createVolume(

Callers

nothing calls this directly

Calls 1

getVolumePathFunction · 0.85

Tested by

no test coverage detected