{"size": 894, "ext": "js", "max_stars_repo_path": "lib/providers/offline.js", "max_stars_repo_name": "finanzcheck/serverless-secrets", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/providers/offline.js", "max_issues_repo_name": "finanzcheck/serverless-secrets", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/providers/offline.js", "max_forks_repo_name": "finanzcheck/serverless-secrets", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.2941176471, "max_line_length": 112, "alphanum_fraction": 0.6744966443}
'use strict'

module.exports = function (options) {
  function getSecret (parameterNames) {
    // We don't really need this, because serverless-secrets already sets the
    // ENV variables to the right values, but `load()` will complain if we
    // don't return values for all secrets.
    const names = Array.isArray(parameterNames) ? parameterNames : [parameterNames]

    const secrets = {}
    names.forEach((key) => { secrets[key] = key })
    return new Promise((resolve) => resolve(secrets))
  }

  function setSecret (name, value, description = 'Created with Serverless Secrets', isEncrypted = true, keyId) {
    throw new Error('Not implemented')
  }

  function deleteSecret (name) {
    throw new Error('Not implemented')
  }

  function listSecrets () {
    throw new Error('Not implemented')
  }

  return {
    getSecret,
    setSecret,
    deleteSecret,
    listSecrets
  }
}
