// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v3.21.12 // source: certmanagercontrol.proto package certmanagercontrol 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" ) // 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) } 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 } // 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) 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) 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) } // 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, }, }, Streams: []grpc.StreamDesc{}, Metadata: "certmanagercontrol.proto", }