// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v3.21.12 // source: cmctl.proto package cmctl import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // 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 const ( Control_GetStatus_FullMethodName = "/certmanagercontrol.Control/getStatus" Control_CreateIssuerPair_FullMethodName = "/certmanagercontrol.Control/createIssuerPair" Control_ImportIssuerPair_FullMethodName = "/certmanagercontrol.Control/importIssuerPair" Control_RevokeIssuerPair_FullMethodName = "/certmanagercontrol.Control/revokeIssuerPair" Control_UnrevokeIssuerPair_FullMethodName = "/certmanagercontrol.Control/unrevokeIssuerPair" Control_ListIssuerPairs_FullMethodName = "/certmanagercontrol.Control/listIssuerPairs" Control_GetIssuerCertificate_FullMethodName = "/certmanagercontrol.Control/getIssuerCertificate" Control_CreateServicePair_FullMethodName = "/certmanagercontrol.Control/createServicePair" Control_RevokeServicePair_FullMethodName = "/certmanagercontrol.Control/revokeServicePair" Control_UnrevokeServicePair_FullMethodName = "/certmanagercontrol.Control/unrevokeServicePair" Control_ListServicePairs_FullMethodName = "/certmanagercontrol.Control/listServicePairs" Control_GetServicePair_FullMethodName = "/certmanagercontrol.Control/getServicePair" Control_CreateAccount_FullMethodName = "/certmanagercontrol.Control/createAccount" Control_DeleteAccount_FullMethodName = "/certmanagercontrol.Control/deleteAccount" Control_UpdateAccount_FullMethodName = "/certmanagercontrol.Control/updateAccount" Control_GetAccount_FullMethodName = "/certmanagercontrol.Control/getAccount" Control_ListAccounts_FullMethodName = "/certmanagercontrol.Control/listAccounts" Control_SetGrant_FullMethodName = "/certmanagercontrol.Control/setGrant" Control_DeleteGrant_FullMethodName = "/certmanagercontrol.Control/deleteGrant" ) // ControlClient is the client API for Control 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. type ControlClient interface { GetStatus(ctx context.Context, in *GetStatusParams, opts ...grpc.CallOption) (*GetStatusResult, error) CreateIssuerPair(ctx context.Context, in *CreateIssuerPairParams, opts ...grpc.CallOption) (*CreateIssuerPairResult, error) ImportIssuerPair(ctx context.Context, in *ImportIssuerPairParams, opts ...grpc.CallOption) (*ImportIssuerPairResult, error) RevokeIssuerPair(ctx context.Context, in *RevokeIssuerPairParams, opts ...grpc.CallOption) (*RevokeIssuerPairResult, error) UnrevokeIssuerPair(ctx context.Context, in *UnrevokeIssuerPairParams, opts ...grpc.CallOption) (*UnrevokeIssuerPairResult, error) ListIssuerPairs(ctx context.Context, in *ListIssuerPairsParams, opts ...grpc.CallOption) (*ListIssuerPairsResult, error) GetIssuerCertificate(ctx context.Context, in *GetIssuerCertificateParams, opts ...grpc.CallOption) (*GetIssuerCertificateResult, error) CreateServicePair(ctx context.Context, in *CreateServicePairParams, opts ...grpc.CallOption) (*CreateServicePairResult, error) RevokeServicePair(ctx context.Context, in *RevokeServicePairParams, opts ...grpc.CallOption) (*RevokeServicePairResult, error) UnrevokeServicePair(ctx context.Context, in *UnrevokeServicePairParams, opts ...grpc.CallOption) (*UnrevokeServicePairResult, error) ListServicePairs(ctx context.Context, in *ListServicePairsParams, opts ...grpc.CallOption) (*ListServicePairsResult, error) GetServicePair(ctx context.Context, in *GetServicePairParams, opts ...grpc.CallOption) (*GetServicePairResult, error) CreateAccount(ctx context.Context, in *CreateAccountParams, opts ...grpc.CallOption) (*CreateAccountResult, error) DeleteAccount(ctx context.Context, in *DeleteAccountParams, opts ...grpc.CallOption) (*DeleteAccountResult, error) UpdateAccount(ctx context.Context, in *UpdateAccountParams, opts ...grpc.CallOption) (*UpdateAccountResult, error) GetAccount(ctx context.Context, in *GetAccountParams, opts ...grpc.CallOption) (*GetAccountResult, error) ListAccounts(ctx context.Context, in *ListAccountsParams, opts ...grpc.CallOption) (*ListAccountsResult, error) SetGrant(ctx context.Context, in *SetGrantParams, opts ...grpc.CallOption) (*SetGrantResult, error) DeleteGrant(ctx context.Context, in *DeleteGrantParams, opts ...grpc.CallOption) (*DeleteGrantResult, error) } type controlClient struct { cc grpc.ClientConnInterface } func NewControlClient(cc grpc.ClientConnInterface) ControlClient { return &controlClient{cc} } func (c *controlClient) GetStatus(ctx context.Context, in *GetStatusParams, opts ...grpc.CallOption) (*GetStatusResult, error) { out := new(GetStatusResult) err := c.cc.Invoke(ctx, Control_GetStatus_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) CreateIssuerPair(ctx context.Context, in *CreateIssuerPairParams, opts ...grpc.CallOption) (*CreateIssuerPairResult, error) { out := new(CreateIssuerPairResult) err := c.cc.Invoke(ctx, Control_CreateIssuerPair_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) ImportIssuerPair(ctx context.Context, in *ImportIssuerPairParams, opts ...grpc.CallOption) (*ImportIssuerPairResult, error) { out := new(ImportIssuerPairResult) err := c.cc.Invoke(ctx, Control_ImportIssuerPair_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) RevokeIssuerPair(ctx context.Context, in *RevokeIssuerPairParams, opts ...grpc.CallOption) (*RevokeIssuerPairResult, error) { out := new(RevokeIssuerPairResult) err := c.cc.Invoke(ctx, Control_RevokeIssuerPair_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) UnrevokeIssuerPair(ctx context.Context, in *UnrevokeIssuerPairParams, opts ...grpc.CallOption) (*UnrevokeIssuerPairResult, error) { out := new(UnrevokeIssuerPairResult) err := c.cc.Invoke(ctx, Control_UnrevokeIssuerPair_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) ListIssuerPairs(ctx context.Context, in *ListIssuerPairsParams, opts ...grpc.CallOption) (*ListIssuerPairsResult, error) { out := new(ListIssuerPairsResult) err := c.cc.Invoke(ctx, Control_ListIssuerPairs_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) GetIssuerCertificate(ctx context.Context, in *GetIssuerCertificateParams, opts ...grpc.CallOption) (*GetIssuerCertificateResult, error) { out := new(GetIssuerCertificateResult) err := c.cc.Invoke(ctx, Control_GetIssuerCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) CreateServicePair(ctx context.Context, in *CreateServicePairParams, opts ...grpc.CallOption) (*CreateServicePairResult, error) { out := new(CreateServicePairResult) err := c.cc.Invoke(ctx, Control_CreateServicePair_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) RevokeServicePair(ctx context.Context, in *RevokeServicePairParams, opts ...grpc.CallOption) (*RevokeServicePairResult, error) { out := new(RevokeServicePairResult) err := c.cc.Invoke(ctx, Control_RevokeServicePair_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) UnrevokeServicePair(ctx context.Context, in *UnrevokeServicePairParams, opts ...grpc.CallOption) (*UnrevokeServicePairResult, error) { out := new(UnrevokeServicePairResult) err := c.cc.Invoke(ctx, Control_UnrevokeServicePair_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) ListServicePairs(ctx context.Context, in *ListServicePairsParams, opts ...grpc.CallOption) (*ListServicePairsResult, error) { out := new(ListServicePairsResult) err := c.cc.Invoke(ctx, Control_ListServicePairs_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) GetServicePair(ctx context.Context, in *GetServicePairParams, opts ...grpc.CallOption) (*GetServicePairResult, error) { out := new(GetServicePairResult) err := c.cc.Invoke(ctx, Control_GetServicePair_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) CreateAccount(ctx context.Context, in *CreateAccountParams, opts ...grpc.CallOption) (*CreateAccountResult, error) { out := new(CreateAccountResult) err := c.cc.Invoke(ctx, Control_CreateAccount_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) DeleteAccount(ctx context.Context, in *DeleteAccountParams, opts ...grpc.CallOption) (*DeleteAccountResult, error) { out := new(DeleteAccountResult) err := c.cc.Invoke(ctx, Control_DeleteAccount_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) UpdateAccount(ctx context.Context, in *UpdateAccountParams, opts ...grpc.CallOption) (*UpdateAccountResult, error) { out := new(UpdateAccountResult) err := c.cc.Invoke(ctx, Control_UpdateAccount_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) GetAccount(ctx context.Context, in *GetAccountParams, opts ...grpc.CallOption) (*GetAccountResult, error) { out := new(GetAccountResult) err := c.cc.Invoke(ctx, Control_GetAccount_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) ListAccounts(ctx context.Context, in *ListAccountsParams, opts ...grpc.CallOption) (*ListAccountsResult, error) { out := new(ListAccountsResult) err := c.cc.Invoke(ctx, Control_ListAccounts_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) SetGrant(ctx context.Context, in *SetGrantParams, opts ...grpc.CallOption) (*SetGrantResult, error) { out := new(SetGrantResult) err := c.cc.Invoke(ctx, Control_SetGrant_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *controlClient) DeleteGrant(ctx context.Context, in *DeleteGrantParams, opts ...grpc.CallOption) (*DeleteGrantResult, error) { out := new(DeleteGrantResult) err := c.cc.Invoke(ctx, Control_DeleteGrant_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // ControlServer is the server API for Control service. // All implementations must embed UnimplementedControlServer // for forward compatibility type ControlServer interface { GetStatus(context.Context, *GetStatusParams) (*GetStatusResult, error) CreateIssuerPair(context.Context, *CreateIssuerPairParams) (*CreateIssuerPairResult, error) ImportIssuerPair(context.Context, *ImportIssuerPairParams) (*ImportIssuerPairResult, error) RevokeIssuerPair(context.Context, *RevokeIssuerPairParams) (*RevokeIssuerPairResult, error) UnrevokeIssuerPair(context.Context, *UnrevokeIssuerPairParams) (*UnrevokeIssuerPairResult, error) ListIssuerPairs(context.Context, *ListIssuerPairsParams) (*ListIssuerPairsResult, error) GetIssuerCertificate(context.Context, *GetIssuerCertificateParams) (*GetIssuerCertificateResult, error) CreateServicePair(context.Context, *CreateServicePairParams) (*CreateServicePairResult, error) RevokeServicePair(context.Context, *RevokeServicePairParams) (*RevokeServicePairResult, error) UnrevokeServicePair(context.Context, *UnrevokeServicePairParams) (*UnrevokeServicePairResult, error) ListServicePairs(context.Context, *ListServicePairsParams) (*ListServicePairsResult, error) GetServicePair(context.Context, *GetServicePairParams) (*GetServicePairResult, error) CreateAccount(context.Context, *CreateAccountParams) (*CreateAccountResult, error) DeleteAccount(context.Context, *DeleteAccountParams) (*DeleteAccountResult, error) UpdateAccount(context.Context, *UpdateAccountParams) (*UpdateAccountResult, error) GetAccount(context.Context, *GetAccountParams) (*GetAccountResult, error) ListAccounts(context.Context, *ListAccountsParams) (*ListAccountsResult, error) SetGrant(context.Context, *SetGrantParams) (*SetGrantResult, error) DeleteGrant(context.Context, *DeleteGrantParams) (*DeleteGrantResult, error) mustEmbedUnimplementedControlServer() } // UnimplementedControlServer must be embedded to have forward compatible implementations. type UnimplementedControlServer struct { } func (UnimplementedControlServer) GetStatus(context.Context, *GetStatusParams) (*GetStatusResult, error) { return nil, status.Errorf(codes.Unimplemented, "method GetStatus not implemented") } func (UnimplementedControlServer) CreateIssuerPair(context.Context, *CreateIssuerPairParams) (*CreateIssuerPairResult, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateIssuerPair not implemented") } func (UnimplementedControlServer) ImportIssuerPair(context.Context, *ImportIssuerPairParams) (*ImportIssuerPairResult, error) { return nil, status.Errorf(codes.Unimplemented, "method ImportIssuerPair not implemented") } func (UnimplementedControlServer) RevokeIssuerPair(context.Context, *RevokeIssuerPairParams) (*RevokeIssuerPairResult, error) { return nil, status.Errorf(codes.Unimplemented, "method RevokeIssuerPair not implemented") } func (UnimplementedControlServer) UnrevokeIssuerPair(context.Context, *UnrevokeIssuerPairParams) (*UnrevokeIssuerPairResult, error) { return nil, status.Errorf(codes.Unimplemented, "method UnrevokeIssuerPair not implemented") } func (UnimplementedControlServer) ListIssuerPairs(context.Context, *ListIssuerPairsParams) (*ListIssuerPairsResult, error) { return nil, status.Errorf(codes.Unimplemented, "method ListIssuerPairs not implemented") } func (UnimplementedControlServer) GetIssuerCertificate(context.Context, *GetIssuerCertificateParams) (*GetIssuerCertificateResult, error) { return nil, status.Errorf(codes.Unimplemented, "method GetIssuerCertificate not implemented") } func (UnimplementedControlServer) CreateServicePair(context.Context, *CreateServicePairParams) (*CreateServicePairResult, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateServicePair not implemented") } func (UnimplementedControlServer) RevokeServicePair(context.Context, *RevokeServicePairParams) (*RevokeServicePairResult, error) { return nil, status.Errorf(codes.Unimplemented, "method RevokeServicePair not implemented") } func (UnimplementedControlServer) UnrevokeServicePair(context.Context, *UnrevokeServicePairParams) (*UnrevokeServicePairResult, error) { return nil, status.Errorf(codes.Unimplemented, "method UnrevokeServicePair not implemented") } func (UnimplementedControlServer) ListServicePairs(context.Context, *ListServicePairsParams) (*ListServicePairsResult, error) { return nil, status.Errorf(codes.Unimplemented, "method ListServicePairs not implemented") } func (UnimplementedControlServer) GetServicePair(context.Context, *GetServicePairParams) (*GetServicePairResult, error) { return nil, status.Errorf(codes.Unimplemented, "method GetServicePair not implemented") } func (UnimplementedControlServer) CreateAccount(context.Context, *CreateAccountParams) (*CreateAccountResult, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAccount not implemented") } func (UnimplementedControlServer) DeleteAccount(context.Context, *DeleteAccountParams) (*DeleteAccountResult, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAccount not implemented") } func (UnimplementedControlServer) UpdateAccount(context.Context, *UpdateAccountParams) (*UpdateAccountResult, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateAccount not implemented") } func (UnimplementedControlServer) GetAccount(context.Context, *GetAccountParams) (*GetAccountResult, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented") } func (UnimplementedControlServer) ListAccounts(context.Context, *ListAccountsParams) (*ListAccountsResult, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented") } func (UnimplementedControlServer) SetGrant(context.Context, *SetGrantParams) (*SetGrantResult, error) { return nil, status.Errorf(codes.Unimplemented, "method SetGrant not implemented") } func (UnimplementedControlServer) DeleteGrant(context.Context, *DeleteGrantParams) (*DeleteGrantResult, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteGrant not implemented") } func (UnimplementedControlServer) mustEmbedUnimplementedControlServer() {} // UnsafeControlServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ControlServer will // result in compilation errors. type UnsafeControlServer interface { mustEmbedUnimplementedControlServer() } func RegisterControlServer(s grpc.ServiceRegistrar, srv ControlServer) { s.RegisterService(&Control_ServiceDesc, srv) } func _Control_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetStatusParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).GetStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_GetStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).GetStatus(ctx, req.(*GetStatusParams)) } return interceptor(ctx, in, info, handler) } func _Control_CreateIssuerPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateIssuerPairParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).CreateIssuerPair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_CreateIssuerPair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).CreateIssuerPair(ctx, req.(*CreateIssuerPairParams)) } return interceptor(ctx, in, info, handler) } func _Control_ImportIssuerPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ImportIssuerPairParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).ImportIssuerPair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_ImportIssuerPair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).ImportIssuerPair(ctx, req.(*ImportIssuerPairParams)) } return interceptor(ctx, in, info, handler) } func _Control_RevokeIssuerPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RevokeIssuerPairParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).RevokeIssuerPair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_RevokeIssuerPair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).RevokeIssuerPair(ctx, req.(*RevokeIssuerPairParams)) } return interceptor(ctx, in, info, handler) } func _Control_UnrevokeIssuerPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnrevokeIssuerPairParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).UnrevokeIssuerPair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_UnrevokeIssuerPair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).UnrevokeIssuerPair(ctx, req.(*UnrevokeIssuerPairParams)) } return interceptor(ctx, in, info, handler) } func _Control_ListIssuerPairs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListIssuerPairsParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).ListIssuerPairs(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_ListIssuerPairs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).ListIssuerPairs(ctx, req.(*ListIssuerPairsParams)) } return interceptor(ctx, in, info, handler) } func _Control_GetIssuerCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetIssuerCertificateParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).GetIssuerCertificate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_GetIssuerCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).GetIssuerCertificate(ctx, req.(*GetIssuerCertificateParams)) } return interceptor(ctx, in, info, handler) } func _Control_CreateServicePair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateServicePairParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).CreateServicePair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_CreateServicePair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).CreateServicePair(ctx, req.(*CreateServicePairParams)) } return interceptor(ctx, in, info, handler) } func _Control_RevokeServicePair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RevokeServicePairParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).RevokeServicePair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_RevokeServicePair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).RevokeServicePair(ctx, req.(*RevokeServicePairParams)) } return interceptor(ctx, in, info, handler) } func _Control_UnrevokeServicePair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnrevokeServicePairParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).UnrevokeServicePair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_UnrevokeServicePair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).UnrevokeServicePair(ctx, req.(*UnrevokeServicePairParams)) } return interceptor(ctx, in, info, handler) } func _Control_ListServicePairs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListServicePairsParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).ListServicePairs(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_ListServicePairs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).ListServicePairs(ctx, req.(*ListServicePairsParams)) } return interceptor(ctx, in, info, handler) } func _Control_GetServicePair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetServicePairParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).GetServicePair(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_GetServicePair_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).GetServicePair(ctx, req.(*GetServicePairParams)) } return interceptor(ctx, in, info, handler) } func _Control_CreateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateAccountParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).CreateAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_CreateAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).CreateAccount(ctx, req.(*CreateAccountParams)) } return interceptor(ctx, in, info, handler) } func _Control_DeleteAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteAccountParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).DeleteAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_DeleteAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).DeleteAccount(ctx, req.(*DeleteAccountParams)) } return interceptor(ctx, in, info, handler) } func _Control_UpdateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateAccountParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).UpdateAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_UpdateAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).UpdateAccount(ctx, req.(*UpdateAccountParams)) } return interceptor(ctx, in, info, handler) } func _Control_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetAccountParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).GetAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_GetAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).GetAccount(ctx, req.(*GetAccountParams)) } return interceptor(ctx, in, info, handler) } func _Control_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListAccountsParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).ListAccounts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_ListAccounts_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).ListAccounts(ctx, req.(*ListAccountsParams)) } return interceptor(ctx, in, info, handler) } func _Control_SetGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetGrantParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).SetGrant(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_SetGrant_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).SetGrant(ctx, req.(*SetGrantParams)) } return interceptor(ctx, in, info, handler) } func _Control_DeleteGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteGrantParams) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ControlServer).DeleteGrant(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Control_DeleteGrant_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ControlServer).DeleteGrant(ctx, req.(*DeleteGrantParams)) } return interceptor(ctx, in, info, handler) } // Control_ServiceDesc is the grpc.ServiceDesc for Control service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Control_ServiceDesc = grpc.ServiceDesc{ ServiceName: "certmanagercontrol.Control", HandlerType: (*ControlServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getStatus", Handler: _Control_GetStatus_Handler, }, { MethodName: "createIssuerPair", Handler: _Control_CreateIssuerPair_Handler, }, { MethodName: "importIssuerPair", Handler: _Control_ImportIssuerPair_Handler, }, { MethodName: "revokeIssuerPair", Handler: _Control_RevokeIssuerPair_Handler, }, { MethodName: "unrevokeIssuerPair", Handler: _Control_UnrevokeIssuerPair_Handler, }, { MethodName: "listIssuerPairs", Handler: _Control_ListIssuerPairs_Handler, }, { MethodName: "getIssuerCertificate", Handler: _Control_GetIssuerCertificate_Handler, }, { MethodName: "createServicePair", Handler: _Control_CreateServicePair_Handler, }, { MethodName: "revokeServicePair", Handler: _Control_RevokeServicePair_Handler, }, { MethodName: "unrevokeServicePair", Handler: _Control_UnrevokeServicePair_Handler, }, { MethodName: "listServicePairs", Handler: _Control_ListServicePairs_Handler, }, { MethodName: "getServicePair", Handler: _Control_GetServicePair_Handler, }, { MethodName: "createAccount", Handler: _Control_CreateAccount_Handler, }, { MethodName: "deleteAccount", Handler: _Control_DeleteAccount_Handler, }, { MethodName: "updateAccount", Handler: _Control_UpdateAccount_Handler, }, { MethodName: "getAccount", Handler: _Control_GetAccount_Handler, }, { MethodName: "listAccounts", Handler: _Control_ListAccounts_Handler, }, { MethodName: "setGrant", Handler: _Control_SetGrant_Handler, }, { MethodName: "deleteGrant", Handler: _Control_DeleteGrant_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cmctl.proto", }