mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
Merge pull request #28665 from lsm5/fix-grpc-lint-macos
pkg/api/grpcpb: auto-format generated protobuf files
This commit is contained in:
commit
ef2117a158
3 changed files with 17 additions and 9 deletions
|
|
@ -10,3 +10,6 @@ for proto in *.proto ; do
|
|||
--go-grpc_opt=paths=source_relative --go-grpc_out . \
|
||||
${proto}
|
||||
done
|
||||
|
||||
# Format generated files
|
||||
gofumpt -w -- *.pb.go
|
||||
|
|
|
|||
|
|
@ -7,11 +7,12 @@
|
|||
package grpcpb
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
@ -134,11 +135,14 @@ func file_noop_proto_rawDescGZIP() []byte {
|
|||
return file_noop_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_noop_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_noop_proto_goTypes = []any{
|
||||
(*NoopRequest)(nil), // 0: io.podman.v1.NoopRequest
|
||||
(*NoopResponse)(nil), // 1: io.podman.v1.NoopResponse
|
||||
}
|
||||
var (
|
||||
file_noop_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
file_noop_proto_goTypes = []any{
|
||||
(*NoopRequest)(nil), // 0: io.podman.v1.NoopRequest
|
||||
(*NoopResponse)(nil), // 1: io.podman.v1.NoopResponse
|
||||
}
|
||||
)
|
||||
|
||||
var file_noop_proto_depIdxs = []int32{
|
||||
0, // 0: io.podman.v1.Noop.Noop:input_type -> io.podman.v1.NoopRequest
|
||||
1, // 1: io.podman.v1.Noop.Noop:output_type -> io.podman.v1.NoopResponse
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ package grpcpb
|
|||
|
||||
import (
|
||||
context "context"
|
||||
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
|
|
@ -51,7 +52,7 @@ func (c *noopClient) Noop(ctx context.Context, in *NoopRequest, opts ...grpc.Cal
|
|||
// All implementations must embed UnimplementedNoopServer
|
||||
// for forward compatibility.
|
||||
type NoopServer interface {
|
||||
Noop(context.Context, *NoopRequest) (*NoopResponse, error)
|
||||
Noop(ctx context.Context, in *NoopRequest) (*NoopResponse, error)
|
||||
mustEmbedUnimplementedNoopServer()
|
||||
}
|
||||
|
||||
|
|
@ -62,7 +63,7 @@ type NoopServer interface {
|
|||
// pointer dereference when methods are called.
|
||||
type UnimplementedNoopServer struct{}
|
||||
|
||||
func (UnimplementedNoopServer) Noop(context.Context, *NoopRequest) (*NoopResponse, error) {
|
||||
func (UnimplementedNoopServer) Noop(ctx context.Context, in *NoopRequest) (*NoopResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Noop not implemented")
|
||||
}
|
||||
func (UnimplementedNoopServer) mustEmbedUnimplementedNoopServer() {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue