INNER CODE UNIT · JavaScript

generateReport

asklokesh/loki-mode · src/audit/index.js:63

function generateReport(type, opts) {
  if (!_initialized) init();
  var entries = _log.readEntries();
  switch (type) {
    case 'soc2':
      return compliance.generateSoc2Report(entries, opts);
    case 'iso27001':
      return compliance.generateIso27001Report(entries, opts);
    case 'gdpr':
      return compliance.generateGdprReport(entries, opts);
    default:
      throw new Error('Unknown report type: ' + type + '. Supported: soc2, iso27001, gdpr');
  }
}

/**
 * Export a report as JSON string.
 */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…