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

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

29 lines
519 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# frozen_string_literal: true
module Enums
class Sbom
COMPONENT_TYPES = {
library: 0
}.with_indifferent_access.freeze
2023-01-13 00:05:48 +05:30
PURL_TYPES = {
composer: 1, # refered to as `packagist` in gemnasium-db
conan: 2,
gem: 3,
golang: 4, # refered to as `go` in gemnasium-db
maven: 5,
npm: 6,
nuget: 7,
pypi: 8
}.with_indifferent_access.freeze
2022-08-27 11:52:29 +05:30
def self.component_types
COMPONENT_TYPES
end
2023-01-13 00:05:48 +05:30
def self.purl_types
PURL_TYPES
end
2022-08-27 11:52:29 +05:30
end
end