blob: 385807cd7ed14875f7f0e7c6790c28332afa2cda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# frozen_string_literal: true
module Enums
class PackageMetadata
ADVISORY_SOURCES = {
glad: 1, # gitlab advisory db
'trivy-db': 2
}.with_indifferent_access.freeze
DATA_TYPES = {
advisories: 1,
licenses: 2
}.with_indifferent_access.freeze
VERSION_FORMATS = {
v1: 1,
v2: 2
}.with_indifferent_access.freeze
def self.advisory_sources
ADVISORY_SOURCES
end
def self.data_types
DATA_TYPES
end
def self.version_formats
VERSION_FORMATS
end
end
end
|