diff --git a/Makefile b/Makefile index 08f326e..29daa9d 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,9 @@ +prepare: + curl -sSfL https://raw.githubusercontent.com/aquaproj/aqua-installer/v2.1.1/aqua-installer | bash + @echo '' + @echo 'Add $${AQUA_ROOT_DIR}/bin to the environment variable PATH.' + @echo 'export PATH="$${AQUA_ROOT_DIR:-$${XDG_DATA_HOME:-$$HOME/.local/share}/aquaproj-aqua}/bin:$$PATH"' + proto: cd plugin/proto; \ protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative tflint.proto diff --git a/README.md b/README.md index 3b08a5c..7adff2f 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,26 @@ Please refer to [tflint-ruleset-template](https://github.com/terraform-linters/t For more details on the API, see [tflint](https://pkg.go.dev/github.com/terraform-linters/tflint-plugin-sdk/tflint) and [helper](https://pkg.go.dev/github.com/terraform-linters/tflint-plugin-sdk/helper) packages on pkg.go.dev. +## Developing + +The proto compiler is required when updating `.proto` files. The `protoc` and `protoc-gen-go` can be installed using [aqua](https://github.com/aquaproj/aqua). + +```console +$ make prepare +curl -sSfL https://raw.githubusercontent.com/aquaproj/aqua-installer/v2.1.1/aqua-installer | bash +===> Installing aqua v2.2.3 for bootstraping... + +... + +aqua version 2.3.7 (c07105b10ab825e7f309d2eb83278a0422a2b24f) + +Add ${AQUA_ROOT_DIR}/bin to the environment variable PATH. +export PATH="${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin:$PATH" +$ export PATH="${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin:$PATH" +$ aqua install +$ make proto +``` + ## Architecture ![architecture](architecture.png) diff --git a/aqua.yaml b/aqua.yaml new file mode 100644 index 0000000..97a8bc9 --- /dev/null +++ b/aqua.yaml @@ -0,0 +1,15 @@ +--- +# aqua - Declarative CLI Version Manager +# https://aquaproj.github.io/ +# checksum: +# enabled: true +# require_checksum: true +# supported_envs: +# - all +registries: +- type: standard + ref: v3.159.0 # renovate: depName=aquaproj/aqua-registry +packages: +- name: protocolbuffers/protobuf/protoc@v22.3 +- name: protocolbuffers/protobuf-go/protoc-gen-go@v1.30.0 +- name: grpc/grpc-go/protoc-gen-go-grpc@cmd/protoc-gen-go-grpc/v1.3.0 diff --git a/plugin/proto/tflint.pb.go b/plugin/proto/tflint.pb.go index 93a391c..5108782 100644 --- a/plugin/proto/tflint.pb.go +++ b/plugin/proto/tflint.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.20.3 +// protoc-gen-go v1.30.0 +// protoc v4.22.3 // source: tflint.proto package proto @@ -2436,7 +2436,7 @@ type GetModuleContent_Option struct { ModuleCtx ModuleCtxType `protobuf:"varint,1,opt,name=module_ctx,json=moduleCtx,proto3,enum=proto.ModuleCtxType" json:"module_ctx,omitempty"` Hint *GetModuleContent_Hint `protobuf:"bytes,2,opt,name=hint,proto3" json:"hint,omitempty"` - // Deprecated: Do not use. + // Deprecated: Marked as deprecated in tflint.proto. IncludeNotCreated bool `protobuf:"varint,3,opt,name=include_not_created,json=includeNotCreated,proto3" json:"include_not_created,omitempty"` ExpandMode GetModuleContent_ExpandMode `protobuf:"varint,4,opt,name=expand_mode,json=expandMode,proto3,enum=proto.GetModuleContent_ExpandMode" json:"expand_mode,omitempty"` } @@ -2487,7 +2487,7 @@ func (x *GetModuleContent_Option) GetHint() *GetModuleContent_Hint { return nil } -// Deprecated: Do not use. +// Deprecated: Marked as deprecated in tflint.proto. func (x *GetModuleContent_Option) GetIncludeNotCreated() bool { if x != nil { return x.IncludeNotCreated @@ -2945,9 +2945,9 @@ type EvaluateExpr_Request struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Deprecated: Do not use. + // Deprecated: Marked as deprecated in tflint.proto. Expr []byte `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"` - // Deprecated: Do not use. + // Deprecated: Marked as deprecated in tflint.proto. ExprRange *Range `protobuf:"bytes,2,opt,name=expr_range,json=exprRange,proto3" json:"expr_range,omitempty"` Option *EvaluateExpr_Option `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` Expression *Expression `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty"` @@ -2985,7 +2985,7 @@ func (*EvaluateExpr_Request) Descriptor() ([]byte, []int) { return file_tflint_proto_rawDescGZIP(), []int{15, 1} } -// Deprecated: Do not use. +// Deprecated: Marked as deprecated in tflint.proto. func (x *EvaluateExpr_Request) GetExpr() []byte { if x != nil { return x.Expr @@ -2993,7 +2993,7 @@ func (x *EvaluateExpr_Request) GetExpr() []byte { return nil } -// Deprecated: Do not use. +// Deprecated: Marked as deprecated in tflint.proto. func (x *EvaluateExpr_Request) GetExprRange() *Range { if x != nil { return x.ExprRange @@ -3366,9 +3366,9 @@ type BodyContent_Attribute struct { unknownFields protoimpl.UnknownFields Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Deprecated: Do not use. + // Deprecated: Marked as deprecated in tflint.proto. Expr []byte `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"` - // Deprecated: Do not use. + // Deprecated: Marked as deprecated in tflint.proto. ExprRange *Range `protobuf:"bytes,3,opt,name=expr_range,json=exprRange,proto3" json:"expr_range,omitempty"` Range *Range `protobuf:"bytes,4,opt,name=range,proto3" json:"range,omitempty"` NameRange *Range `protobuf:"bytes,5,opt,name=name_range,json=nameRange,proto3" json:"name_range,omitempty"` @@ -3414,7 +3414,7 @@ func (x *BodyContent_Attribute) GetName() string { return "" } -// Deprecated: Do not use. +// Deprecated: Marked as deprecated in tflint.proto. func (x *BodyContent_Attribute) GetExpr() []byte { if x != nil { return x.Expr @@ -3422,7 +3422,7 @@ func (x *BodyContent_Attribute) GetExpr() []byte { return nil } -// Deprecated: Do not use. +// Deprecated: Marked as deprecated in tflint.proto. func (x *BodyContent_Attribute) GetExprRange() *Range { if x != nil { return x.ExprRange diff --git a/plugin/proto/tflint_grpc.pb.go b/plugin/proto/tflint_grpc.pb.go index 04f6711..9d4cd67 100644 --- a/plugin/proto/tflint_grpc.pb.go +++ b/plugin/proto/tflint_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.20.3 +// - protoc-gen-go-grpc v1.3.0 +// - protoc v4.22.3 // source: tflint.proto package proto @@ -18,6 +18,18 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + RuleSet_GetName_FullMethodName = "/proto.RuleSet/GetName" + RuleSet_GetVersion_FullMethodName = "/proto.RuleSet/GetVersion" + RuleSet_GetVersionConstraint_FullMethodName = "/proto.RuleSet/GetVersionConstraint" + RuleSet_GetSDKVersion_FullMethodName = "/proto.RuleSet/GetSDKVersion" + RuleSet_GetRuleNames_FullMethodName = "/proto.RuleSet/GetRuleNames" + RuleSet_GetConfigSchema_FullMethodName = "/proto.RuleSet/GetConfigSchema" + RuleSet_ApplyGlobalConfig_FullMethodName = "/proto.RuleSet/ApplyGlobalConfig" + RuleSet_ApplyConfig_FullMethodName = "/proto.RuleSet/ApplyConfig" + RuleSet_Check_FullMethodName = "/proto.RuleSet/Check" +) + // RuleSetClient is the client API for RuleSet 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. @@ -43,7 +55,7 @@ func NewRuleSetClient(cc grpc.ClientConnInterface) RuleSetClient { func (c *ruleSetClient) GetName(ctx context.Context, in *GetName_Request, opts ...grpc.CallOption) (*GetName_Response, error) { out := new(GetName_Response) - err := c.cc.Invoke(ctx, "/proto.RuleSet/GetName", in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetName_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -52,7 +64,7 @@ func (c *ruleSetClient) GetName(ctx context.Context, in *GetName_Request, opts . func (c *ruleSetClient) GetVersion(ctx context.Context, in *GetVersion_Request, opts ...grpc.CallOption) (*GetVersion_Response, error) { out := new(GetVersion_Response) - err := c.cc.Invoke(ctx, "/proto.RuleSet/GetVersion", in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetVersion_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -61,7 +73,7 @@ func (c *ruleSetClient) GetVersion(ctx context.Context, in *GetVersion_Request, func (c *ruleSetClient) GetVersionConstraint(ctx context.Context, in *GetVersionConstraint_Request, opts ...grpc.CallOption) (*GetVersionConstraint_Response, error) { out := new(GetVersionConstraint_Response) - err := c.cc.Invoke(ctx, "/proto.RuleSet/GetVersionConstraint", in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetVersionConstraint_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -70,7 +82,7 @@ func (c *ruleSetClient) GetVersionConstraint(ctx context.Context, in *GetVersion func (c *ruleSetClient) GetSDKVersion(ctx context.Context, in *GetSDKVersion_Request, opts ...grpc.CallOption) (*GetSDKVersion_Response, error) { out := new(GetSDKVersion_Response) - err := c.cc.Invoke(ctx, "/proto.RuleSet/GetSDKVersion", in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetSDKVersion_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -79,7 +91,7 @@ func (c *ruleSetClient) GetSDKVersion(ctx context.Context, in *GetSDKVersion_Req func (c *ruleSetClient) GetRuleNames(ctx context.Context, in *GetRuleNames_Request, opts ...grpc.CallOption) (*GetRuleNames_Response, error) { out := new(GetRuleNames_Response) - err := c.cc.Invoke(ctx, "/proto.RuleSet/GetRuleNames", in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetRuleNames_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -88,7 +100,7 @@ func (c *ruleSetClient) GetRuleNames(ctx context.Context, in *GetRuleNames_Reque func (c *ruleSetClient) GetConfigSchema(ctx context.Context, in *GetConfigSchema_Request, opts ...grpc.CallOption) (*GetConfigSchema_Response, error) { out := new(GetConfigSchema_Response) - err := c.cc.Invoke(ctx, "/proto.RuleSet/GetConfigSchema", in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_GetConfigSchema_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -97,7 +109,7 @@ func (c *ruleSetClient) GetConfigSchema(ctx context.Context, in *GetConfigSchema func (c *ruleSetClient) ApplyGlobalConfig(ctx context.Context, in *ApplyGlobalConfig_Request, opts ...grpc.CallOption) (*ApplyGlobalConfig_Response, error) { out := new(ApplyGlobalConfig_Response) - err := c.cc.Invoke(ctx, "/proto.RuleSet/ApplyGlobalConfig", in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_ApplyGlobalConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -106,7 +118,7 @@ func (c *ruleSetClient) ApplyGlobalConfig(ctx context.Context, in *ApplyGlobalCo func (c *ruleSetClient) ApplyConfig(ctx context.Context, in *ApplyConfig_Request, opts ...grpc.CallOption) (*ApplyConfig_Response, error) { out := new(ApplyConfig_Response) - err := c.cc.Invoke(ctx, "/proto.RuleSet/ApplyConfig", in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_ApplyConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -115,7 +127,7 @@ func (c *ruleSetClient) ApplyConfig(ctx context.Context, in *ApplyConfig_Request func (c *ruleSetClient) Check(ctx context.Context, in *Check_Request, opts ...grpc.CallOption) (*Check_Response, error) { out := new(Check_Response) - err := c.cc.Invoke(ctx, "/proto.RuleSet/Check", in, out, opts...) + err := c.cc.Invoke(ctx, RuleSet_Check_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -192,7 +204,7 @@ func _RuleSet_GetName_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.RuleSet/GetName", + FullMethod: RuleSet_GetName_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RuleSetServer).GetName(ctx, req.(*GetName_Request)) @@ -210,7 +222,7 @@ func _RuleSet_GetVersion_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.RuleSet/GetVersion", + FullMethod: RuleSet_GetVersion_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RuleSetServer).GetVersion(ctx, req.(*GetVersion_Request)) @@ -228,7 +240,7 @@ func _RuleSet_GetVersionConstraint_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.RuleSet/GetVersionConstraint", + FullMethod: RuleSet_GetVersionConstraint_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RuleSetServer).GetVersionConstraint(ctx, req.(*GetVersionConstraint_Request)) @@ -246,7 +258,7 @@ func _RuleSet_GetSDKVersion_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.RuleSet/GetSDKVersion", + FullMethod: RuleSet_GetSDKVersion_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RuleSetServer).GetSDKVersion(ctx, req.(*GetSDKVersion_Request)) @@ -264,7 +276,7 @@ func _RuleSet_GetRuleNames_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.RuleSet/GetRuleNames", + FullMethod: RuleSet_GetRuleNames_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RuleSetServer).GetRuleNames(ctx, req.(*GetRuleNames_Request)) @@ -282,7 +294,7 @@ func _RuleSet_GetConfigSchema_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.RuleSet/GetConfigSchema", + FullMethod: RuleSet_GetConfigSchema_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RuleSetServer).GetConfigSchema(ctx, req.(*GetConfigSchema_Request)) @@ -300,7 +312,7 @@ func _RuleSet_ApplyGlobalConfig_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.RuleSet/ApplyGlobalConfig", + FullMethod: RuleSet_ApplyGlobalConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RuleSetServer).ApplyGlobalConfig(ctx, req.(*ApplyGlobalConfig_Request)) @@ -318,7 +330,7 @@ func _RuleSet_ApplyConfig_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.RuleSet/ApplyConfig", + FullMethod: RuleSet_ApplyConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RuleSetServer).ApplyConfig(ctx, req.(*ApplyConfig_Request)) @@ -336,7 +348,7 @@ func _RuleSet_Check_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.RuleSet/Check", + FullMethod: RuleSet_Check_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RuleSetServer).Check(ctx, req.(*Check_Request)) @@ -392,6 +404,17 @@ var RuleSet_ServiceDesc = grpc.ServiceDesc{ Metadata: "tflint.proto", } +const ( + Runner_GetOriginalwd_FullMethodName = "/proto.Runner/GetOriginalwd" + Runner_GetModulePath_FullMethodName = "/proto.Runner/GetModulePath" + Runner_GetModuleContent_FullMethodName = "/proto.Runner/GetModuleContent" + Runner_GetFile_FullMethodName = "/proto.Runner/GetFile" + Runner_GetFiles_FullMethodName = "/proto.Runner/GetFiles" + Runner_GetRuleConfigContent_FullMethodName = "/proto.Runner/GetRuleConfigContent" + Runner_EvaluateExpr_FullMethodName = "/proto.Runner/EvaluateExpr" + Runner_EmitIssue_FullMethodName = "/proto.Runner/EmitIssue" +) + // RunnerClient is the client API for Runner 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. @@ -416,7 +439,7 @@ func NewRunnerClient(cc grpc.ClientConnInterface) RunnerClient { func (c *runnerClient) GetOriginalwd(ctx context.Context, in *GetOriginalwd_Request, opts ...grpc.CallOption) (*GetOriginalwd_Response, error) { out := new(GetOriginalwd_Response) - err := c.cc.Invoke(ctx, "/proto.Runner/GetOriginalwd", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetOriginalwd_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -425,7 +448,7 @@ func (c *runnerClient) GetOriginalwd(ctx context.Context, in *GetOriginalwd_Requ func (c *runnerClient) GetModulePath(ctx context.Context, in *GetModulePath_Request, opts ...grpc.CallOption) (*GetModulePath_Response, error) { out := new(GetModulePath_Response) - err := c.cc.Invoke(ctx, "/proto.Runner/GetModulePath", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetModulePath_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -434,7 +457,7 @@ func (c *runnerClient) GetModulePath(ctx context.Context, in *GetModulePath_Requ func (c *runnerClient) GetModuleContent(ctx context.Context, in *GetModuleContent_Request, opts ...grpc.CallOption) (*GetModuleContent_Response, error) { out := new(GetModuleContent_Response) - err := c.cc.Invoke(ctx, "/proto.Runner/GetModuleContent", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetModuleContent_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -443,7 +466,7 @@ func (c *runnerClient) GetModuleContent(ctx context.Context, in *GetModuleConten func (c *runnerClient) GetFile(ctx context.Context, in *GetFile_Request, opts ...grpc.CallOption) (*GetFile_Response, error) { out := new(GetFile_Response) - err := c.cc.Invoke(ctx, "/proto.Runner/GetFile", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetFile_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -452,7 +475,7 @@ func (c *runnerClient) GetFile(ctx context.Context, in *GetFile_Request, opts .. func (c *runnerClient) GetFiles(ctx context.Context, in *GetFiles_Request, opts ...grpc.CallOption) (*GetFiles_Response, error) { out := new(GetFiles_Response) - err := c.cc.Invoke(ctx, "/proto.Runner/GetFiles", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetFiles_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -461,7 +484,7 @@ func (c *runnerClient) GetFiles(ctx context.Context, in *GetFiles_Request, opts func (c *runnerClient) GetRuleConfigContent(ctx context.Context, in *GetRuleConfigContent_Request, opts ...grpc.CallOption) (*GetRuleConfigContent_Response, error) { out := new(GetRuleConfigContent_Response) - err := c.cc.Invoke(ctx, "/proto.Runner/GetRuleConfigContent", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_GetRuleConfigContent_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -470,7 +493,7 @@ func (c *runnerClient) GetRuleConfigContent(ctx context.Context, in *GetRuleConf func (c *runnerClient) EvaluateExpr(ctx context.Context, in *EvaluateExpr_Request, opts ...grpc.CallOption) (*EvaluateExpr_Response, error) { out := new(EvaluateExpr_Response) - err := c.cc.Invoke(ctx, "/proto.Runner/EvaluateExpr", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_EvaluateExpr_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -479,7 +502,7 @@ func (c *runnerClient) EvaluateExpr(ctx context.Context, in *EvaluateExpr_Reques func (c *runnerClient) EmitIssue(ctx context.Context, in *EmitIssue_Request, opts ...grpc.CallOption) (*EmitIssue_Response, error) { out := new(EmitIssue_Response) - err := c.cc.Invoke(ctx, "/proto.Runner/EmitIssue", in, out, opts...) + err := c.cc.Invoke(ctx, Runner_EmitIssue_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -552,7 +575,7 @@ func _Runner_GetOriginalwd_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.Runner/GetOriginalwd", + FullMethod: Runner_GetOriginalwd_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetOriginalwd(ctx, req.(*GetOriginalwd_Request)) @@ -570,7 +593,7 @@ func _Runner_GetModulePath_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.Runner/GetModulePath", + FullMethod: Runner_GetModulePath_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetModulePath(ctx, req.(*GetModulePath_Request)) @@ -588,7 +611,7 @@ func _Runner_GetModuleContent_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.Runner/GetModuleContent", + FullMethod: Runner_GetModuleContent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetModuleContent(ctx, req.(*GetModuleContent_Request)) @@ -606,7 +629,7 @@ func _Runner_GetFile_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.Runner/GetFile", + FullMethod: Runner_GetFile_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetFile(ctx, req.(*GetFile_Request)) @@ -624,7 +647,7 @@ func _Runner_GetFiles_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.Runner/GetFiles", + FullMethod: Runner_GetFiles_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetFiles(ctx, req.(*GetFiles_Request)) @@ -642,7 +665,7 @@ func _Runner_GetRuleConfigContent_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.Runner/GetRuleConfigContent", + FullMethod: Runner_GetRuleConfigContent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).GetRuleConfigContent(ctx, req.(*GetRuleConfigContent_Request)) @@ -660,7 +683,7 @@ func _Runner_EvaluateExpr_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.Runner/EvaluateExpr", + FullMethod: Runner_EvaluateExpr_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).EvaluateExpr(ctx, req.(*EvaluateExpr_Request)) @@ -678,7 +701,7 @@ func _Runner_EmitIssue_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/proto.Runner/EmitIssue", + FullMethod: Runner_EmitIssue_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RunnerServer).EmitIssue(ctx, req.(*EmitIssue_Request))