// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.4.0 // - protoc v3.20.3 // source: identity.proto package identity 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.62.0 or later. const _ = grpc.SupportPackageIsVersion8 const ( Identity_Certify_FullMethodName = "/io.linkerd.proxy.identity.Identity/Certify" ) // IdentityClient is the client API for Identity 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 IdentityClient interface { // Requests that a time-bounded certificate be signed. // // The requester must provide a token that verifies the client's identity and // a Certificate Signing Request that adheres to the service naming rules. // // Errors are returned when the provided request is invalid or when // authentication cannot be performed. Certify(ctx context.Context, in *CertifyRequest, opts ...grpc.CallOption) (*CertifyResponse, error) } type identityClient struct { cc grpc.ClientConnInterface } func NewIdentityClient(cc grpc.ClientConnInterface) IdentityClient { return &identityClient{cc} } func (c *identityClient) Certify(ctx context.Context, in *CertifyRequest, opts ...grpc.CallOption) (*CertifyResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CertifyResponse) err := c.cc.Invoke(ctx, Identity_Certify_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // IdentityServer is the server API for Identity service. // All implementations must embed UnimplementedIdentityServer // for forward compatibility type IdentityServer interface { // Requests that a time-bounded certificate be signed. // // The requester must provide a token that verifies the client's identity and // a Certificate Signing Request that adheres to the service naming rules. // // Errors are returned when the provided request is invalid or when // authentication cannot be performed. Certify(context.Context, *CertifyRequest) (*CertifyResponse, error) mustEmbedUnimplementedIdentityServer() } // UnimplementedIdentityServer must be embedded to have forward compatible implementations. type UnimplementedIdentityServer struct { } func (UnimplementedIdentityServer) Certify(context.Context, *CertifyRequest) (*CertifyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Certify not implemented") } func (UnimplementedIdentityServer) mustEmbedUnimplementedIdentityServer() {} // UnsafeIdentityServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to IdentityServer will // result in compilation errors. type UnsafeIdentityServer interface { mustEmbedUnimplementedIdentityServer() } func RegisterIdentityServer(s grpc.ServiceRegistrar, srv IdentityServer) { s.RegisterService(&Identity_ServiceDesc, srv) } func _Identity_Certify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CertifyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(IdentityServer).Certify(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Identity_Certify_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(IdentityServer).Certify(ctx, req.(*CertifyRequest)) } return interceptor(ctx, in, info, handler) } // Identity_ServiceDesc is the grpc.ServiceDesc for Identity service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Identity_ServiceDesc = grpc.ServiceDesc{ ServiceName: "io.linkerd.proxy.identity.Identity", HandlerType: (*IdentityServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Certify", Handler: _Identity_Certify_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "identity.proto", }