grafeas 0.3.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +3 -3
- data/LICENSE.md +203 -0
- data/MIGRATING.md +366 -0
- data/README.md +28 -25
- data/lib/grafeas.rb +36 -117
- data/lib/grafeas/version.rb +6 -2
- metadata +49 -80
- data/AUTHENTICATION.md +0 -172
- data/LICENSE +0 -201
- data/lib/grafeas/v1.rb +0 -155
- data/lib/grafeas/v1/attestation_pb.rb +0 -27
- data/lib/grafeas/v1/build_pb.rb +0 -23
- data/lib/grafeas/v1/common_pb.rb +0 -35
- data/lib/grafeas/v1/credentials.rb +0 -37
- data/lib/grafeas/v1/cvss_pb.rb +0 -67
- data/lib/grafeas/v1/deployment_pb.rb +0 -35
- data/lib/grafeas/v1/discovery_pb.rb +0 -43
- data/lib/grafeas/v1/doc/google/protobuf/any.rb +0 -131
- data/lib/grafeas/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/grafeas/v1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/grafeas/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/grafeas/v1/doc/google/rpc/status.rb +0 -39
- data/lib/grafeas/v1/doc/grafeas/v1/attestation.rb +0 -64
- data/lib/grafeas/v1/doc/grafeas/v1/build.rb +0 -44
- data/lib/grafeas/v1/doc/grafeas/v1/common.rb +0 -108
- data/lib/grafeas/v1/doc/grafeas/v1/cvss.rb +0 -104
- data/lib/grafeas/v1/doc/grafeas/v1/deployment.rb +0 -64
- data/lib/grafeas/v1/doc/grafeas/v1/discovery.rb +0 -82
- data/lib/grafeas/v1/doc/grafeas/v1/grafeas.rb +0 -328
- data/lib/grafeas/v1/doc/grafeas/v1/image.rb +0 -79
- data/lib/grafeas/v1/doc/grafeas/v1/package.rb +0 -125
- data/lib/grafeas/v1/doc/grafeas/v1/provenance.rb +0 -248
- data/lib/grafeas/v1/doc/grafeas/v1/upgrade.rb +0 -126
- data/lib/grafeas/v1/doc/grafeas/v1/vulnerability.rb +0 -223
- data/lib/grafeas/v1/grafeas_client.rb +0 -964
- data/lib/grafeas/v1/grafeas_client_config.json +0 -96
- data/lib/grafeas/v1/grafeas_pb.rb +0 -168
- data/lib/grafeas/v1/grafeas_services_pb.rb +0 -86
- data/lib/grafeas/v1/image_pb.rb +0 -36
- data/lib/grafeas/v1/package_pb.rb +0 -59
- data/lib/grafeas/v1/provenance_pb.rb +0 -116
- data/lib/grafeas/v1/upgrade_pb.rb +0 -56
- data/lib/grafeas/v1/vulnerability_pb.rb +0 -84
@@ -1,116 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: grafeas/v1/provenance.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/protobuf/timestamp_pb'
|
8
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
-
add_message "grafeas.v1.BuildProvenance" do
|
10
|
-
optional :id, :string, 1
|
11
|
-
optional :project_id, :string, 2
|
12
|
-
repeated :commands, :message, 3, "grafeas.v1.Command"
|
13
|
-
repeated :built_artifacts, :message, 4, "grafeas.v1.Artifact"
|
14
|
-
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
15
|
-
optional :start_time, :message, 6, "google.protobuf.Timestamp"
|
16
|
-
optional :end_time, :message, 7, "google.protobuf.Timestamp"
|
17
|
-
optional :creator, :string, 8
|
18
|
-
optional :logs_uri, :string, 9
|
19
|
-
optional :source_provenance, :message, 10, "grafeas.v1.Source"
|
20
|
-
optional :trigger_id, :string, 11
|
21
|
-
map :build_options, :string, :string, 12
|
22
|
-
optional :builder_version, :string, 13
|
23
|
-
end
|
24
|
-
add_message "grafeas.v1.Source" do
|
25
|
-
optional :artifact_storage_source_uri, :string, 1
|
26
|
-
map :file_hashes, :string, :message, 2, "grafeas.v1.FileHashes"
|
27
|
-
optional :context, :message, 3, "grafeas.v1.SourceContext"
|
28
|
-
repeated :additional_contexts, :message, 4, "grafeas.v1.SourceContext"
|
29
|
-
end
|
30
|
-
add_message "grafeas.v1.FileHashes" do
|
31
|
-
repeated :file_hash, :message, 1, "grafeas.v1.Hash"
|
32
|
-
end
|
33
|
-
add_message "grafeas.v1.Hash" do
|
34
|
-
optional :type, :string, 1
|
35
|
-
optional :value, :bytes, 2
|
36
|
-
end
|
37
|
-
add_message "grafeas.v1.Command" do
|
38
|
-
optional :name, :string, 1
|
39
|
-
repeated :env, :string, 2
|
40
|
-
repeated :args, :string, 3
|
41
|
-
optional :dir, :string, 4
|
42
|
-
optional :id, :string, 5
|
43
|
-
repeated :wait_for, :string, 6
|
44
|
-
end
|
45
|
-
add_message "grafeas.v1.Artifact" do
|
46
|
-
optional :checksum, :string, 1
|
47
|
-
optional :id, :string, 2
|
48
|
-
repeated :names, :string, 3
|
49
|
-
end
|
50
|
-
add_message "grafeas.v1.SourceContext" do
|
51
|
-
map :labels, :string, :string, 4
|
52
|
-
oneof :context do
|
53
|
-
optional :cloud_repo, :message, 1, "grafeas.v1.CloudRepoSourceContext"
|
54
|
-
optional :gerrit, :message, 2, "grafeas.v1.GerritSourceContext"
|
55
|
-
optional :git, :message, 3, "grafeas.v1.GitSourceContext"
|
56
|
-
end
|
57
|
-
end
|
58
|
-
add_message "grafeas.v1.AliasContext" do
|
59
|
-
optional :kind, :enum, 1, "grafeas.v1.AliasContext.Kind"
|
60
|
-
optional :name, :string, 2
|
61
|
-
end
|
62
|
-
add_enum "grafeas.v1.AliasContext.Kind" do
|
63
|
-
value :KIND_UNSPECIFIED, 0
|
64
|
-
value :FIXED, 1
|
65
|
-
value :MOVABLE, 2
|
66
|
-
value :OTHER, 4
|
67
|
-
end
|
68
|
-
add_message "grafeas.v1.CloudRepoSourceContext" do
|
69
|
-
optional :repo_id, :message, 1, "grafeas.v1.RepoId"
|
70
|
-
oneof :revision do
|
71
|
-
optional :revision_id, :string, 2
|
72
|
-
optional :alias_context, :message, 3, "grafeas.v1.AliasContext"
|
73
|
-
end
|
74
|
-
end
|
75
|
-
add_message "grafeas.v1.GerritSourceContext" do
|
76
|
-
optional :host_uri, :string, 1
|
77
|
-
optional :gerrit_project, :string, 2
|
78
|
-
oneof :revision do
|
79
|
-
optional :revision_id, :string, 3
|
80
|
-
optional :alias_context, :message, 4, "grafeas.v1.AliasContext"
|
81
|
-
end
|
82
|
-
end
|
83
|
-
add_message "grafeas.v1.GitSourceContext" do
|
84
|
-
optional :url, :string, 1
|
85
|
-
optional :revision_id, :string, 2
|
86
|
-
end
|
87
|
-
add_message "grafeas.v1.RepoId" do
|
88
|
-
oneof :id do
|
89
|
-
optional :project_repo_id, :message, 1, "grafeas.v1.ProjectRepoId"
|
90
|
-
optional :uid, :string, 2
|
91
|
-
end
|
92
|
-
end
|
93
|
-
add_message "grafeas.v1.ProjectRepoId" do
|
94
|
-
optional :project_id, :string, 1
|
95
|
-
optional :repo_name, :string, 2
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
module Grafeas
|
100
|
-
module V1
|
101
|
-
BuildProvenance = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.BuildProvenance").msgclass
|
102
|
-
Source = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Source").msgclass
|
103
|
-
FileHashes = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.FileHashes").msgclass
|
104
|
-
Hash = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Hash").msgclass
|
105
|
-
Command = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Command").msgclass
|
106
|
-
Artifact = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Artifact").msgclass
|
107
|
-
SourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.SourceContext").msgclass
|
108
|
-
AliasContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.AliasContext").msgclass
|
109
|
-
AliasContext::Kind = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.AliasContext.Kind").enummodule
|
110
|
-
CloudRepoSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.CloudRepoSourceContext").msgclass
|
111
|
-
GerritSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.GerritSourceContext").msgclass
|
112
|
-
GitSourceContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.GitSourceContext").msgclass
|
113
|
-
RepoId = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.RepoId").msgclass
|
114
|
-
ProjectRepoId = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ProjectRepoId").msgclass
|
115
|
-
end
|
116
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: grafeas/v1/upgrade.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/protobuf/timestamp_pb'
|
8
|
-
require 'grafeas/v1/package_pb'
|
9
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
-
add_message "grafeas.v1.UpgradeNote" do
|
11
|
-
optional :package, :string, 1
|
12
|
-
optional :version, :message, 2, "grafeas.v1.Version"
|
13
|
-
repeated :distributions, :message, 3, "grafeas.v1.UpgradeDistribution"
|
14
|
-
optional :windows_update, :message, 4, "grafeas.v1.WindowsUpdate"
|
15
|
-
end
|
16
|
-
add_message "grafeas.v1.UpgradeDistribution" do
|
17
|
-
optional :cpe_uri, :string, 1
|
18
|
-
optional :classification, :string, 2
|
19
|
-
optional :severity, :string, 3
|
20
|
-
repeated :cve, :string, 4
|
21
|
-
end
|
22
|
-
add_message "grafeas.v1.WindowsUpdate" do
|
23
|
-
optional :identity, :message, 1, "grafeas.v1.WindowsUpdate.Identity"
|
24
|
-
optional :title, :string, 2
|
25
|
-
optional :description, :string, 3
|
26
|
-
repeated :categories, :message, 4, "grafeas.v1.WindowsUpdate.Category"
|
27
|
-
repeated :kb_article_ids, :string, 5
|
28
|
-
optional :support_url, :string, 6
|
29
|
-
optional :last_published_timestamp, :message, 7, "google.protobuf.Timestamp"
|
30
|
-
end
|
31
|
-
add_message "grafeas.v1.WindowsUpdate.Identity" do
|
32
|
-
optional :update_id, :string, 1
|
33
|
-
optional :revision, :int32, 2
|
34
|
-
end
|
35
|
-
add_message "grafeas.v1.WindowsUpdate.Category" do
|
36
|
-
optional :category_id, :string, 1
|
37
|
-
optional :name, :string, 2
|
38
|
-
end
|
39
|
-
add_message "grafeas.v1.UpgradeOccurrence" do
|
40
|
-
optional :package, :string, 1
|
41
|
-
optional :parsed_version, :message, 3, "grafeas.v1.Version"
|
42
|
-
optional :distribution, :message, 4, "grafeas.v1.UpgradeDistribution"
|
43
|
-
optional :windows_update, :message, 5, "grafeas.v1.WindowsUpdate"
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
module Grafeas
|
48
|
-
module V1
|
49
|
-
UpgradeNote = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.UpgradeNote").msgclass
|
50
|
-
UpgradeDistribution = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.UpgradeDistribution").msgclass
|
51
|
-
WindowsUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.WindowsUpdate").msgclass
|
52
|
-
WindowsUpdate::Identity = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.WindowsUpdate.Identity").msgclass
|
53
|
-
WindowsUpdate::Category = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.WindowsUpdate.Category").msgclass
|
54
|
-
UpgradeOccurrence = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.UpgradeOccurrence").msgclass
|
55
|
-
end
|
56
|
-
end
|
@@ -1,84 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: grafeas/v1/vulnerability.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/protobuf/timestamp_pb'
|
8
|
-
require 'grafeas/v1/common_pb'
|
9
|
-
require 'grafeas/v1/cvss_pb'
|
10
|
-
require 'grafeas/v1/package_pb'
|
11
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
-
add_message "grafeas.v1.VulnerabilityNote" do
|
13
|
-
optional :cvss_score, :float, 1
|
14
|
-
optional :severity, :enum, 2, "grafeas.v1.Severity"
|
15
|
-
repeated :details, :message, 3, "grafeas.v1.VulnerabilityNote.Detail"
|
16
|
-
optional :cvss_v3, :message, 4, "grafeas.v1.CVSSv3"
|
17
|
-
repeated :windows_details, :message, 5, "grafeas.v1.VulnerabilityNote.WindowsDetail"
|
18
|
-
optional :source_update_time, :message, 6, "google.protobuf.Timestamp"
|
19
|
-
end
|
20
|
-
add_message "grafeas.v1.VulnerabilityNote.Detail" do
|
21
|
-
optional :severity_name, :string, 1
|
22
|
-
optional :description, :string, 2
|
23
|
-
optional :package_type, :string, 3
|
24
|
-
optional :affected_cpe_uri, :string, 4
|
25
|
-
optional :affected_package, :string, 5
|
26
|
-
optional :affected_version_start, :message, 6, "grafeas.v1.Version"
|
27
|
-
optional :affected_version_end, :message, 7, "grafeas.v1.Version"
|
28
|
-
optional :fixed_cpe_uri, :string, 8
|
29
|
-
optional :fixed_package, :string, 9
|
30
|
-
optional :fixed_version, :message, 10, "grafeas.v1.Version"
|
31
|
-
optional :is_obsolete, :bool, 11
|
32
|
-
optional :source_update_time, :message, 12, "google.protobuf.Timestamp"
|
33
|
-
end
|
34
|
-
add_message "grafeas.v1.VulnerabilityNote.WindowsDetail" do
|
35
|
-
optional :cpe_uri, :string, 1
|
36
|
-
optional :name, :string, 2
|
37
|
-
optional :description, :string, 3
|
38
|
-
repeated :fixing_kbs, :message, 4, "grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase"
|
39
|
-
end
|
40
|
-
add_message "grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase" do
|
41
|
-
optional :name, :string, 1
|
42
|
-
optional :url, :string, 2
|
43
|
-
end
|
44
|
-
add_message "grafeas.v1.VulnerabilityOccurrence" do
|
45
|
-
optional :type, :string, 1
|
46
|
-
optional :severity, :enum, 2, "grafeas.v1.Severity"
|
47
|
-
optional :cvss_score, :float, 3
|
48
|
-
repeated :package_issue, :message, 4, "grafeas.v1.VulnerabilityOccurrence.PackageIssue"
|
49
|
-
optional :short_description, :string, 5
|
50
|
-
optional :long_description, :string, 6
|
51
|
-
repeated :related_urls, :message, 7, "grafeas.v1.RelatedUrl"
|
52
|
-
optional :effective_severity, :enum, 8, "grafeas.v1.Severity"
|
53
|
-
optional :fix_available, :bool, 9
|
54
|
-
end
|
55
|
-
add_message "grafeas.v1.VulnerabilityOccurrence.PackageIssue" do
|
56
|
-
optional :affected_cpe_uri, :string, 1
|
57
|
-
optional :affected_package, :string, 2
|
58
|
-
optional :affected_version, :message, 3, "grafeas.v1.Version"
|
59
|
-
optional :fixed_cpe_uri, :string, 4
|
60
|
-
optional :fixed_package, :string, 5
|
61
|
-
optional :fixed_version, :message, 6, "grafeas.v1.Version"
|
62
|
-
optional :fix_available, :bool, 7
|
63
|
-
end
|
64
|
-
add_enum "grafeas.v1.Severity" do
|
65
|
-
value :SEVERITY_UNSPECIFIED, 0
|
66
|
-
value :MINIMAL, 1
|
67
|
-
value :LOW, 2
|
68
|
-
value :MEDIUM, 3
|
69
|
-
value :HIGH, 4
|
70
|
-
value :CRITICAL, 5
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
module Grafeas
|
75
|
-
module V1
|
76
|
-
VulnerabilityNote = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote").msgclass
|
77
|
-
VulnerabilityNote::Detail = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.Detail").msgclass
|
78
|
-
VulnerabilityNote::WindowsDetail = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.WindowsDetail").msgclass
|
79
|
-
VulnerabilityNote::WindowsDetail::KnowledgeBase = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase").msgclass
|
80
|
-
VulnerabilityOccurrence = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence").msgclass
|
81
|
-
VulnerabilityOccurrence::PackageIssue = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.VulnerabilityOccurrence.PackageIssue").msgclass
|
82
|
-
Severity = Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Severity").enummodule
|
83
|
-
end
|
84
|
-
end
|