summaryrefslogtreecommitdiff
path: root/app/models/concerns/enums/package_metadata.rb
blob: e15fe758e69bd39fa55c527676df673d9d2f4268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Enums
  class PackageMetadata
    PURL_TYPES = {
      composer: 1,
      conan: 2,
      gem: 3,
      golang: 4,
      maven: 5,
      npm: 6,
      nuget: 7,
      pypi: 8
    }.with_indifferent_access.freeze

    def self.purl_types
      PURL_TYPES
    end
  end
end