From a3fd544955316c9ccd7f84b28cf68b87e4147001 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Fri, 9 Aug 2024 09:36:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20update=20proto=20generated=20fil?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli/reporter/cnspec_report.pb.go | 12 +-- internal/bundle/bundle.yac.go | 1 + policy/cnspec_policy.pb.go | 140 +++++++++++++++---------------- policy/scan/scan.pb.go | 26 +++--- 4 files changed, 90 insertions(+), 89 deletions(-) diff --git a/cli/reporter/cnspec_report.pb.go b/cli/reporter/cnspec_report.pb.go index f632e644..9d24cbcf 100644 --- a/cli/reporter/cnspec_report.pb.go +++ b/cli/reporter/cnspec_report.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v4.25.3 +// protoc-gen-go v1.34.2 +// protoc v5.27.3 // source: cnspec_report.proto package reporter @@ -278,7 +278,7 @@ func file_cnspec_report_proto_rawDescGZIP() []byte { } var file_cnspec_report_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_cnspec_report_proto_goTypes = []interface{}{ +var file_cnspec_report_proto_goTypes = []any{ (*Report)(nil), // 0: mondoo.report.cnspec.v1.Report (*ScoreValues)(nil), // 1: mondoo.report.cnspec.v1.ScoreValues (*ScoreValue)(nil), // 2: mondoo.report.cnspec.v1.ScoreValue @@ -313,7 +313,7 @@ func file_cnspec_report_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_cnspec_report_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_report_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Report); i { case 0: return &v.state @@ -325,7 +325,7 @@ func file_cnspec_report_proto_init() { return nil } } - file_cnspec_report_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_report_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ScoreValues); i { case 0: return &v.state @@ -337,7 +337,7 @@ func file_cnspec_report_proto_init() { return nil } } - file_cnspec_report_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_report_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ScoreValue); i { case 0: return &v.state diff --git a/internal/bundle/bundle.yac.go b/internal/bundle/bundle.yac.go index 5867741c..370a75d3 100644 --- a/internal/bundle/bundle.yac.go +++ b/internal/bundle/bundle.yac.go @@ -1609,6 +1609,7 @@ type RiskFactor struct { Software []*SoftwareSelector `protobuf:"bytes,73,rep,name=software,proto3" json:"software,omitempty" yaml:"software,omitempty"` Resources []*ResourceSelector `protobuf:"bytes,74,rep,name=resources,proto3" json:"resources,omitempty" yaml:"resources,omitempty"` Indicator string `protobuf:"bytes,75,opt,name=indicator,proto3" json:"indicator,omitempty" yaml:"indicator,omitempty"` + Action Action `protobuf:"varint,77,opt,name=action,proto3,enum=cnquery.explorer.Action" json:"action,omitempty" yaml:"action,omitempty"` Uid string `protobuf:"bytes,36,opt,name=uid,proto3" json:"uid,omitempty" yaml:"uid,omitempty"` Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty" yaml:"mrn,omitempty"` Title string `protobuf:"bytes,24,opt,name=title,proto3" json:"title,omitempty" yaml:"title,omitempty"` diff --git a/policy/cnspec_policy.pb.go b/policy/cnspec_policy.pb.go index 4f156947..475745d7 100644 --- a/policy/cnspec_policy.pb.go +++ b/policy/cnspec_policy.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.27.1 +// protoc-gen-go v1.34.2 +// protoc v5.27.3 // source: cnspec_policy.proto package policy @@ -7519,7 +7519,7 @@ func file_cnspec_policy_proto_rawDescGZIP() []byte { var file_cnspec_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 9) var file_cnspec_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 93) -var file_cnspec_policy_proto_goTypes = []interface{}{ +var file_cnspec_policy_proto_goTypes = []any{ (GroupType)(0), // 0: cnspec.policy.v1.GroupType (QueryAction)(0), // 1: cnspec.policy.v1.QueryAction (ScopeType)(0), // 2: cnspec.policy.v1.ScopeType @@ -7859,7 +7859,7 @@ func file_cnspec_policy_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_cnspec_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*PolicyGroup); i { case 0: return &v.state @@ -7871,7 +7871,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*PolicyRef); i { case 0: return &v.state @@ -7883,7 +7883,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Policy); i { case 0: return &v.state @@ -7895,7 +7895,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*Policies); i { case 0: return &v.state @@ -7907,7 +7907,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*QueryCounts); i { case 0: return &v.state @@ -7919,7 +7919,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*Bundle); i { case 0: return &v.state @@ -7931,7 +7931,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*SoftwareSelector); i { case 0: return &v.state @@ -7943,7 +7943,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ResourceSelector); i { case 0: return &v.state @@ -7955,7 +7955,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*RiskMagnitude); i { case 0: return &v.state @@ -7967,7 +7967,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*RiskFactor); i { case 0: return &v.state @@ -7979,7 +7979,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*RiskFactorDocs); i { case 0: return &v.state @@ -7991,7 +7991,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*PolicyGroupDocs); i { case 0: return &v.state @@ -8003,7 +8003,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*PolicyDocs); i { case 0: return &v.state @@ -8015,7 +8015,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*Framework); i { case 0: return &v.state @@ -8027,7 +8027,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*Frameworks); i { case 0: return &v.state @@ -8039,7 +8039,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*FrameworkGroup); i { case 0: return &v.state @@ -8051,7 +8051,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*FrameworkRef); i { case 0: return &v.state @@ -8063,7 +8063,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*Evidence); i { case 0: return &v.state @@ -8075,7 +8075,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*Control); i { case 0: return &v.state @@ -8087,7 +8087,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*FrameworkMap); i { case 0: return &v.state @@ -8099,7 +8099,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*ControlMap); i { case 0: return &v.state @@ -8111,7 +8111,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*ControlDocs); i { case 0: return &v.state @@ -8123,7 +8123,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*ControlRef); i { case 0: return &v.state @@ -8135,7 +8135,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*Asset); i { case 0: return &v.state @@ -8147,7 +8147,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*ResolvedPolicy); i { case 0: return &v.state @@ -8159,7 +8159,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*ExecutionJob); i { case 0: return &v.state @@ -8171,7 +8171,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*ExecutionQuery); i { case 0: return &v.state @@ -8183,7 +8183,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*CollectorJob); i { case 0: return &v.state @@ -8195,7 +8195,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*StringArray); i { case 0: return &v.state @@ -8207,7 +8207,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*DataQueryInfo); i { case 0: return &v.state @@ -8219,7 +8219,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*ReportingJob); i { case 0: return &v.state @@ -8231,7 +8231,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*Report); i { case 0: return &v.state @@ -8243,7 +8243,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*Reports); i { case 0: return &v.state @@ -8255,7 +8255,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[33].Exporter = func(v any, i int) any { switch v := v.(*ReportCollection); i { case 0: return &v.state @@ -8267,7 +8267,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[34].Exporter = func(v any, i int) any { switch v := v.(*FrameworkReport); i { case 0: return &v.state @@ -8279,7 +8279,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[35].Exporter = func(v any, i int) any { switch v := v.(*ControlScore); i { case 0: return &v.state @@ -8291,7 +8291,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[36].Exporter = func(v any, i int) any { switch v := v.(*Cvss); i { case 0: return &v.state @@ -8303,7 +8303,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[37].Exporter = func(v any, i int) any { switch v := v.(*CvssStats); i { case 0: return &v.state @@ -8315,7 +8315,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[38].Exporter = func(v any, i int) any { switch v := v.(*Score); i { case 0: return &v.state @@ -8327,7 +8327,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[39].Exporter = func(v any, i int) any { switch v := v.(*ScoreDelta); i { case 0: return &v.state @@ -8339,7 +8339,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[40].Exporter = func(v any, i int) any { switch v := v.(*ScoredRiskFactor); i { case 0: return &v.state @@ -8351,7 +8351,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[41].Exporter = func(v any, i int) any { switch v := v.(*ScoredRiskFactors); i { case 0: return &v.state @@ -8363,7 +8363,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[42].Exporter = func(v any, i int) any { switch v := v.(*RiskFactorStats); i { case 0: return &v.state @@ -8375,7 +8375,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[43].Exporter = func(v any, i int) any { switch v := v.(*RiskFactorsStats); i { case 0: return &v.state @@ -8387,7 +8387,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[44].Exporter = func(v any, i int) any { switch v := v.(*Stats); i { case 0: return &v.state @@ -8399,7 +8399,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[45].Exporter = func(v any, i int) any { switch v := v.(*ScoreDistribution); i { case 0: return &v.state @@ -8411,7 +8411,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[46].Exporter = func(v any, i int) any { switch v := v.(*ScoreStats); i { case 0: return &v.state @@ -8423,7 +8423,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[47].Exporter = func(v any, i int) any { switch v := v.(*AssetFindingsStats); i { case 0: return &v.state @@ -8435,7 +8435,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[48].Exporter = func(v any, i int) any { switch v := v.(*Empty); i { case 0: return &v.state @@ -8447,7 +8447,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[49].Exporter = func(v any, i int) any { switch v := v.(*Mrn); i { case 0: return &v.state @@ -8459,7 +8459,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[50].Exporter = func(v any, i int) any { switch v := v.(*Mqueries); i { case 0: return &v.state @@ -8471,7 +8471,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[51].Exporter = func(v any, i int) any { switch v := v.(*ListReq); i { case 0: return &v.state @@ -8483,7 +8483,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[52].Exporter = func(v any, i int) any { switch v := v.(*DefaultPoliciesReq); i { case 0: return &v.state @@ -8495,7 +8495,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[53].Exporter = func(v any, i int) any { switch v := v.(*URLs); i { case 0: return &v.state @@ -8507,7 +8507,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[54].Exporter = func(v any, i int) any { switch v := v.(*PolicyAssignment); i { case 0: return &v.state @@ -8519,7 +8519,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[55].Exporter = func(v any, i int) any { switch v := v.(*PolicyMutationDelta); i { case 0: return &v.state @@ -8531,7 +8531,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[56].Exporter = func(v any, i int) any { switch v := v.(*PolicyDelta); i { case 0: return &v.state @@ -8543,7 +8543,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[57].Exporter = func(v any, i int) any { switch v := v.(*ResolveReq); i { case 0: return &v.state @@ -8555,7 +8555,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[58].Exporter = func(v any, i int) any { switch v := v.(*UpdateAssetJobsReq); i { case 0: return &v.state @@ -8567,7 +8567,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[59].Exporter = func(v any, i int) any { switch v := v.(*StoreResultsReq); i { case 0: return &v.state @@ -8579,7 +8579,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[60].Exporter = func(v any, i int) any { switch v := v.(*EntityScoreReq); i { case 0: return &v.state @@ -8591,7 +8591,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[61].Exporter = func(v any, i int) any { switch v := v.(*SynchronizeAssetsReq); i { case 0: return &v.state @@ -8603,7 +8603,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[62].Exporter = func(v any, i int) any { switch v := v.(*SynchronizeAssetsRespAssetDetail); i { case 0: return &v.state @@ -8615,7 +8615,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[63].Exporter = func(v any, i int) any { switch v := v.(*SynchronizeAssetsResp); i { case 0: return &v.state @@ -8627,7 +8627,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[64].Exporter = func(v any, i int) any { switch v := v.(*PurgeAssetsRequest); i { case 0: return &v.state @@ -8639,7 +8639,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[65].Exporter = func(v any, i int) any { switch v := v.(*DateFilter); i { case 0: return &v.state @@ -8651,7 +8651,7 @@ func file_cnspec_policy_proto_init() { return nil } } - file_cnspec_policy_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + file_cnspec_policy_proto_msgTypes[66].Exporter = func(v any, i int) any { switch v := v.(*PurgeAssetsConfirmation); i { case 0: return &v.state diff --git a/policy/scan/scan.pb.go b/policy/scan/scan.pb.go index 95d0b934..632e335b 100644 --- a/policy/scan/scan.pb.go +++ b/policy/scan/scan.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 -// protoc v5.27.0 +// protoc-gen-go v1.34.2 +// protoc v5.27.3 // source: scan.proto package scan @@ -931,7 +931,7 @@ func file_scan_proto_rawDescGZIP() []byte { var file_scan_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_scan_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_scan_proto_goTypes = []interface{}{ +var file_scan_proto_goTypes = []any{ (ReportType)(0), // 0: cnspec.policy.scan.ReportType (HealthCheckResponse_ServingStatus)(0), // 1: cnspec.policy.scan.HealthCheckResponse.ServingStatus (*Empty)(nil), // 2: cnspec.policy.scan.Empty @@ -997,7 +997,7 @@ func file_scan_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_scan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_scan_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Empty); i { case 0: return &v.state @@ -1009,7 +1009,7 @@ func file_scan_proto_init() { return nil } } - file_scan_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_scan_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Job); i { case 0: return &v.state @@ -1021,7 +1021,7 @@ func file_scan_proto_init() { return nil } } - file_scan_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_scan_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*AdmissionReviewJob); i { case 0: return &v.state @@ -1033,7 +1033,7 @@ func file_scan_proto_init() { return nil } } - file_scan_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_scan_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*GarbageCollectOptions); i { case 0: return &v.state @@ -1045,7 +1045,7 @@ func file_scan_proto_init() { return nil } } - file_scan_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_scan_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*File); i { case 0: return &v.state @@ -1057,7 +1057,7 @@ func file_scan_proto_init() { return nil } } - file_scan_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_scan_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ScanResult); i { case 0: return &v.state @@ -1069,7 +1069,7 @@ func file_scan_proto_init() { return nil } } - file_scan_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_scan_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ErrorCollection); i { case 0: return &v.state @@ -1081,7 +1081,7 @@ func file_scan_proto_init() { return nil } } - file_scan_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_scan_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*HealthCheckRequest); i { case 0: return &v.state @@ -1093,7 +1093,7 @@ func file_scan_proto_init() { return nil } } - file_scan_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_scan_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*HealthCheckResponse); i { case 0: return &v.state @@ -1106,7 +1106,7 @@ func file_scan_proto_init() { } } } - file_scan_proto_msgTypes[5].OneofWrappers = []interface{}{ + file_scan_proto_msgTypes[5].OneofWrappers = []any{ (*ScanResult_Full)(nil), (*ScanResult_Errors)(nil), (*ScanResult_None)(nil),