From 042b60af2ca8f0ffd7a4c245d42cff6ff9d5bc73 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:57:58 +0000 Subject: [PATCH] build(deps): bump google.golang.org/grpc/cmd/protoc-gen-go-grpc from 1.1.0 to 1.4.0 (#1579) --- .../api/v1/image_scan_service_grpc.pb.go | 45 ++++++++++++++----- .../api/v1/metadata_service_grpc.pb.go | 17 +++++-- .../api/v1/node_inventory_service_grpc.pb.go | 23 ++++++++-- .../api/v1/node_scan_service_grpc.pb.go | 21 +++++++-- .../v1/orchestrator_scan_service_grpc.pb.go | 33 ++++++++++---- .../scanner/api/v1/ping_service_grpc.pb.go | 17 +++++-- go.mod | 2 +- go.sum | 3 +- 8 files changed, 123 insertions(+), 38 deletions(-) diff --git a/generated/scanner/api/v1/image_scan_service_grpc.pb.go b/generated/scanner/api/v1/image_scan_service_grpc.pb.go index 6d6840bbd..4b2767b08 100644 --- a/generated/scanner/api/v1/image_scan_service_grpc.pb.go +++ b/generated/scanner/api/v1/image_scan_service_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.4.0 +// - protoc v3.21.4 +// source: scanner/api/v1/image_scan_service.proto package scannerV1 @@ -11,12 +15,22 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.62.0 or later. +const _ = grpc.SupportPackageIsVersion8 + +const ( + ImageScanService_ScanImage_FullMethodName = "/scannerV1.ImageScanService/ScanImage" + ImageScanService_GetImageScan_FullMethodName = "/scannerV1.ImageScanService/GetImageScan" + ImageScanService_GetImageComponents_FullMethodName = "/scannerV1.ImageScanService/GetImageComponents" + ImageScanService_GetImageVulnerabilities_FullMethodName = "/scannerV1.ImageScanService/GetImageVulnerabilities" + ImageScanService_GetLanguageLevelComponents_FullMethodName = "/scannerV1.ImageScanService/GetLanguageLevelComponents" +) // ImageScanServiceClient is the client API for ImageScanService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ImageScanService APIs can be used to scan images. type ImageScanServiceClient interface { ScanImage(ctx context.Context, in *ScanImageRequest, opts ...grpc.CallOption) (*ScanImageResponse, error) GetImageScan(ctx context.Context, in *GetImageScanRequest, opts ...grpc.CallOption) (*GetImageScanResponse, error) @@ -34,8 +48,9 @@ func NewImageScanServiceClient(cc grpc.ClientConnInterface) ImageScanServiceClie } func (c *imageScanServiceClient) ScanImage(ctx context.Context, in *ScanImageRequest, opts ...grpc.CallOption) (*ScanImageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ScanImageResponse) - err := c.cc.Invoke(ctx, "/scannerV1.ImageScanService/ScanImage", in, out, opts...) + err := c.cc.Invoke(ctx, ImageScanService_ScanImage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -43,8 +58,9 @@ func (c *imageScanServiceClient) ScanImage(ctx context.Context, in *ScanImageReq } func (c *imageScanServiceClient) GetImageScan(ctx context.Context, in *GetImageScanRequest, opts ...grpc.CallOption) (*GetImageScanResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetImageScanResponse) - err := c.cc.Invoke(ctx, "/scannerV1.ImageScanService/GetImageScan", in, out, opts...) + err := c.cc.Invoke(ctx, ImageScanService_GetImageScan_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -52,8 +68,9 @@ func (c *imageScanServiceClient) GetImageScan(ctx context.Context, in *GetImageS } func (c *imageScanServiceClient) GetImageComponents(ctx context.Context, in *GetImageComponentsRequest, opts ...grpc.CallOption) (*GetImageComponentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetImageComponentsResponse) - err := c.cc.Invoke(ctx, "/scannerV1.ImageScanService/GetImageComponents", in, out, opts...) + err := c.cc.Invoke(ctx, ImageScanService_GetImageComponents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +78,9 @@ func (c *imageScanServiceClient) GetImageComponents(ctx context.Context, in *Get } func (c *imageScanServiceClient) GetImageVulnerabilities(ctx context.Context, in *GetImageVulnerabilitiesRequest, opts ...grpc.CallOption) (*GetImageVulnerabilitiesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetImageVulnerabilitiesResponse) - err := c.cc.Invoke(ctx, "/scannerV1.ImageScanService/GetImageVulnerabilities", in, out, opts...) + err := c.cc.Invoke(ctx, ImageScanService_GetImageVulnerabilities_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,8 +88,9 @@ func (c *imageScanServiceClient) GetImageVulnerabilities(ctx context.Context, in } func (c *imageScanServiceClient) GetLanguageLevelComponents(ctx context.Context, in *GetLanguageLevelComponentsRequest, opts ...grpc.CallOption) (*GetLanguageLevelComponentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLanguageLevelComponentsResponse) - err := c.cc.Invoke(ctx, "/scannerV1.ImageScanService/GetLanguageLevelComponents", in, out, opts...) + err := c.cc.Invoke(ctx, ImageScanService_GetLanguageLevelComponents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,6 +100,8 @@ func (c *imageScanServiceClient) GetLanguageLevelComponents(ctx context.Context, // ImageScanServiceServer is the server API for ImageScanService service. // All implementations should embed UnimplementedImageScanServiceServer // for forward compatibility +// +// ImageScanService APIs can be used to scan images. type ImageScanServiceServer interface { ScanImage(context.Context, *ScanImageRequest) (*ScanImageResponse, error) GetImageScan(context.Context, *GetImageScanRequest) (*GetImageScanResponse, error) @@ -130,7 +151,7 @@ func _ImageScanService_ScanImage_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.ImageScanService/ScanImage", + FullMethod: ImageScanService_ScanImage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ImageScanServiceServer).ScanImage(ctx, req.(*ScanImageRequest)) @@ -148,7 +169,7 @@ func _ImageScanService_GetImageScan_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.ImageScanService/GetImageScan", + FullMethod: ImageScanService_GetImageScan_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ImageScanServiceServer).GetImageScan(ctx, req.(*GetImageScanRequest)) @@ -166,7 +187,7 @@ func _ImageScanService_GetImageComponents_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.ImageScanService/GetImageComponents", + FullMethod: ImageScanService_GetImageComponents_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ImageScanServiceServer).GetImageComponents(ctx, req.(*GetImageComponentsRequest)) @@ -184,7 +205,7 @@ func _ImageScanService_GetImageVulnerabilities_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.ImageScanService/GetImageVulnerabilities", + FullMethod: ImageScanService_GetImageVulnerabilities_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ImageScanServiceServer).GetImageVulnerabilities(ctx, req.(*GetImageVulnerabilitiesRequest)) @@ -202,7 +223,7 @@ func _ImageScanService_GetLanguageLevelComponents_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.ImageScanService/GetLanguageLevelComponents", + FullMethod: ImageScanService_GetLanguageLevelComponents_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ImageScanServiceServer).GetLanguageLevelComponents(ctx, req.(*GetLanguageLevelComponentsRequest)) diff --git a/generated/scanner/api/v1/metadata_service_grpc.pb.go b/generated/scanner/api/v1/metadata_service_grpc.pb.go index d441d82a4..a68529a09 100644 --- a/generated/scanner/api/v1/metadata_service_grpc.pb.go +++ b/generated/scanner/api/v1/metadata_service_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.4.0 +// - protoc v3.21.4 +// source: scanner/api/v1/metadata_service.proto package scannerV1 @@ -11,8 +15,12 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.62.0 or later. +const _ = grpc.SupportPackageIsVersion8 + +const ( + VulnDefsService_GetVulnDefsMetadata_FullMethodName = "/scannerV1.VulnDefsService/GetVulnDefsMetadata" +) // VulnDefsServiceClient is the client API for VulnDefsService service. // @@ -30,8 +38,9 @@ func NewVulnDefsServiceClient(cc grpc.ClientConnInterface) VulnDefsServiceClient } func (c *vulnDefsServiceClient) GetVulnDefsMetadata(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VulnDefsMetadata, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(VulnDefsMetadata) - err := c.cc.Invoke(ctx, "/scannerV1.VulnDefsService/GetVulnDefsMetadata", in, out, opts...) + err := c.cc.Invoke(ctx, VulnDefsService_GetVulnDefsMetadata_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -74,7 +83,7 @@ func _VulnDefsService_GetVulnDefsMetadata_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.VulnDefsService/GetVulnDefsMetadata", + FullMethod: VulnDefsService_GetVulnDefsMetadata_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(VulnDefsServiceServer).GetVulnDefsMetadata(ctx, req.(*Empty)) diff --git a/generated/scanner/api/v1/node_inventory_service_grpc.pb.go b/generated/scanner/api/v1/node_inventory_service_grpc.pb.go index dea5bb120..47b252ee4 100644 --- a/generated/scanner/api/v1/node_inventory_service_grpc.pb.go +++ b/generated/scanner/api/v1/node_inventory_service_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.4.0 +// - protoc v3.21.4 +// source: scanner/api/v1/node_inventory_service.proto package scannerV1 @@ -11,12 +15,19 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.62.0 or later. +const _ = grpc.SupportPackageIsVersion8 + +const ( + NodeInventoryService_GetNodeInventory_FullMethodName = "/scannerV1.NodeInventoryService/GetNodeInventory" +) // NodeInventoryServiceClient is the client API for NodeInventoryService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// NodeInventoryService is used in Secured Clusters to fetch information from Nodes and communicate with other +// Secured Cluster components, like the compliance container in Collector. type NodeInventoryServiceClient interface { GetNodeInventory(ctx context.Context, in *GetNodeInventoryRequest, opts ...grpc.CallOption) (*GetNodeInventoryResponse, error) } @@ -30,8 +41,9 @@ func NewNodeInventoryServiceClient(cc grpc.ClientConnInterface) NodeInventorySer } func (c *nodeInventoryServiceClient) GetNodeInventory(ctx context.Context, in *GetNodeInventoryRequest, opts ...grpc.CallOption) (*GetNodeInventoryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetNodeInventoryResponse) - err := c.cc.Invoke(ctx, "/scannerV1.NodeInventoryService/GetNodeInventory", in, out, opts...) + err := c.cc.Invoke(ctx, NodeInventoryService_GetNodeInventory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -41,6 +53,9 @@ func (c *nodeInventoryServiceClient) GetNodeInventory(ctx context.Context, in *G // NodeInventoryServiceServer is the server API for NodeInventoryService service. // All implementations should embed UnimplementedNodeInventoryServiceServer // for forward compatibility +// +// NodeInventoryService is used in Secured Clusters to fetch information from Nodes and communicate with other +// Secured Cluster components, like the compliance container in Collector. type NodeInventoryServiceServer interface { GetNodeInventory(context.Context, *GetNodeInventoryRequest) (*GetNodeInventoryResponse, error) } @@ -74,7 +89,7 @@ func _NodeInventoryService_GetNodeInventory_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.NodeInventoryService/GetNodeInventory", + FullMethod: NodeInventoryService_GetNodeInventory_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NodeInventoryServiceServer).GetNodeInventory(ctx, req.(*GetNodeInventoryRequest)) diff --git a/generated/scanner/api/v1/node_scan_service_grpc.pb.go b/generated/scanner/api/v1/node_scan_service_grpc.pb.go index 55dd92065..4f4ecce84 100644 --- a/generated/scanner/api/v1/node_scan_service_grpc.pb.go +++ b/generated/scanner/api/v1/node_scan_service_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.4.0 +// - protoc v3.21.4 +// source: scanner/api/v1/node_scan_service.proto package scannerV1 @@ -11,12 +15,18 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.62.0 or later. +const _ = grpc.SupportPackageIsVersion8 + +const ( + NodeScanService_GetNodeVulnerabilities_FullMethodName = "/scannerV1.NodeScanService/GetNodeVulnerabilities" +) // NodeScanServiceClient is the client API for NodeScanService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// NodeScanService APIs can be used to get vulnerabilities for nodes. type NodeScanServiceClient interface { GetNodeVulnerabilities(ctx context.Context, in *GetNodeVulnerabilitiesRequest, opts ...grpc.CallOption) (*GetNodeVulnerabilitiesResponse, error) } @@ -30,8 +40,9 @@ func NewNodeScanServiceClient(cc grpc.ClientConnInterface) NodeScanServiceClient } func (c *nodeScanServiceClient) GetNodeVulnerabilities(ctx context.Context, in *GetNodeVulnerabilitiesRequest, opts ...grpc.CallOption) (*GetNodeVulnerabilitiesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetNodeVulnerabilitiesResponse) - err := c.cc.Invoke(ctx, "/scannerV1.NodeScanService/GetNodeVulnerabilities", in, out, opts...) + err := c.cc.Invoke(ctx, NodeScanService_GetNodeVulnerabilities_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -41,6 +52,8 @@ func (c *nodeScanServiceClient) GetNodeVulnerabilities(ctx context.Context, in * // NodeScanServiceServer is the server API for NodeScanService service. // All implementations should embed UnimplementedNodeScanServiceServer // for forward compatibility +// +// NodeScanService APIs can be used to get vulnerabilities for nodes. type NodeScanServiceServer interface { GetNodeVulnerabilities(context.Context, *GetNodeVulnerabilitiesRequest) (*GetNodeVulnerabilitiesResponse, error) } @@ -74,7 +87,7 @@ func _NodeScanService_GetNodeVulnerabilities_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.NodeScanService/GetNodeVulnerabilities", + FullMethod: NodeScanService_GetNodeVulnerabilities_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(NodeScanServiceServer).GetNodeVulnerabilities(ctx, req.(*GetNodeVulnerabilitiesRequest)) diff --git a/generated/scanner/api/v1/orchestrator_scan_service_grpc.pb.go b/generated/scanner/api/v1/orchestrator_scan_service_grpc.pb.go index 71e0fc4e1..1c1c23aeb 100644 --- a/generated/scanner/api/v1/orchestrator_scan_service_grpc.pb.go +++ b/generated/scanner/api/v1/orchestrator_scan_service_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.4.0 +// - protoc v3.21.4 +// source: scanner/api/v1/orchestrator_scan_service.proto package scannerV1 @@ -11,12 +15,20 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.62.0 or later. +const _ = grpc.SupportPackageIsVersion8 + +const ( + OrchestratorScanService_GetKubeVulnerabilities_FullMethodName = "/scannerV1.OrchestratorScanService/GetKubeVulnerabilities" + OrchestratorScanService_GetOpenShiftVulnerabilities_FullMethodName = "/scannerV1.OrchestratorScanService/GetOpenShiftVulnerabilities" + OrchestratorScanService_GetIstioVulnerabilities_FullMethodName = "/scannerV1.OrchestratorScanService/GetIstioVulnerabilities" +) // OrchestratorScanServiceClient is the client API for OrchestratorScanService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// OrchestratorScanService APIs can be used to get vulnerabilities for Kubernetes and Openshift components. type OrchestratorScanServiceClient interface { GetKubeVulnerabilities(ctx context.Context, in *GetKubeVulnerabilitiesRequest, opts ...grpc.CallOption) (*GetKubeVulnerabilitiesResponse, error) GetOpenShiftVulnerabilities(ctx context.Context, in *GetOpenShiftVulnerabilitiesRequest, opts ...grpc.CallOption) (*GetOpenShiftVulnerabilitiesResponse, error) @@ -32,8 +44,9 @@ func NewOrchestratorScanServiceClient(cc grpc.ClientConnInterface) OrchestratorS } func (c *orchestratorScanServiceClient) GetKubeVulnerabilities(ctx context.Context, in *GetKubeVulnerabilitiesRequest, opts ...grpc.CallOption) (*GetKubeVulnerabilitiesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetKubeVulnerabilitiesResponse) - err := c.cc.Invoke(ctx, "/scannerV1.OrchestratorScanService/GetKubeVulnerabilities", in, out, opts...) + err := c.cc.Invoke(ctx, OrchestratorScanService_GetKubeVulnerabilities_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -41,8 +54,9 @@ func (c *orchestratorScanServiceClient) GetKubeVulnerabilities(ctx context.Conte } func (c *orchestratorScanServiceClient) GetOpenShiftVulnerabilities(ctx context.Context, in *GetOpenShiftVulnerabilitiesRequest, opts ...grpc.CallOption) (*GetOpenShiftVulnerabilitiesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetOpenShiftVulnerabilitiesResponse) - err := c.cc.Invoke(ctx, "/scannerV1.OrchestratorScanService/GetOpenShiftVulnerabilities", in, out, opts...) + err := c.cc.Invoke(ctx, OrchestratorScanService_GetOpenShiftVulnerabilities_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -50,8 +64,9 @@ func (c *orchestratorScanServiceClient) GetOpenShiftVulnerabilities(ctx context. } func (c *orchestratorScanServiceClient) GetIstioVulnerabilities(ctx context.Context, in *GetIstioVulnerabilitiesRequest, opts ...grpc.CallOption) (*GetIstioVulnerabilitiesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetIstioVulnerabilitiesResponse) - err := c.cc.Invoke(ctx, "/scannerV1.OrchestratorScanService/GetIstioVulnerabilities", in, out, opts...) + err := c.cc.Invoke(ctx, OrchestratorScanService_GetIstioVulnerabilities_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,6 +76,8 @@ func (c *orchestratorScanServiceClient) GetIstioVulnerabilities(ctx context.Cont // OrchestratorScanServiceServer is the server API for OrchestratorScanService service. // All implementations should embed UnimplementedOrchestratorScanServiceServer // for forward compatibility +// +// OrchestratorScanService APIs can be used to get vulnerabilities for Kubernetes and Openshift components. type OrchestratorScanServiceServer interface { GetKubeVulnerabilities(context.Context, *GetKubeVulnerabilitiesRequest) (*GetKubeVulnerabilitiesResponse, error) GetOpenShiftVulnerabilities(context.Context, *GetOpenShiftVulnerabilitiesRequest) (*GetOpenShiftVulnerabilitiesResponse, error) @@ -102,7 +119,7 @@ func _OrchestratorScanService_GetKubeVulnerabilities_Handler(srv interface{}, ct } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.OrchestratorScanService/GetKubeVulnerabilities", + FullMethod: OrchestratorScanService_GetKubeVulnerabilities_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrchestratorScanServiceServer).GetKubeVulnerabilities(ctx, req.(*GetKubeVulnerabilitiesRequest)) @@ -120,7 +137,7 @@ func _OrchestratorScanService_GetOpenShiftVulnerabilities_Handler(srv interface{ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.OrchestratorScanService/GetOpenShiftVulnerabilities", + FullMethod: OrchestratorScanService_GetOpenShiftVulnerabilities_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrchestratorScanServiceServer).GetOpenShiftVulnerabilities(ctx, req.(*GetOpenShiftVulnerabilitiesRequest)) @@ -138,7 +155,7 @@ func _OrchestratorScanService_GetIstioVulnerabilities_Handler(srv interface{}, c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.OrchestratorScanService/GetIstioVulnerabilities", + FullMethod: OrchestratorScanService_GetIstioVulnerabilities_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrchestratorScanServiceServer).GetIstioVulnerabilities(ctx, req.(*GetIstioVulnerabilitiesRequest)) diff --git a/generated/scanner/api/v1/ping_service_grpc.pb.go b/generated/scanner/api/v1/ping_service_grpc.pb.go index dde6a3484..377732346 100644 --- a/generated/scanner/api/v1/ping_service_grpc.pb.go +++ b/generated/scanner/api/v1/ping_service_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.4.0 +// - protoc v3.21.4 +// source: scanner/api/v1/ping_service.proto package scannerV1 @@ -11,8 +15,12 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.62.0 or later. +const _ = grpc.SupportPackageIsVersion8 + +const ( + PingService_Ping_FullMethodName = "/scannerV1.PingService/Ping" +) // PingServiceClient is the client API for PingService service. // @@ -30,8 +38,9 @@ func NewPingServiceClient(cc grpc.ClientConnInterface) PingServiceClient { } func (c *pingServiceClient) Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PongMessage, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PongMessage) - err := c.cc.Invoke(ctx, "/scannerV1.PingService/Ping", in, out, opts...) + err := c.cc.Invoke(ctx, PingService_Ping_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -74,7 +83,7 @@ func _PingService_Ping_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/scannerV1.PingService/Ping", + FullMethod: PingService_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PingServiceServer).Ping(ctx, req.(*Empty)) diff --git a/go.mod b/go.mod index a12620bce..b149c424e 100644 --- a/go.mod +++ b/go.mod @@ -52,7 +52,7 @@ require ( golang.org/x/sys v0.22.0 google.golang.org/api v0.189.0 google.golang.org/grpc v1.65.0 - google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.4.0 google.golang.org/protobuf v1.34.2 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/go.sum b/go.sum index 0ac101c9b..323aed405 100644 --- a/go.sum +++ b/go.sum @@ -1181,8 +1181,9 @@ google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9K google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 h1:M1YKkFIboKNieVO5DLUEVzQfGwJD30Nv2jfUgzb5UcE= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.4.0 h1:9SxA29VM43MF5Z9dQu694wmY5t8E/Gxr7s+RSxiIDmc= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.4.0/go.mod h1:yZOK5zhQMiALmuweVdIVoQPa6eIJyXn2B9g5dJDhqX4= google.golang.org/grpc/examples v0.0.0-20210902184326-c93e472777b9 h1:nuV5/Eu1pLmXFqSuM5yYgg1z+m3f7+HC1HO1xsmCz9I= google.golang.org/grpc/examples v0.0.0-20210902184326-c93e472777b9/go.mod h1:gID3PKrg7pWKntu9Ss6zTLJ0ttC0X9IHgREOCZwbCVU= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=