| 1 |
// Copyright 2019 The Grafeas Authors. All rights reserved. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.26.0 |
| 18 |
// protoc v4.24.4 |
| 19 |
// source: grafeas/v1/build.proto |
| 20 |
|
| 21 |
package grafeas |
| 22 |
|
| 23 |
import ( |
| 24 |
reflect "reflect" |
| 25 |
sync "sync" |
| 26 |
|
| 27 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 28 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// Note holding the version of the provider's builder and the signature of the |
| 39 |
// provenance message in the build details occurrence. |
| 40 |
type BuildNote struct { |
| 41 |
state protoimpl.MessageState |
| 42 |
sizeCache protoimpl.SizeCache |
| 43 |
unknownFields protoimpl.UnknownFields |
| 44 |
|
| 45 |
// Required. Immutable. Version of the builder which produced this build. |
| 46 |
BuilderVersion string `protobuf:"bytes,1,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"` |
| 47 |
} |
| 48 |
|
| 49 |
func (x *BuildNote) Reset() { |
| 50 |
*x = BuildNote{} |
| 51 |
if protoimpl.UnsafeEnabled { |
| 52 |
mi := &file_grafeas_v1_build_proto_msgTypes[0] |
| 53 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 54 |
ms.StoreMessageInfo(mi) |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
func (x *BuildNote) String() string { |
| 59 |
return protoimpl.X.MessageStringOf(x) |
| 60 |
} |
| 61 |
|
| 62 |
func (*BuildNote) ProtoMessage() {} |
| 63 |
|
| 64 |
func (x *BuildNote) ProtoReflect() protoreflect.Message { |
| 65 |
mi := &file_grafeas_v1_build_proto_msgTypes[0] |
| 66 |
if protoimpl.UnsafeEnabled && x != nil { |
| 67 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 68 |
if ms.LoadMessageInfo() == nil { |
| 69 |
ms.StoreMessageInfo(mi) |
| 70 |
} |
| 71 |
return ms |
| 72 |
} |
| 73 |
return mi.MessageOf(x) |
| 74 |
} |
| 75 |
|
| 76 |
// Deprecated: Use BuildNote.ProtoReflect.Descriptor instead. |
| 77 |
func (*BuildNote) Descriptor() ([]byte, []int) { |
| 78 |
return file_grafeas_v1_build_proto_rawDescGZIP(), []int{0} |
| 79 |
} |
| 80 |
|
| 81 |
func (x *BuildNote) GetBuilderVersion() string { |
| 82 |
if x != nil { |
| 83 |
return x.BuilderVersion |
| 84 |
} |
| 85 |
return "" |
| 86 |
} |
| 87 |
|
| 88 |
// Details of a build occurrence. |
| 89 |
type BuildOccurrence struct { |
| 90 |
state protoimpl.MessageState |
| 91 |
sizeCache protoimpl.SizeCache |
| 92 |
unknownFields protoimpl.UnknownFields |
| 93 |
|
| 94 |
// The actual provenance for the build. |
| 95 |
Provenance *BuildProvenance `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"` |
| 96 |
// Serialized JSON representation of the provenance, used in generating the |
| 97 |
// build signature in the corresponding build note. After verifying the |
| 98 |
// signature, `provenance_bytes` can be unmarshalled and compared to the |
| 99 |
// provenance to confirm that it is unchanged. A base64-encoded string |
| 100 |
// representation of the provenance bytes is used for the signature in order |
| 101 |
// to interoperate with openssl which expects this format for signature |
| 102 |
// verification. |
| 103 |
// |
| 104 |
// The serialized form is captured both to avoid ambiguity in how the |
| 105 |
// provenance is marshalled to json as well to prevent incompatibilities with |
| 106 |
// future changes. |
| 107 |
ProvenanceBytes string `protobuf:"bytes,2,opt,name=provenance_bytes,json=provenanceBytes,proto3" json:"provenance_bytes,omitempty"` |
| 108 |
// Deprecated. See InTotoStatement for the replacement. |
| 109 |
// In-toto Provenance representation as defined in spec. |
| 110 |
IntotoProvenance *InTotoProvenance `protobuf:"bytes,3,opt,name=intoto_provenance,json=intotoProvenance,proto3" json:"intoto_provenance,omitempty"` |
| 111 |
// In-toto Statement representation as defined in spec. |
| 112 |
// The intoto_statement can contain any type of provenance. The serialized |
| 113 |
// payload of the statement can be stored and signed in the Occurrence's |
| 114 |
// envelope. |
| 115 |
IntotoStatement *InTotoStatement `protobuf:"bytes,4,opt,name=intoto_statement,json=intotoStatement,proto3" json:"intoto_statement,omitempty"` |
| 116 |
// In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa |
| 117 |
// spec, wrapped in an in-toto statement. This allows for direct |
| 118 |
// jsonification of a to-spec in-toto slsa statement with a to-spec |
| 119 |
// slsa provenance. |
| 120 |
InTotoSlsaProvenanceV1 *InTotoSlsaProvenanceV1 `protobuf:"bytes,5,opt,name=in_toto_slsa_provenance_v1,json=inTotoSlsaProvenanceV1,proto3" json:"in_toto_slsa_provenance_v1,omitempty"` |
| 121 |
} |
| 122 |
|
| 123 |
func (x *BuildOccurrence) Reset() { |
| 124 |
*x = BuildOccurrence{} |
| 125 |
if protoimpl.UnsafeEnabled { |
| 126 |
mi := &file_grafeas_v1_build_proto_msgTypes[1] |
| 127 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 128 |
ms.StoreMessageInfo(mi) |
| 129 |
} |
| 130 |
} |
| 131 |
|
| 132 |
func (x *BuildOccurrence) String() string { |
| 133 |
return protoimpl.X.MessageStringOf(x) |
| 134 |
} |
| 135 |
|
| 136 |
func (*BuildOccurrence) ProtoMessage() {} |
| 137 |
|
| 138 |
func (x *BuildOccurrence) ProtoReflect() protoreflect.Message { |
| 139 |
mi := &file_grafeas_v1_build_proto_msgTypes[1] |
| 140 |
if protoimpl.UnsafeEnabled && x != nil { |
| 141 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 142 |
if ms.LoadMessageInfo() == nil { |
| 143 |
ms.StoreMessageInfo(mi) |
| 144 |
} |
| 145 |
return ms |
| 146 |
} |
| 147 |
return mi.MessageOf(x) |
| 148 |
} |
| 149 |
|
| 150 |
// Deprecated: Use BuildOccurrence.ProtoReflect.Descriptor instead. |
| 151 |
func (*BuildOccurrence) Descriptor() ([]byte, []int) { |
| 152 |
return file_grafeas_v1_build_proto_rawDescGZIP(), []int{1} |
| 153 |
} |
| 154 |
|
| 155 |
func (x *BuildOccurrence) GetProvenance() *BuildProvenance { |
| 156 |
if x != nil { |
| 157 |
return x.Provenance |
| 158 |
} |
| 159 |
return nil |
| 160 |
} |
| 161 |
|
| 162 |
func (x *BuildOccurrence) GetProvenanceBytes() string { |
| 163 |
if x != nil { |
| 164 |
return x.ProvenanceBytes |
| 165 |
} |
| 166 |
return "" |
| 167 |
} |
| 168 |
|
| 169 |
func (x *BuildOccurrence) GetIntotoProvenance() *InTotoProvenance { |
| 170 |
if x != nil { |
| 171 |
return x.IntotoProvenance |
| 172 |
} |
| 173 |
return nil |
| 174 |
} |
| 175 |
|
| 176 |
func (x *BuildOccurrence) GetIntotoStatement() *InTotoStatement { |
| 177 |
if x != nil { |
| 178 |
return x.IntotoStatement |
| 179 |
} |
| 180 |
return nil |
| 181 |
} |
| 182 |
|
| 183 |
func (x *BuildOccurrence) GetInTotoSlsaProvenanceV1() *InTotoSlsaProvenanceV1 { |
| 184 |
if x != nil { |
| 185 |
return x.InTotoSlsaProvenanceV1 |
| 186 |
} |
| 187 |
return nil |
| 188 |
} |
| 189 |
|
| 190 |
var File_grafeas_v1_build_proto protoreflect.FileDescriptor |
| 191 |
|
| 192 |
var file_grafeas_v1_build_proto_rawDesc = []byte{ |
| 193 |
0x0a, 0x16, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x75, 0x69, |
| 194 |
0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, |
| 195 |
0x73, 0x2e, 0x76, 0x31, 0x1a, 0x22, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, |
| 196 |
0x2f, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, |
| 197 |
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, |
| 198 |
0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x74, |
| 199 |
0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x72, 0x61, |
| 200 |
0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, |
| 201 |
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x34, 0x0a, 0x09, 0x42, 0x75, 0x69, 0x6c, |
| 202 |
0x64, 0x4e, 0x6f, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, |
| 203 |
0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, |
| 204 |
0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xec, |
| 205 |
0x02, 0x0a, 0x0f, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, |
| 206 |
0x63, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, |
| 207 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, |
| 208 |
0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, |
| 209 |
0x6e, 0x63, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, |
| 210 |
0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x62, 0x79, |
| 211 |
0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x65, |
| 212 |
0x6e, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x49, 0x0a, 0x11, 0x69, 0x6e, |
| 213 |
0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x18, |
| 214 |
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, |
| 215 |
0x76, 0x31, 0x2e, 0x49, 0x6e, 0x54, 0x6f, 0x74, 0x6f, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, |
| 216 |
0x6e, 0x63, 0x65, 0x52, 0x10, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x50, 0x72, 0x6f, 0x76, 0x65, |
| 217 |
0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x46, 0x0a, 0x10, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x5f, |
| 218 |
0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 219 |
0x1b, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x54, |
| 220 |
0x6f, 0x74, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0f, 0x69, 0x6e, |
| 221 |
0x74, 0x6f, 0x74, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x5e, 0x0a, |
| 222 |
0x1a, 0x69, 0x6e, 0x5f, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x73, 0x6c, 0x73, 0x61, 0x5f, 0x70, 0x72, |
| 223 |
0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x76, 0x31, 0x18, 0x05, 0x20, 0x01, 0x28, |
| 224 |
0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, |
| 225 |
0x6e, 0x54, 0x6f, 0x74, 0x6f, 0x53, 0x6c, 0x73, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, |
| 226 |
0x6e, 0x63, 0x65, 0x56, 0x31, 0x52, 0x16, 0x69, 0x6e, 0x54, 0x6f, 0x74, 0x6f, 0x53, 0x6c, 0x73, |
| 227 |
0x61, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x31, 0x42, 0x51, 0x0a, |
| 228 |
0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, |
| 229 |
0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, |
| 230 |
0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, |
| 231 |
0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, |
| 232 |
0x76, 0x31, 0x3b, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41, |
| 233 |
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 234 |
} |
| 235 |
|
| 236 |
var ( |
| 237 |
file_grafeas_v1_build_proto_rawDescOnce sync.Once |
| 238 |
file_grafeas_v1_build_proto_rawDescData = file_grafeas_v1_build_proto_rawDesc |
| 239 |
) |
| 240 |
|
| 241 |
func file_grafeas_v1_build_proto_rawDescGZIP() []byte { |
| 242 |
file_grafeas_v1_build_proto_rawDescOnce.Do(func() { |
| 243 |
file_grafeas_v1_build_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_build_proto_rawDescData) |
| 244 |
}) |
| 245 |
return file_grafeas_v1_build_proto_rawDescData |
| 246 |
} |
| 247 |
|
| 248 |
var file_grafeas_v1_build_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 249 |
var file_grafeas_v1_build_proto_goTypes = []interface{}{ |
| 250 |
(*BuildNote)(nil), // 0: grafeas.v1.BuildNote |
| 251 |
(*BuildOccurrence)(nil), // 1: grafeas.v1.BuildOccurrence |
| 252 |
(*BuildProvenance)(nil), // 2: grafeas.v1.BuildProvenance |
| 253 |
(*InTotoProvenance)(nil), // 3: grafeas.v1.InTotoProvenance |
| 254 |
(*InTotoStatement)(nil), // 4: grafeas.v1.InTotoStatement |
| 255 |
(*InTotoSlsaProvenanceV1)(nil), // 5: grafeas.v1.InTotoSlsaProvenanceV1 |
| 256 |
} |
| 257 |
var file_grafeas_v1_build_proto_depIdxs = []int32{ |
| 258 |
2, // 0: grafeas.v1.BuildOccurrence.provenance:type_name -> grafeas.v1.BuildProvenance |
| 259 |
3, // 1: grafeas.v1.BuildOccurrence.intoto_provenance:type_name -> grafeas.v1.InTotoProvenance |
| 260 |
4, // 2: grafeas.v1.BuildOccurrence.intoto_statement:type_name -> grafeas.v1.InTotoStatement |
| 261 |
5, // 3: grafeas.v1.BuildOccurrence.in_toto_slsa_provenance_v1:type_name -> grafeas.v1.InTotoSlsaProvenanceV1 |
| 262 |
4, // [4:4] is the sub-list for method output_type |
| 263 |
4, // [4:4] is the sub-list for method input_type |
| 264 |
4, // [4:4] is the sub-list for extension type_name |
| 265 |
4, // [4:4] is the sub-list for extension extendee |
| 266 |
0, // [0:4] is the sub-list for field type_name |
| 267 |
} |
| 268 |
|
| 269 |
func init() { file_grafeas_v1_build_proto_init() } |
| 270 |
func file_grafeas_v1_build_proto_init() { |
| 271 |
if File_grafeas_v1_build_proto != nil { |
| 272 |
return |
| 273 |
} |
| 274 |
file_grafeas_v1_intoto_provenance_proto_init() |
| 275 |
file_grafeas_v1_intoto_statement_proto_init() |
| 276 |
file_grafeas_v1_provenance_proto_init() |
| 277 |
if !protoimpl.UnsafeEnabled { |
| 278 |
file_grafeas_v1_build_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 279 |
switch v := v.(*BuildNote); i { |
| 280 |
case 0: |
| 281 |
return &v.state |
| 282 |
case 1: |
| 283 |
return &v.sizeCache |
| 284 |
case 2: |
| 285 |
return &v.unknownFields |
| 286 |
default: |
| 287 |
return nil |
| 288 |
} |
| 289 |
} |
| 290 |
file_grafeas_v1_build_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 291 |
switch v := v.(*BuildOccurrence); i { |
| 292 |
case 0: |
| 293 |
return &v.state |
| 294 |
case 1: |
| 295 |
return &v.sizeCache |
| 296 |
case 2: |
| 297 |
return &v.unknownFields |
| 298 |
default: |
| 299 |
return nil |
| 300 |
} |
| 301 |
} |
| 302 |
} |
| 303 |
type x struct{} |
| 304 |
out := protoimpl.TypeBuilder{ |
| 305 |
File: protoimpl.DescBuilder{ |
| 306 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 307 |
RawDescriptor: file_grafeas_v1_build_proto_rawDesc, |
| 308 |
NumEnums: 0, |
| 309 |
NumMessages: 2, |
| 310 |
NumExtensions: 0, |
| 311 |
NumServices: 0, |
| 312 |
}, |
| 313 |
GoTypes: file_grafeas_v1_build_proto_goTypes, |
| 314 |
DependencyIndexes: file_grafeas_v1_build_proto_depIdxs, |
| 315 |
MessageInfos: file_grafeas_v1_build_proto_msgTypes, |
| 316 |
}.Build() |
| 317 |
File_grafeas_v1_build_proto = out.File |
| 318 |
file_grafeas_v1_build_proto_rawDesc = nil |
| 319 |
file_grafeas_v1_build_proto_goTypes = nil |
| 320 |
file_grafeas_v1_build_proto_depIdxs = nil |
| 321 |
} |