debian-mirror-gitlab/app/models/concerns/enums/package_metadata.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
444 B
Ruby
Raw Normal View History

2023-04-23 21:23:45 +05:30
# frozen_string_literal: true
module Enums
class PackageMetadata
PURL_TYPES = {
composer: 1,
conan: 2,
gem: 3,
golang: 4,
maven: 5,
npm: 6,
nuget: 7,
2023-06-20 00:43:36 +05:30
pypi: 8,
apk: 9,
rpm: 10,
deb: 11,
cbl_mariner: 12
2023-04-23 21:23:45 +05:30
}.with_indifferent_access.freeze
def self.purl_types
PURL_TYPES
end
2023-06-20 00:43:36 +05:30
def self.purl_types_numerical
purl_types.invert
end
2023-04-23 21:23:45 +05:30
end
end