protobug_in_toto_attestation_protos 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8293f242972eaf7bf30ceeb2693a2a20a62d2b1972e48381db6776852db425e9
4
+ data.tar.gz: fcf3afdf5b33f9925939fc9abff131b260bc795309d81c68a5ea0ff3c82a2a8f
5
+ SHA512:
6
+ metadata.gz: 1c8f594e2d5b077ddebac2f1d0fc4fab25c8ec91992dc2a5085900ce5e4cf2e681ee554110df704ec553ca28de06c9e7f92b2767b26b9042d5641b10820e020b
7
+ data.tar.gz: ce130f0cf5a29dc281db6ffa947cbb18e74ac08d88ef5c4e7ac5f8a01c17691fa1f1686258cb1707fb782366f5870f95f2dd3d6e61119af8e4a525978181934d
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by protoc-gen-protobug. DO NOT EDIT.
4
+
5
+ # source: in_toto_attestation/predicates/link/v0/link.proto
6
+ # syntax: proto3
7
+ # package: in_toto_attestation.predicates.link.v0
8
+ # options:
9
+ # java_package: "io.github.intoto.attestation.predicates.link.v0"
10
+ # go_package: "github.com/in-toto/attestation/go/predicates/link/v0"
11
+
12
+ require "protobug"
13
+
14
+ require "google/protobuf/struct_pb"
15
+
16
+ require_relative "../../../v1/resource_descriptor_pb"
17
+
18
+ module InTotoAttestation
19
+ module Predicates
20
+ module Link
21
+ module V0
22
+ class Link
23
+ extend Protobug::Message
24
+
25
+ self.full_name = "in_toto_attestation.predicates.link.v0.Link"
26
+
27
+ optional(1, "name", type: :string, proto3_optional: false)
28
+ repeated(2, "command", type: :string)
29
+ repeated(
30
+ 3,
31
+ "materials",
32
+ type: :message,
33
+ message_type: "in_toto_attestation.v1.ResourceDescriptor"
34
+ )
35
+ optional(
36
+ 4,
37
+ "byproducts",
38
+ type: :message,
39
+ message_type: "google.protobuf.Struct",
40
+ proto3_optional: false
41
+ )
42
+ optional(
43
+ 5,
44
+ "environment",
45
+ type: :message,
46
+ message_type: "google.protobuf.Struct",
47
+ proto3_optional: false
48
+ )
49
+ end
50
+
51
+ def self.register_link_protos(registry)
52
+ InTotoAttestation::V1.register_resource_descriptor_protos(registry)
53
+ Google::Protobuf.register_struct_protos(registry)
54
+ registry.register(InTotoAttestation::Predicates::Link::V0::Link)
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,185 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by protoc-gen-protobug. DO NOT EDIT.
4
+
5
+ # source: in_toto_attestation/predicates/provenance/v1/provenance.proto
6
+ # syntax: proto3
7
+ # package: in_toto_attestation.predicates.provenance.v1
8
+ # options:
9
+ # java_package: "io.github.intoto.attestation.predicates.provenance.v1"
10
+ # go_package: "github.com/in-toto/attestation/go/predicates/provenance/v1"
11
+
12
+ require "protobug"
13
+
14
+ require "google/protobuf/struct_pb"
15
+ require "google/protobuf/timestamp_pb"
16
+
17
+ require_relative "../../../v1/resource_descriptor_pb"
18
+
19
+ module InTotoAttestation
20
+ module Predicates
21
+ module Provenance
22
+ module V1
23
+ # Proto representation of predicate type https://slsa.dev/provenance/v1
24
+ # Validation of all fields is left to the users of this proto.
25
+ class Provenance
26
+ extend Protobug::Message
27
+
28
+ self.full_name = "in_toto_attestation.predicates.provenance.v1.Provenance"
29
+
30
+ optional(
31
+ 1,
32
+ "build_definition",
33
+ type: :message,
34
+ message_type:
35
+ "in_toto_attestation.predicates.provenance.v1.BuildDefinition",
36
+ json_name: "buildDefinition",
37
+ proto3_optional: false
38
+ )
39
+ optional(
40
+ 2,
41
+ "run_details",
42
+ type: :message,
43
+ message_type:
44
+ "in_toto_attestation.predicates.provenance.v1.RunDetails",
45
+ json_name: "runDetails",
46
+ proto3_optional: false
47
+ )
48
+ end
49
+
50
+ class BuildDefinition
51
+ extend Protobug::Message
52
+
53
+ self.full_name = "in_toto_attestation.predicates.provenance.v1.BuildDefinition"
54
+
55
+ optional(
56
+ 1,
57
+ "build_type",
58
+ type: :string,
59
+ json_name: "buildType",
60
+ proto3_optional: false
61
+ )
62
+ optional(
63
+ 2,
64
+ "external_parameters",
65
+ type: :message,
66
+ message_type: "google.protobuf.Struct",
67
+ json_name: "externalParameters",
68
+ proto3_optional: false
69
+ )
70
+ optional(
71
+ 3,
72
+ "internal_parameters",
73
+ type: :message,
74
+ message_type: "google.protobuf.Struct",
75
+ json_name: "internalParameters",
76
+ proto3_optional: false
77
+ )
78
+ repeated(
79
+ 4,
80
+ "resolved_dependencies",
81
+ type: :message,
82
+ message_type: "in_toto_attestation.v1.ResourceDescriptor",
83
+ json_name: "resolvedDependencies"
84
+ )
85
+ end
86
+
87
+ class RunDetails
88
+ extend Protobug::Message
89
+
90
+ self.full_name = "in_toto_attestation.predicates.provenance.v1.RunDetails"
91
+
92
+ optional(
93
+ 1,
94
+ "builder",
95
+ type: :message,
96
+ message_type:
97
+ "in_toto_attestation.predicates.provenance.v1.Builder",
98
+ proto3_optional: false
99
+ )
100
+ optional(
101
+ 2,
102
+ "metadata",
103
+ type: :message,
104
+ message_type:
105
+ "in_toto_attestation.predicates.provenance.v1.BuildMetadata",
106
+ proto3_optional: false
107
+ )
108
+ repeated(
109
+ 3,
110
+ "byproducts",
111
+ type: :message,
112
+ message_type: "in_toto_attestation.v1.ResourceDescriptor"
113
+ )
114
+ end
115
+
116
+ class Builder
117
+ extend Protobug::Message
118
+
119
+ self.full_name = "in_toto_attestation.predicates.provenance.v1.Builder"
120
+
121
+ optional(1, "id", type: :string, proto3_optional: false)
122
+ map(2, "version", key_type: :string, value_type: :string)
123
+ repeated(
124
+ 3,
125
+ "builder_dependencies",
126
+ type: :message,
127
+ message_type: "in_toto_attestation.v1.ResourceDescriptor",
128
+ json_name: "builderDependencies"
129
+ )
130
+ end
131
+
132
+ class BuildMetadata
133
+ extend Protobug::Message
134
+
135
+ self.full_name = "in_toto_attestation.predicates.provenance.v1.BuildMetadata"
136
+
137
+ optional(
138
+ 1,
139
+ "invocation_id",
140
+ type: :string,
141
+ json_name: "invocationId",
142
+ proto3_optional: false
143
+ )
144
+ optional(
145
+ 2,
146
+ "started_on",
147
+ type: :message,
148
+ message_type: "google.protobuf.Timestamp",
149
+ json_name: "startedOn",
150
+ proto3_optional: false
151
+ )
152
+ optional(
153
+ 3,
154
+ "finished_on",
155
+ type: :message,
156
+ message_type: "google.protobuf.Timestamp",
157
+ json_name: "finishedOn",
158
+ proto3_optional: false
159
+ )
160
+ end
161
+
162
+ def self.register_provenance_protos(registry)
163
+ InTotoAttestation::V1.register_resource_descriptor_protos(registry)
164
+ Google::Protobuf.register_struct_protos(registry)
165
+ Google::Protobuf.register_timestamp_protos(registry)
166
+ registry.register(
167
+ InTotoAttestation::Predicates::Provenance::V1::Provenance
168
+ )
169
+ registry.register(
170
+ InTotoAttestation::Predicates::Provenance::V1::BuildDefinition
171
+ )
172
+ registry.register(
173
+ InTotoAttestation::Predicates::Provenance::V1::RunDetails
174
+ )
175
+ registry.register(
176
+ InTotoAttestation::Predicates::Provenance::V1::Builder
177
+ )
178
+ registry.register(
179
+ InTotoAttestation::Predicates::Provenance::V1::BuildMetadata
180
+ )
181
+ end
182
+ end
183
+ end
184
+ end
185
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by protoc-gen-protobug. DO NOT EDIT.
4
+
5
+ # source: in_toto_attestation/predicates/release/v0/release.proto
6
+ # syntax: proto3
7
+ # package: in_toto_attestation.predicates.release.v0
8
+ # options:
9
+ # java_package: "io.github.intoto.attestation.predicates.release.v0"
10
+ # go_package: "github.com/in-toto/attestation/go/predicates/release/v0"
11
+
12
+ require "protobug"
13
+
14
+ module InTotoAttestation
15
+ module Predicates
16
+ module Release
17
+ module V0
18
+ class Release
19
+ extend Protobug::Message
20
+
21
+ self.full_name = "in_toto_attestation.predicates.release.v0.Release"
22
+
23
+ optional(1, "purl", type: :string, proto3_optional: false)
24
+ optional(2, "release_id", type: :string, json_name: "releaseId")
25
+ end
26
+
27
+ def self.register_release_protos(registry)
28
+ registry.register(InTotoAttestation::Predicates::Release::V0::Release)
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,95 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by protoc-gen-protobug. DO NOT EDIT.
4
+
5
+ # source: in_toto_attestation/predicates/scai/v0/scai.proto
6
+ # syntax: proto3
7
+ # package: in_toto_attestation.predicates.scai.v0
8
+ # options:
9
+ # java_package: "io.github.intoto.attestation.predicates.scai.v0"
10
+ # go_package: "github.com/in-toto/attestation/go/predicates/scai/v0"
11
+
12
+ # Protobuf definition for the SCAI Attribute Report predicate
13
+ # (predicateType = https://in-toto.io/attestation/scai/attribute-report/v0.2)
14
+ #
15
+ # Validation of all fields is left to the users of this proto.
16
+
17
+ require "protobug"
18
+
19
+ require "google/protobuf/struct_pb"
20
+
21
+ require_relative "../../../v1/resource_descriptor_pb"
22
+
23
+ module InTotoAttestation
24
+ module Predicates
25
+ module Scai
26
+ module V0
27
+ class AttributeAssertion
28
+ extend Protobug::Message
29
+
30
+ self.full_name = "in_toto_attestation.predicates.scai.v0.AttributeAssertion"
31
+
32
+ optional(
33
+ 1,
34
+ "attribute",
35
+ type: :string,
36
+ proto3_optional: false
37
+ ) # required
38
+ optional(
39
+ 2,
40
+ "target",
41
+ type: :message,
42
+ message_type: "in_toto_attestation.v1.ResourceDescriptor",
43
+ proto3_optional: false
44
+ )
45
+ optional(
46
+ 3,
47
+ "conditions",
48
+ type: :message,
49
+ message_type: "google.protobuf.Struct",
50
+ proto3_optional: false
51
+ )
52
+ optional(
53
+ 4,
54
+ "evidence",
55
+ type: :message,
56
+ message_type: "in_toto_attestation.v1.ResourceDescriptor",
57
+ proto3_optional: false
58
+ )
59
+ end
60
+
61
+ class AttributeReport
62
+ extend Protobug::Message
63
+
64
+ self.full_name = "in_toto_attestation.predicates.scai.v0.AttributeReport"
65
+
66
+ repeated(
67
+ 1,
68
+ "attributes",
69
+ type: :message,
70
+ message_type:
71
+ "in_toto_attestation.predicates.scai.v0.AttributeAssertion"
72
+ )
73
+ optional(
74
+ 2,
75
+ "producer",
76
+ type: :message,
77
+ message_type: "in_toto_attestation.v1.ResourceDescriptor",
78
+ proto3_optional: false
79
+ )
80
+ end
81
+
82
+ def self.register_scai_protos(registry)
83
+ Google::Protobuf.register_struct_protos(registry)
84
+ InTotoAttestation::V1.register_resource_descriptor_protos(registry)
85
+ registry.register(
86
+ InTotoAttestation::Predicates::Scai::V0::AttributeAssertion
87
+ )
88
+ registry.register(
89
+ InTotoAttestation::Predicates::Scai::V0::AttributeReport
90
+ )
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by protoc-gen-protobug. DO NOT EDIT.
4
+
5
+ # source: in_toto_attestation/predicates/test_result/v0/test_result.proto
6
+ # syntax: proto3
7
+ # package: in_toto_attestation.predicates.test_result.v0
8
+ # options:
9
+ # java_package: "io.github.intoto.attestation.predicates.test_result.v0"
10
+ # go_package: "github.com/in-toto/attestation/go/predicates/test_result/v0"
11
+
12
+ require "protobug"
13
+
14
+ require_relative "../../../v1/resource_descriptor_pb"
15
+
16
+ module InTotoAttestation
17
+ module Predicates
18
+ module TestResult
19
+ module V0
20
+ class TestResult
21
+ extend Protobug::Message
22
+
23
+ self.full_name = "in_toto_attestation.predicates.test_result.v0.TestResult"
24
+
25
+ optional(1, "result", type: :string, proto3_optional: false)
26
+ repeated(
27
+ 2,
28
+ "configuration",
29
+ type: :message,
30
+ message_type: "in_toto_attestation.v1.ResourceDescriptor"
31
+ )
32
+ optional(3, "url", type: :string, proto3_optional: false)
33
+ repeated(4, "passed_tests", type: :string, json_name: "passedTests")
34
+ repeated(5, "warned_tests", type: :string, json_name: "warnedTests")
35
+ repeated(6, "failed_tests", type: :string, json_name: "failedTests")
36
+ end
37
+
38
+ def self.register_test_result_protos(registry)
39
+ InTotoAttestation::V1.register_resource_descriptor_protos(registry)
40
+ registry.register(
41
+ InTotoAttestation::Predicates::TestResult::V0::TestResult
42
+ )
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,112 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by protoc-gen-protobug. DO NOT EDIT.
4
+
5
+ # source: in_toto_attestation/predicates/vsa/v0/vsa.proto
6
+ # syntax: proto3
7
+ # package: in_toto_attestation.predicates.vsa.v0
8
+ # options:
9
+ # java_package: "io.github.intoto.attestation.predicates.vsa.v0"
10
+ # go_package: "github.com/in-toto/attestation/go/predicates/vsa/v0"
11
+
12
+ require "protobug"
13
+
14
+ require "google/protobuf/timestamp_pb"
15
+
16
+ module InTotoAttestation
17
+ module Predicates
18
+ module Vsa
19
+ module V0
20
+ # Proto representation of predicate type https://slsa.dev/verification_summary/v0.2
21
+ # Validation of all fields is left to the users of this proto.
22
+ class VerificationSummary
23
+ extend Protobug::Message
24
+
25
+ self.full_name = "in_toto_attestation.predicates.vsa.v0.VerificationSummary"
26
+
27
+ class Verifier
28
+ extend Protobug::Message
29
+
30
+ self.full_name = "in_toto_attestation.predicates.vsa.v0.VerificationSummary.Verifier"
31
+
32
+ optional(1, "id", type: :string, proto3_optional: false)
33
+ end
34
+
35
+ optional(
36
+ 1,
37
+ "verifier",
38
+ type: :message,
39
+ message_type:
40
+ "in_toto_attestation.predicates.vsa.v0.VerificationSummary.Verifier",
41
+ proto3_optional: false
42
+ )
43
+ optional(
44
+ 2,
45
+ "time_verified",
46
+ type: :message,
47
+ message_type: "google.protobuf.Timestamp",
48
+ proto3_optional: false
49
+ )
50
+ optional(3, "resource_uri", type: :string, proto3_optional: false)
51
+ class Policy
52
+ extend Protobug::Message
53
+
54
+ self.full_name = "in_toto_attestation.predicates.vsa.v0.VerificationSummary.Policy"
55
+
56
+ optional(1, "uri", type: :string, proto3_optional: false)
57
+ map(2, "digest", key_type: :string, value_type: :string)
58
+ end
59
+
60
+ optional(
61
+ 4,
62
+ "policy",
63
+ type: :message,
64
+ message_type:
65
+ "in_toto_attestation.predicates.vsa.v0.VerificationSummary.Policy",
66
+ proto3_optional: false
67
+ )
68
+ class InputAttestation
69
+ extend Protobug::Message
70
+
71
+ self.full_name = "in_toto_attestation.predicates.vsa.v0.VerificationSummary.InputAttestation"
72
+
73
+ optional(1, "uri", type: :string, proto3_optional: false)
74
+ map(2, "digest", key_type: :string, value_type: :string)
75
+ end
76
+
77
+ repeated(
78
+ 5,
79
+ "input_attestations",
80
+ type: :message,
81
+ message_type:
82
+ "in_toto_attestation.predicates.vsa.v0.VerificationSummary.InputAttestation"
83
+ )
84
+ optional(
85
+ 6,
86
+ "verification_result",
87
+ type: :string,
88
+ proto3_optional: false
89
+ )
90
+ optional(7, "policy_level", type: :string, proto3_optional: false)
91
+ map(8, "dependency_levels", key_type: :string, value_type: :uint64)
92
+ end
93
+
94
+ def self.register_vsa_protos(registry)
95
+ Google::Protobuf.register_timestamp_protos(registry)
96
+ registry.register(
97
+ InTotoAttestation::Predicates::Vsa::V0::VerificationSummary
98
+ )
99
+ registry.register(
100
+ InTotoAttestation::Predicates::Vsa::V0::VerificationSummary::Verifier
101
+ )
102
+ registry.register(
103
+ InTotoAttestation::Predicates::Vsa::V0::VerificationSummary::Policy
104
+ )
105
+ registry.register(
106
+ InTotoAttestation::Predicates::Vsa::V0::VerificationSummary::InputAttestation
107
+ )
108
+ end
109
+ end
110
+ end
111
+ end
112
+ end
@@ -0,0 +1,140 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by protoc-gen-protobug. DO NOT EDIT.
4
+
5
+ # source: in_toto_attestation/predicates/vsa/v1/vsa.proto
6
+ # syntax: proto3
7
+ # package: in_toto_attestation.predicates.vsa.v1
8
+ # options:
9
+ # java_package: "io.github.intoto.attestation.predicates.vsa.v1"
10
+ # go_package: "github.com/in-toto/attestation/go/predicates/vsa/v1"
11
+
12
+ require "protobug"
13
+
14
+ require "google/protobuf/timestamp_pb"
15
+
16
+ module InTotoAttestation
17
+ module Predicates
18
+ module Vsa
19
+ module V1
20
+ # Proto representation of predicate type https://slsa.dev/verification_summary/v1
21
+ # Validation of all fields is left to the users of this proto.
22
+ class VerificationSummary
23
+ extend Protobug::Message
24
+
25
+ self.full_name = "in_toto_attestation.predicates.vsa.v1.VerificationSummary"
26
+
27
+ class Verifier
28
+ extend Protobug::Message
29
+
30
+ self.full_name = "in_toto_attestation.predicates.vsa.v1.VerificationSummary.Verifier"
31
+
32
+ optional(1, "id", type: :string, proto3_optional: false)
33
+ end
34
+
35
+ optional(
36
+ 1,
37
+ "verifier",
38
+ type: :message,
39
+ message_type:
40
+ "in_toto_attestation.predicates.vsa.v1.VerificationSummary.Verifier",
41
+ proto3_optional: false
42
+ )
43
+ optional(
44
+ 2,
45
+ "time_verified",
46
+ type: :message,
47
+ message_type: "google.protobuf.Timestamp",
48
+ json_name: "timeVerified",
49
+ proto3_optional: false
50
+ )
51
+ optional(
52
+ 3,
53
+ "resource_uri",
54
+ type: :string,
55
+ json_name: "resourceUri",
56
+ proto3_optional: false
57
+ )
58
+ class Policy
59
+ extend Protobug::Message
60
+
61
+ self.full_name = "in_toto_attestation.predicates.vsa.v1.VerificationSummary.Policy"
62
+
63
+ optional(1, "uri", type: :string, proto3_optional: false)
64
+ map(2, "digest", key_type: :string, value_type: :string)
65
+ end
66
+
67
+ optional(
68
+ 4,
69
+ "policy",
70
+ type: :message,
71
+ message_type:
72
+ "in_toto_attestation.predicates.vsa.v1.VerificationSummary.Policy",
73
+ proto3_optional: false
74
+ )
75
+ class InputAttestation
76
+ extend Protobug::Message
77
+
78
+ self.full_name = "in_toto_attestation.predicates.vsa.v1.VerificationSummary.InputAttestation"
79
+
80
+ optional(1, "uri", type: :string, proto3_optional: false)
81
+ map(2, "digest", key_type: :string, value_type: :string)
82
+ end
83
+
84
+ repeated(
85
+ 5,
86
+ "input_attestations",
87
+ type: :message,
88
+ message_type:
89
+ "in_toto_attestation.predicates.vsa.v1.VerificationSummary.InputAttestation",
90
+ json_name: "inputAttestations"
91
+ )
92
+ optional(
93
+ 6,
94
+ "verification_result",
95
+ type: :string,
96
+ json_name: "verificationResult",
97
+ proto3_optional: false
98
+ )
99
+ optional(
100
+ 7,
101
+ "verified_levels",
102
+ type: :string,
103
+ json_name: "verifiedLevels",
104
+ proto3_optional: false
105
+ )
106
+ map(
107
+ 8,
108
+ "dependency_levels",
109
+ key_type: :string,
110
+ value_type: :uint64,
111
+ json_name: "dependencyLevels"
112
+ )
113
+ optional(
114
+ 9,
115
+ "slsa_version",
116
+ type: :string,
117
+ json_name: "slsaVersion",
118
+ proto3_optional: false
119
+ )
120
+ end
121
+
122
+ def self.register_vsa_protos(registry)
123
+ Google::Protobuf.register_timestamp_protos(registry)
124
+ registry.register(
125
+ InTotoAttestation::Predicates::Vsa::V1::VerificationSummary
126
+ )
127
+ registry.register(
128
+ InTotoAttestation::Predicates::Vsa::V1::VerificationSummary::Verifier
129
+ )
130
+ registry.register(
131
+ InTotoAttestation::Predicates::Vsa::V1::VerificationSummary::Policy
132
+ )
133
+ registry.register(
134
+ InTotoAttestation::Predicates::Vsa::V1::VerificationSummary::InputAttestation
135
+ )
136
+ end
137
+ end
138
+ end
139
+ end
140
+ end
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by protoc-gen-protobug. DO NOT EDIT.
4
+
5
+ # source: in_toto_attestation/v1/resource_descriptor.proto
6
+ # syntax: proto3
7
+ # package: in_toto_attestation.v1
8
+ # options:
9
+ # java_package: "io.github.intoto.attestation.v1"
10
+ # go_package: "github.com/in-toto/attestation/go/v1"
11
+
12
+ require "protobug"
13
+
14
+ require "google/protobuf/struct_pb"
15
+
16
+ module InTotoAttestation
17
+ module V1
18
+ # Proto representation of the in-toto v1 ResourceDescriptor.
19
+ # https://github.com/in-toto/attestation/blob/main/spec/v1/resource_descriptor.md
20
+ # Validation of all fields is left to the users of this proto.
21
+ class ResourceDescriptor
22
+ extend Protobug::Message
23
+
24
+ self.full_name = "in_toto_attestation.v1.ResourceDescriptor"
25
+
26
+ optional(1, "name", type: :string, proto3_optional: false)
27
+ optional(2, "uri", type: :string, proto3_optional: false)
28
+ map(3, "digest", key_type: :string, value_type: :string)
29
+ optional(4, "content", type: :bytes, proto3_optional: false)
30
+ optional(
31
+ 5,
32
+ "download_location",
33
+ type: :string,
34
+ json_name: "downloadLocation",
35
+ proto3_optional: false
36
+ )
37
+ optional(
38
+ 6,
39
+ "media_type",
40
+ type: :string,
41
+ json_name: "mediaType",
42
+ proto3_optional: false
43
+ )
44
+ # Per the Struct protobuf spec, this type corresponds to
45
+ # a JSON Object, which is truly a map<string, Value> under the hood.
46
+ # So, the Struct a) is still consistent with our specification for
47
+ # the `annotations` field, and b) has native support in some language
48
+ # bindings making their use easier in implementations.
49
+ # See: https://pkg.go.dev/google.golang.org/protobuf/types/known/structpb#Struct
50
+ optional(
51
+ 7,
52
+ "annotations",
53
+ type: :message,
54
+ message_type: "google.protobuf.Struct",
55
+ proto3_optional: false
56
+ )
57
+ end
58
+
59
+ def self.register_resource_descriptor_protos(registry)
60
+ Google::Protobuf.register_struct_protos(registry)
61
+ registry.register(InTotoAttestation::V1::ResourceDescriptor)
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by protoc-gen-protobug. DO NOT EDIT.
4
+
5
+ # source: in_toto_attestation/v1/statement.proto
6
+ # syntax: proto3
7
+ # package: in_toto_attestation.v1
8
+ # options:
9
+ # java_package: "io.github.intoto.attestation.v1"
10
+ # go_package: "github.com/in-toto/attestation/go/v1"
11
+
12
+ require "protobug"
13
+
14
+ require "google/protobuf/struct_pb"
15
+
16
+ require_relative "resource_descriptor_pb"
17
+
18
+ module InTotoAttestation
19
+ module V1
20
+ # Proto representation of the in-toto v1 Statement.
21
+ # https://github.com/in-toto/attestation/tree/main/spec/v1
22
+ # Validation of all fields is left to the users of this proto.
23
+ class Statement
24
+ extend Protobug::Message
25
+
26
+ self.full_name = "in_toto_attestation.v1.Statement"
27
+
28
+ # Expected to always be "https://in-toto.io/Statement/v1"
29
+ optional(
30
+ 1,
31
+ "type",
32
+ type: :string,
33
+ json_name: "_type",
34
+ proto3_optional: false
35
+ )
36
+ repeated(
37
+ 2,
38
+ "subject",
39
+ type: :message,
40
+ message_type: "in_toto_attestation.v1.ResourceDescriptor"
41
+ )
42
+ optional(
43
+ 3,
44
+ "predicate_type",
45
+ type: :string,
46
+ json_name: "predicateType",
47
+ proto3_optional: false
48
+ )
49
+ optional(
50
+ 4,
51
+ "predicate",
52
+ type: :message,
53
+ message_type: "google.protobuf.Struct",
54
+ proto3_optional: false
55
+ )
56
+ end
57
+
58
+ def self.register_statement_protos(registry)
59
+ Google::Protobuf.register_struct_protos(registry)
60
+ InTotoAttestation::V1.register_resource_descriptor_protos(registry)
61
+ registry.register(InTotoAttestation::V1::Statement)
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "protobug"
4
+
5
+ require_relative "in_toto_attestation/predicates/link/v0/link_pb"
6
+ require_relative "in_toto_attestation/predicates/provenance/v1/provenance_pb"
7
+ require_relative "in_toto_attestation/predicates/release/v0/release_pb"
8
+ require_relative "in_toto_attestation/predicates/scai/v0/scai_pb"
9
+ require_relative "in_toto_attestation/predicates/test_result/v0/test_result_pb"
10
+ require_relative "in_toto_attestation/predicates/vsa/v0/vsa_pb"
11
+ require_relative "in_toto_attestation/predicates/vsa/v1/vsa_pb"
12
+ require_relative "in_toto_attestation/v1/resource_descriptor_pb"
13
+ require_relative "in_toto_attestation/v1/statement_pb"
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: protobug_in_toto_attestation_protos
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Samuel Giddins
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-06-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: protobug
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: protobug_well_known_protos
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.2.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.2.0
41
+ description:
42
+ email:
43
+ - segiddins@segiddins.me
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - lib/in_toto_attestation/predicates/link/v0/link_pb.rb
49
+ - lib/in_toto_attestation/predicates/provenance/v1/provenance_pb.rb
50
+ - lib/in_toto_attestation/predicates/release/v0/release_pb.rb
51
+ - lib/in_toto_attestation/predicates/scai/v0/scai_pb.rb
52
+ - lib/in_toto_attestation/predicates/test_result/v0/test_result_pb.rb
53
+ - lib/in_toto_attestation/predicates/vsa/v0/vsa_pb.rb
54
+ - lib/in_toto_attestation/predicates/vsa/v1/vsa_pb.rb
55
+ - lib/in_toto_attestation/v1/resource_descriptor_pb.rb
56
+ - lib/in_toto_attestation/v1/statement_pb.rb
57
+ - lib/protobug_in_toto_attestation_protos.rb
58
+ homepage: https://github.com/segiddins/protobug/blob/v0.2.0/gen/protobug_in_toto_attestation_protos
59
+ licenses:
60
+ - Unlicense
61
+ metadata:
62
+ rubygems_mfa_required: 'true'
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 3.0.0
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubygems_version: 3.5.9
79
+ signing_key:
80
+ specification_version: 4
81
+ summary: Compiled protos for protobug from https://github.com/in-toto/attestation
82
+ (in_toto_attestation_protos)
83
+ test_files: []