async function identifyPaths()

in lib/volumeConfigurationResolver.js [42:62]


async function identifyPaths(provider, node, prefix) {
  prefix = prefix !== undefined ? prefix + '.' : '';
  const paths = {};
  for (const property in node) {
    const value = node[property];
    if (typeof value === 'object') {
      const recursion = await identifyPaths(provider, value, prefix + property);
      Object.assign(paths, recursion);
      continue;
    }
    if (typeof value !== 'string') {
      continue;
    }
    const asVolumeFile = getAsVolumeFile(value);
    if (!asVolumeFile) {
      continue;
    }
    paths[prefix + property] = await resolveVolumeFile(provider, asVolumeFile);
  }
  return paths;
}