| 1 |
// Copyright 2021 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/compliance.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 |
type ComplianceNote struct { |
| 39 |
state protoimpl.MessageState |
| 40 |
sizeCache protoimpl.SizeCache |
| 41 |
unknownFields protoimpl.UnknownFields |
| 42 |
|
| 43 |
// The title that identifies this compliance check. |
| 44 |
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` |
| 45 |
// A description about this compliance check. |
| 46 |
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` |
| 47 |
// The OS and config versions the benchmark applies to. |
| 48 |
Version []*ComplianceVersion `protobuf:"bytes,3,rep,name=version,proto3" json:"version,omitempty"` |
| 49 |
// A rationale for the existence of this compliance check. |
| 50 |
Rationale string `protobuf:"bytes,4,opt,name=rationale,proto3" json:"rationale,omitempty"` |
| 51 |
// A description of remediation steps if the compliance check fails. |
| 52 |
Remediation string `protobuf:"bytes,5,opt,name=remediation,proto3" json:"remediation,omitempty"` |
| 53 |
// Types that are assignable to ComplianceType: |
| 54 |
// |
| 55 |
// *ComplianceNote_CisBenchmark_ |
| 56 |
ComplianceType isComplianceNote_ComplianceType `protobuf_oneof:"compliance_type"` |
| 57 |
// Serialized scan instructions with a predefined format. |
| 58 |
ScanInstructions []byte `protobuf:"bytes,7,opt,name=scan_instructions,json=scanInstructions,proto3" json:"scan_instructions,omitempty"` |
| 59 |
// Potential impact of the suggested remediation |
| 60 |
// |
| 61 |
// Types that are assignable to PotentialImpact: |
| 62 |
// |
| 63 |
// *ComplianceNote_Impact |
| 64 |
PotentialImpact isComplianceNote_PotentialImpact `protobuf_oneof:"potential_impact"` |
| 65 |
} |
| 66 |
|
| 67 |
func (x *ComplianceNote) Reset() { |
| 68 |
*x = ComplianceNote{} |
| 69 |
if protoimpl.UnsafeEnabled { |
| 70 |
mi := &file_grafeas_v1_compliance_proto_msgTypes[0] |
| 71 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 72 |
ms.StoreMessageInfo(mi) |
| 73 |
} |
| 74 |
} |
| 75 |
|
| 76 |
func (x *ComplianceNote) String() string { |
| 77 |
return protoimpl.X.MessageStringOf(x) |
| 78 |
} |
| 79 |
|
| 80 |
func (*ComplianceNote) ProtoMessage() {} |
| 81 |
|
| 82 |
func (x *ComplianceNote) ProtoReflect() protoreflect.Message { |
| 83 |
mi := &file_grafeas_v1_compliance_proto_msgTypes[0] |
| 84 |
if protoimpl.UnsafeEnabled && x != nil { |
| 85 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 86 |
if ms.LoadMessageInfo() == nil { |
| 87 |
ms.StoreMessageInfo(mi) |
| 88 |
} |
| 89 |
return ms |
| 90 |
} |
| 91 |
return mi.MessageOf(x) |
| 92 |
} |
| 93 |
|
| 94 |
// Deprecated: Use ComplianceNote.ProtoReflect.Descriptor instead. |
| 95 |
func (*ComplianceNote) Descriptor() ([]byte, []int) { |
| 96 |
return file_grafeas_v1_compliance_proto_rawDescGZIP(), []int{0} |
| 97 |
} |
| 98 |
|
| 99 |
func (x *ComplianceNote) GetTitle() string { |
| 100 |
if x != nil { |
| 101 |
return x.Title |
| 102 |
} |
| 103 |
return "" |
| 104 |
} |
| 105 |
|
| 106 |
func (x *ComplianceNote) GetDescription() string { |
| 107 |
if x != nil { |
| 108 |
return x.Description |
| 109 |
} |
| 110 |
return "" |
| 111 |
} |
| 112 |
|
| 113 |
func (x *ComplianceNote) GetVersion() []*ComplianceVersion { |
| 114 |
if x != nil { |
| 115 |
return x.Version |
| 116 |
} |
| 117 |
return nil |
| 118 |
} |
| 119 |
|
| 120 |
func (x *ComplianceNote) GetRationale() string { |
| 121 |
if x != nil { |
| 122 |
return x.Rationale |
| 123 |
} |
| 124 |
return "" |
| 125 |
} |
| 126 |
|
| 127 |
func (x *ComplianceNote) GetRemediation() string { |
| 128 |
if x != nil { |
| 129 |
return x.Remediation |
| 130 |
} |
| 131 |
return "" |
| 132 |
} |
| 133 |
|
| 134 |
func (m *ComplianceNote) GetComplianceType() isComplianceNote_ComplianceType { |
| 135 |
if m != nil { |
| 136 |
return m.ComplianceType |
| 137 |
} |
| 138 |
return nil |
| 139 |
} |
| 140 |
|
| 141 |
func (x *ComplianceNote) GetCisBenchmark() *ComplianceNote_CisBenchmark { |
| 142 |
if x, ok := x.GetComplianceType().(*ComplianceNote_CisBenchmark_); ok { |
| 143 |
return x.CisBenchmark |
| 144 |
} |
| 145 |
return nil |
| 146 |
} |
| 147 |
|
| 148 |
func (x *ComplianceNote) GetScanInstructions() []byte { |
| 149 |
if x != nil { |
| 150 |
return x.ScanInstructions |
| 151 |
} |
| 152 |
return nil |
| 153 |
} |
| 154 |
|
| 155 |
func (m *ComplianceNote) GetPotentialImpact() isComplianceNote_PotentialImpact { |
| 156 |
if m != nil { |
| 157 |
return m.PotentialImpact |
| 158 |
} |
| 159 |
return nil |
| 160 |
} |
| 161 |
|
| 162 |
func (x *ComplianceNote) GetImpact() string { |
| 163 |
if x, ok := x.GetPotentialImpact().(*ComplianceNote_Impact); ok { |
| 164 |
return x.Impact |
| 165 |
} |
| 166 |
return "" |
| 167 |
} |
| 168 |
|
| 169 |
type isComplianceNote_ComplianceType interface { |
| 170 |
isComplianceNote_ComplianceType() |
| 171 |
} |
| 172 |
|
| 173 |
type ComplianceNote_CisBenchmark_ struct { |
| 174 |
CisBenchmark *ComplianceNote_CisBenchmark `protobuf:"bytes,6,opt,name=cis_benchmark,json=cisBenchmark,proto3,oneof"` |
| 175 |
} |
| 176 |
|
| 177 |
func (*ComplianceNote_CisBenchmark_) isComplianceNote_ComplianceType() {} |
| 178 |
|
| 179 |
type isComplianceNote_PotentialImpact interface { |
| 180 |
isComplianceNote_PotentialImpact() |
| 181 |
} |
| 182 |
|
| 183 |
type ComplianceNote_Impact struct { |
| 184 |
Impact string `protobuf:"bytes,8,opt,name=impact,proto3,oneof"` |
| 185 |
} |
| 186 |
|
| 187 |
func (*ComplianceNote_Impact) isComplianceNote_PotentialImpact() {} |
| 188 |
|
| 189 |
// Describes the CIS benchmark version that is applicable to a given OS and |
| 190 |
// os version. |
| 191 |
type ComplianceVersion struct { |
| 192 |
state protoimpl.MessageState |
| 193 |
sizeCache protoimpl.SizeCache |
| 194 |
unknownFields protoimpl.UnknownFields |
| 195 |
|
| 196 |
// The CPE URI (https://cpe.mitre.org/specification/) this benchmark is |
| 197 |
// applicable to. |
| 198 |
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"` |
| 199 |
// The name of the document that defines this benchmark, e.g. "CIS |
| 200 |
// Container-Optimized OS". |
| 201 |
BenchmarkDocument string `protobuf:"bytes,3,opt,name=benchmark_document,json=benchmarkDocument,proto3" json:"benchmark_document,omitempty"` |
| 202 |
// The version of the benchmark. This is set to the version of the OS-specific |
| 203 |
// CIS document the benchmark is defined in. |
| 204 |
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 205 |
} |
| 206 |
|
| 207 |
func (x *ComplianceVersion) Reset() { |
| 208 |
*x = ComplianceVersion{} |
| 209 |
if protoimpl.UnsafeEnabled { |
| 210 |
mi := &file_grafeas_v1_compliance_proto_msgTypes[1] |
| 211 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 212 |
ms.StoreMessageInfo(mi) |
| 213 |
} |
| 214 |
} |
| 215 |
|
| 216 |
func (x *ComplianceVersion) String() string { |
| 217 |
return protoimpl.X.MessageStringOf(x) |
| 218 |
} |
| 219 |
|
| 220 |
func (*ComplianceVersion) ProtoMessage() {} |
| 221 |
|
| 222 |
func (x *ComplianceVersion) ProtoReflect() protoreflect.Message { |
| 223 |
mi := &file_grafeas_v1_compliance_proto_msgTypes[1] |
| 224 |
if protoimpl.UnsafeEnabled && x != nil { |
| 225 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 226 |
if ms.LoadMessageInfo() == nil { |
| 227 |
ms.StoreMessageInfo(mi) |
| 228 |
} |
| 229 |
return ms |
| 230 |
} |
| 231 |
return mi.MessageOf(x) |
| 232 |
} |
| 233 |
|
| 234 |
// Deprecated: Use ComplianceVersion.ProtoReflect.Descriptor instead. |
| 235 |
func (*ComplianceVersion) Descriptor() ([]byte, []int) { |
| 236 |
return file_grafeas_v1_compliance_proto_rawDescGZIP(), []int{1} |
| 237 |
} |
| 238 |
|
| 239 |
func (x *ComplianceVersion) GetCpeUri() string { |
| 240 |
if x != nil { |
| 241 |
return x.CpeUri |
| 242 |
} |
| 243 |
return "" |
| 244 |
} |
| 245 |
|
| 246 |
func (x *ComplianceVersion) GetBenchmarkDocument() string { |
| 247 |
if x != nil { |
| 248 |
return x.BenchmarkDocument |
| 249 |
} |
| 250 |
return "" |
| 251 |
} |
| 252 |
|
| 253 |
func (x *ComplianceVersion) GetVersion() string { |
| 254 |
if x != nil { |
| 255 |
return x.Version |
| 256 |
} |
| 257 |
return "" |
| 258 |
} |
| 259 |
|
| 260 |
// An indication that the compliance checks in the associated ComplianceNote |
| 261 |
// were not satisfied for particular resources or a specified reason. |
| 262 |
type ComplianceOccurrence struct { |
| 263 |
state protoimpl.MessageState |
| 264 |
sizeCache protoimpl.SizeCache |
| 265 |
unknownFields protoimpl.UnknownFields |
| 266 |
|
| 267 |
NonCompliantFiles []*NonCompliantFile `protobuf:"bytes,2,rep,name=non_compliant_files,json=nonCompliantFiles,proto3" json:"non_compliant_files,omitempty"` |
| 268 |
NonComplianceReason string `protobuf:"bytes,3,opt,name=non_compliance_reason,json=nonComplianceReason,proto3" json:"non_compliance_reason,omitempty"` |
| 269 |
// The OS and config version the benchmark was run on. |
| 270 |
Version *ComplianceVersion `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` |
| 271 |
} |
| 272 |
|
| 273 |
func (x *ComplianceOccurrence) Reset() { |
| 274 |
*x = ComplianceOccurrence{} |
| 275 |
if protoimpl.UnsafeEnabled { |
| 276 |
mi := &file_grafeas_v1_compliance_proto_msgTypes[2] |
| 277 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 278 |
ms.StoreMessageInfo(mi) |
| 279 |
} |
| 280 |
} |
| 281 |
|
| 282 |
func (x *ComplianceOccurrence) String() string { |
| 283 |
return protoimpl.X.MessageStringOf(x) |
| 284 |
} |
| 285 |
|
| 286 |
func (*ComplianceOccurrence) ProtoMessage() {} |
| 287 |
|
| 288 |
func (x *ComplianceOccurrence) ProtoReflect() protoreflect.Message { |
| 289 |
mi := &file_grafeas_v1_compliance_proto_msgTypes[2] |
| 290 |
if protoimpl.UnsafeEnabled && x != nil { |
| 291 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 292 |
if ms.LoadMessageInfo() == nil { |
| 293 |
ms.StoreMessageInfo(mi) |
| 294 |
} |
| 295 |
return ms |
| 296 |
} |
| 297 |
return mi.MessageOf(x) |
| 298 |
} |
| 299 |
|
| 300 |
// Deprecated: Use ComplianceOccurrence.ProtoReflect.Descriptor instead. |
| 301 |
func (*ComplianceOccurrence) Descriptor() ([]byte, []int) { |
| 302 |
return file_grafeas_v1_compliance_proto_rawDescGZIP(), []int{2} |
| 303 |
} |
| 304 |
|
| 305 |
func (x *ComplianceOccurrence) GetNonCompliantFiles() []*NonCompliantFile { |
| 306 |
if x != nil { |
| 307 |
return x.NonCompliantFiles |
| 308 |
} |
| 309 |
return nil |
| 310 |
} |
| 311 |
|
| 312 |
func (x *ComplianceOccurrence) GetNonComplianceReason() string { |
| 313 |
if x != nil { |
| 314 |
return x.NonComplianceReason |
| 315 |
} |
| 316 |
return "" |
| 317 |
} |
| 318 |
|
| 319 |
func (x *ComplianceOccurrence) GetVersion() *ComplianceVersion { |
| 320 |
if x != nil { |
| 321 |
return x.Version |
| 322 |
} |
| 323 |
return nil |
| 324 |
} |
| 325 |
|
| 326 |
// Details about files that caused a compliance check to fail. |
| 327 |
type NonCompliantFile struct { |
| 328 |
state protoimpl.MessageState |
| 329 |
sizeCache protoimpl.SizeCache |
| 330 |
unknownFields protoimpl.UnknownFields |
| 331 |
|
| 332 |
// Empty if `display_command` is set. |
| 333 |
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` |
| 334 |
// Command to display the non-compliant files. |
| 335 |
DisplayCommand string `protobuf:"bytes,2,opt,name=display_command,json=displayCommand,proto3" json:"display_command,omitempty"` |
| 336 |
// Explains why a file is non compliant for a CIS check. |
| 337 |
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` |
| 338 |
} |
| 339 |
|
| 340 |
func (x *NonCompliantFile) Reset() { |
| 341 |
*x = NonCompliantFile{} |
| 342 |
if protoimpl.UnsafeEnabled { |
| 343 |
mi := &file_grafeas_v1_compliance_proto_msgTypes[3] |
| 344 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 345 |
ms.StoreMessageInfo(mi) |
| 346 |
} |
| 347 |
} |
| 348 |
|
| 349 |
func (x *NonCompliantFile) String() string { |
| 350 |
return protoimpl.X.MessageStringOf(x) |
| 351 |
} |
| 352 |
|
| 353 |
func (*NonCompliantFile) ProtoMessage() {} |
| 354 |
|
| 355 |
func (x *NonCompliantFile) ProtoReflect() protoreflect.Message { |
| 356 |
mi := &file_grafeas_v1_compliance_proto_msgTypes[3] |
| 357 |
if protoimpl.UnsafeEnabled && x != nil { |
| 358 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 359 |
if ms.LoadMessageInfo() == nil { |
| 360 |
ms.StoreMessageInfo(mi) |
| 361 |
} |
| 362 |
return ms |
| 363 |
} |
| 364 |
return mi.MessageOf(x) |
| 365 |
} |
| 366 |
|
| 367 |
// Deprecated: Use NonCompliantFile.ProtoReflect.Descriptor instead. |
| 368 |
func (*NonCompliantFile) Descriptor() ([]byte, []int) { |
| 369 |
return file_grafeas_v1_compliance_proto_rawDescGZIP(), []int{3} |
| 370 |
} |
| 371 |
|
| 372 |
func (x *NonCompliantFile) GetPath() string { |
| 373 |
if x != nil { |
| 374 |
return x.Path |
| 375 |
} |
| 376 |
return "" |
| 377 |
} |
| 378 |
|
| 379 |
func (x *NonCompliantFile) GetDisplayCommand() string { |
| 380 |
if x != nil { |
| 381 |
return x.DisplayCommand |
| 382 |
} |
| 383 |
return "" |
| 384 |
} |
| 385 |
|
| 386 |
func (x *NonCompliantFile) GetReason() string { |
| 387 |
if x != nil { |
| 388 |
return x.Reason |
| 389 |
} |
| 390 |
return "" |
| 391 |
} |
| 392 |
|
| 393 |
// A compliance check that is a CIS benchmark. |
| 394 |
type ComplianceNote_CisBenchmark struct { |
| 395 |
state protoimpl.MessageState |
| 396 |
sizeCache protoimpl.SizeCache |
| 397 |
unknownFields protoimpl.UnknownFields |
| 398 |
|
| 399 |
ProfileLevel int32 `protobuf:"varint,1,opt,name=profile_level,json=profileLevel,proto3" json:"profile_level,omitempty"` |
| 400 |
Severity Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1.Severity" json:"severity,omitempty"` |
| 401 |
} |
| 402 |
|
| 403 |
func (x *ComplianceNote_CisBenchmark) Reset() { |
| 404 |
*x = ComplianceNote_CisBenchmark{} |
| 405 |
if protoimpl.UnsafeEnabled { |
| 406 |
mi := &file_grafeas_v1_compliance_proto_msgTypes[4] |
| 407 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 408 |
ms.StoreMessageInfo(mi) |
| 409 |
} |
| 410 |
} |
| 411 |
|
| 412 |
func (x *ComplianceNote_CisBenchmark) String() string { |
| 413 |
return protoimpl.X.MessageStringOf(x) |
| 414 |
} |
| 415 |
|
| 416 |
func (*ComplianceNote_CisBenchmark) ProtoMessage() {} |
| 417 |
|
| 418 |
func (x *ComplianceNote_CisBenchmark) ProtoReflect() protoreflect.Message { |
| 419 |
mi := &file_grafeas_v1_compliance_proto_msgTypes[4] |
| 420 |
if protoimpl.UnsafeEnabled && x != nil { |
| 421 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 422 |
if ms.LoadMessageInfo() == nil { |
| 423 |
ms.StoreMessageInfo(mi) |
| 424 |
} |
| 425 |
return ms |
| 426 |
} |
| 427 |
return mi.MessageOf(x) |
| 428 |
} |
| 429 |
|
| 430 |
// Deprecated: Use ComplianceNote_CisBenchmark.ProtoReflect.Descriptor instead. |
| 431 |
func (*ComplianceNote_CisBenchmark) Descriptor() ([]byte, []int) { |
| 432 |
return file_grafeas_v1_compliance_proto_rawDescGZIP(), []int{0, 0} |
| 433 |
} |
| 434 |
|
| 435 |
func (x *ComplianceNote_CisBenchmark) GetProfileLevel() int32 { |
| 436 |
if x != nil { |
| 437 |
return x.ProfileLevel |
| 438 |
} |
| 439 |
return 0 |
| 440 |
} |
| 441 |
|
| 442 |
func (x *ComplianceNote_CisBenchmark) GetSeverity() Severity { |
| 443 |
if x != nil { |
| 444 |
return x.Severity |
| 445 |
} |
| 446 |
return Severity_SEVERITY_UNSPECIFIED |
| 447 |
} |
| 448 |
|
| 449 |
var File_grafeas_v1_compliance_proto protoreflect.FileDescriptor |
| 450 |
|
| 451 |
var file_grafeas_v1_compliance_proto_rawDesc = []byte{ |
| 452 |
0x0a, 0x1b, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, |
| 453 |
0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, |
| 454 |
0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x72, 0x61, 0x66, 0x65, |
| 455 |
0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, |
| 456 |
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, |
| 457 |
0x6e, 0x63, 0x65, 0x4e, 0x6f, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, |
| 458 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, |
| 459 |
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, |
| 460 |
0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, |
| 461 |
0x37, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, |
| 462 |
0x32, 0x1d, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, |
| 463 |
0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, |
| 464 |
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x61, 0x74, 0x69, |
| 465 |
0x6f, 0x6e, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x61, 0x74, |
| 466 |
0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x65, 0x64, 0x69, |
| 467 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x6d, |
| 468 |
0x65, 0x64, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x0d, 0x63, 0x69, 0x73, 0x5f, |
| 469 |
0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 470 |
0x27, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, |
| 471 |
0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x6f, 0x74, 0x65, 0x2e, 0x43, 0x69, 0x73, 0x42, |
| 472 |
0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x69, 0x73, 0x42, |
| 473 |
0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x63, 0x61, 0x6e, |
| 474 |
0x5f, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, |
| 475 |
0x01, 0x28, 0x0c, 0x52, 0x10, 0x73, 0x63, 0x61, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, |
| 476 |
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x06, 0x69, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x18, |
| 477 |
0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x69, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x1a, |
| 478 |
0x65, 0x0a, 0x0c, 0x43, 0x69, 0x73, 0x42, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x12, |
| 479 |
0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, |
| 480 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x4c, |
| 481 |
0x65, 0x76, 0x65, 0x6c, 0x12, 0x30, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, |
| 482 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, |
| 483 |
0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, |
| 484 |
0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x42, 0x11, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x69, |
| 485 |
0x61, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x70, 0x6f, 0x74, |
| 486 |
0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x69, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x22, 0x75, 0x0a, |
| 487 |
0x11, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, |
| 488 |
0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, |
| 489 |
0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x70, 0x65, 0x55, 0x72, 0x69, 0x12, 0x2d, 0x0a, 0x12, 0x62, |
| 490 |
0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, |
| 491 |
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x62, 0x65, 0x6e, 0x63, 0x68, 0x6d, 0x61, |
| 492 |
0x72, 0x6b, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, |
| 493 |
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, |
| 494 |
0x73, 0x69, 0x6f, 0x6e, 0x22, 0xd1, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, |
| 495 |
0x6e, 0x63, 0x65, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x4c, 0x0a, |
| 496 |
0x13, 0x6e, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x74, 0x5f, 0x66, |
| 497 |
0x69, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x61, |
| 498 |
0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, |
| 499 |
0x69, 0x61, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x11, 0x6e, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, |
| 500 |
0x70, 0x6c, 0x69, 0x61, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x6e, |
| 501 |
0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, |
| 502 |
0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6e, 0x6f, 0x6e, 0x43, |
| 503 |
0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, |
| 504 |
0x37, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, |
| 505 |
0x32, 0x1d, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, |
| 506 |
0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, |
| 507 |
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x67, 0x0a, 0x10, 0x4e, 0x6f, 0x6e, 0x43, |
| 508 |
0x6f, 0x6d, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, |
| 509 |
0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, |
| 510 |
0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, |
| 511 |
0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x70, 0x6c, |
| 512 |
0x61, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, |
| 513 |
0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, |
| 514 |
0x6e, 0x42, 0x51, 0x0a, 0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, |
| 515 |
0x76, 0x31, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, |
| 516 |
0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 517 |
0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x61, 0x66, |
| 518 |
0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0xa2, 0x02, |
| 519 |
0x03, 0x47, 0x52, 0x41, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 520 |
} |
| 521 |
|
| 522 |
var ( |
| 523 |
file_grafeas_v1_compliance_proto_rawDescOnce sync.Once |
| 524 |
file_grafeas_v1_compliance_proto_rawDescData = file_grafeas_v1_compliance_proto_rawDesc |
| 525 |
) |
| 526 |
|
| 527 |
func file_grafeas_v1_compliance_proto_rawDescGZIP() []byte { |
| 528 |
file_grafeas_v1_compliance_proto_rawDescOnce.Do(func() { |
| 529 |
file_grafeas_v1_compliance_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_compliance_proto_rawDescData) |
| 530 |
}) |
| 531 |
return file_grafeas_v1_compliance_proto_rawDescData |
| 532 |
} |
| 533 |
|
| 534 |
var file_grafeas_v1_compliance_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| 535 |
var file_grafeas_v1_compliance_proto_goTypes = []interface{}{ |
| 536 |
(*ComplianceNote)(nil), // 0: grafeas.v1.ComplianceNote |
| 537 |
(*ComplianceVersion)(nil), // 1: grafeas.v1.ComplianceVersion |
| 538 |
(*ComplianceOccurrence)(nil), // 2: grafeas.v1.ComplianceOccurrence |
| 539 |
(*NonCompliantFile)(nil), // 3: grafeas.v1.NonCompliantFile |
| 540 |
(*ComplianceNote_CisBenchmark)(nil), // 4: grafeas.v1.ComplianceNote.CisBenchmark |
| 541 |
(Severity)(0), // 5: grafeas.v1.Severity |
| 542 |
} |
| 543 |
var file_grafeas_v1_compliance_proto_depIdxs = []int32{ |
| 544 |
1, // 0: grafeas.v1.ComplianceNote.version:type_name -> grafeas.v1.ComplianceVersion |
| 545 |
4, // 1: grafeas.v1.ComplianceNote.cis_benchmark:type_name -> grafeas.v1.ComplianceNote.CisBenchmark |
| 546 |
3, // 2: grafeas.v1.ComplianceOccurrence.non_compliant_files:type_name -> grafeas.v1.NonCompliantFile |
| 547 |
1, // 3: grafeas.v1.ComplianceOccurrence.version:type_name -> grafeas.v1.ComplianceVersion |
| 548 |
5, // 4: grafeas.v1.ComplianceNote.CisBenchmark.severity:type_name -> grafeas.v1.Severity |
| 549 |
5, // [5:5] is the sub-list for method output_type |
| 550 |
5, // [5:5] is the sub-list for method input_type |
| 551 |
5, // [5:5] is the sub-list for extension type_name |
| 552 |
5, // [5:5] is the sub-list for extension extendee |
| 553 |
0, // [0:5] is the sub-list for field type_name |
| 554 |
} |
| 555 |
|
| 556 |
func init() { file_grafeas_v1_compliance_proto_init() } |
| 557 |
func file_grafeas_v1_compliance_proto_init() { |
| 558 |
if File_grafeas_v1_compliance_proto != nil { |
| 559 |
return |
| 560 |
} |
| 561 |
file_grafeas_v1_severity_proto_init() |
| 562 |
if !protoimpl.UnsafeEnabled { |
| 563 |
file_grafeas_v1_compliance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 564 |
switch v := v.(*ComplianceNote); i { |
| 565 |
case 0: |
| 566 |
return &v.state |
| 567 |
case 1: |
| 568 |
return &v.sizeCache |
| 569 |
case 2: |
| 570 |
return &v.unknownFields |
| 571 |
default: |
| 572 |
return nil |
| 573 |
} |
| 574 |
} |
| 575 |
file_grafeas_v1_compliance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 576 |
switch v := v.(*ComplianceVersion); i { |
| 577 |
case 0: |
| 578 |
return &v.state |
| 579 |
case 1: |
| 580 |
return &v.sizeCache |
| 581 |
case 2: |
| 582 |
return &v.unknownFields |
| 583 |
default: |
| 584 |
return nil |
| 585 |
} |
| 586 |
} |
| 587 |
file_grafeas_v1_compliance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 588 |
switch v := v.(*ComplianceOccurrence); i { |
| 589 |
case 0: |
| 590 |
return &v.state |
| 591 |
case 1: |
| 592 |
return &v.sizeCache |
| 593 |
case 2: |
| 594 |
return &v.unknownFields |
| 595 |
default: |
| 596 |
return nil |
| 597 |
} |
| 598 |
} |
| 599 |
file_grafeas_v1_compliance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 600 |
switch v := v.(*NonCompliantFile); i { |
| 601 |
case 0: |
| 602 |
return &v.state |
| 603 |
case 1: |
| 604 |
return &v.sizeCache |
| 605 |
case 2: |
| 606 |
return &v.unknownFields |
| 607 |
default: |
| 608 |
return nil |
| 609 |
} |
| 610 |
} |
| 611 |
file_grafeas_v1_compliance_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 612 |
switch v := v.(*ComplianceNote_CisBenchmark); i { |
| 613 |
case 0: |
| 614 |
return &v.state |
| 615 |
case 1: |
| 616 |
return &v.sizeCache |
| 617 |
case 2: |
| 618 |
return &v.unknownFields |
| 619 |
default: |
| 620 |
return nil |
| 621 |
} |
| 622 |
} |
| 623 |
} |
| 624 |
file_grafeas_v1_compliance_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| 625 |
(*ComplianceNote_CisBenchmark_)(nil), |
| 626 |
(*ComplianceNote_Impact)(nil), |
| 627 |
} |
| 628 |
type x struct{} |
| 629 |
out := protoimpl.TypeBuilder{ |
| 630 |
File: protoimpl.DescBuilder{ |
| 631 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 632 |
RawDescriptor: file_grafeas_v1_compliance_proto_rawDesc, |
| 633 |
NumEnums: 0, |
| 634 |
NumMessages: 5, |
| 635 |
NumExtensions: 0, |
| 636 |
NumServices: 0, |
| 637 |
}, |
| 638 |
GoTypes: file_grafeas_v1_compliance_proto_goTypes, |
| 639 |
DependencyIndexes: file_grafeas_v1_compliance_proto_depIdxs, |
| 640 |
MessageInfos: file_grafeas_v1_compliance_proto_msgTypes, |
| 641 |
}.Build() |
| 642 |
File_grafeas_v1_compliance_proto = out.File |
| 643 |
file_grafeas_v1_compliance_proto_rawDesc = nil |
| 644 |
file_grafeas_v1_compliance_proto_goTypes = nil |
| 645 |
file_grafeas_v1_compliance_proto_depIdxs = nil |
| 646 |
} |