| // Code generated by protoc-gen-go. |
| // source: github.com/luci/luci-go/tokenserver/api/admin/v1/certificate_authorities.proto |
| // DO NOT EDIT! |
| |
| package admin |
| |
| import prpc "github.com/luci/luci-go/grpc/prpc" |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| import google_protobuf "github.com/golang/protobuf/ptypes/empty" |
| import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp" |
| |
| import ( |
| context "golang.org/x/net/context" |
| grpc "google.golang.org/grpc" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // FetchCRLRequest identifies a name of CA to fetch CRL for. |
| type FetchCRLRequest struct { |
| Cn string `protobuf:"bytes,1,opt,name=cn" json:"cn,omitempty"` |
| Force bool `protobuf:"varint,2,opt,name=force" json:"force,omitempty"` |
| } |
| |
| func (m *FetchCRLRequest) Reset() { *m = FetchCRLRequest{} } |
| func (m *FetchCRLRequest) String() string { return proto.CompactTextString(m) } |
| func (*FetchCRLRequest) ProtoMessage() {} |
| func (*FetchCRLRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } |
| |
| func (m *FetchCRLRequest) GetCn() string { |
| if m != nil { |
| return m.Cn |
| } |
| return "" |
| } |
| |
| func (m *FetchCRLRequest) GetForce() bool { |
| if m != nil { |
| return m.Force |
| } |
| return false |
| } |
| |
| // FetchCRLResponse is returned by FetchCRL. |
| type FetchCRLResponse struct { |
| CrlStatus *CRLStatus `protobuf:"bytes,1,opt,name=crl_status,json=crlStatus" json:"crl_status,omitempty"` |
| } |
| |
| func (m *FetchCRLResponse) Reset() { *m = FetchCRLResponse{} } |
| func (m *FetchCRLResponse) String() string { return proto.CompactTextString(m) } |
| func (*FetchCRLResponse) ProtoMessage() {} |
| func (*FetchCRLResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} } |
| |
| func (m *FetchCRLResponse) GetCrlStatus() *CRLStatus { |
| if m != nil { |
| return m.CrlStatus |
| } |
| return nil |
| } |
| |
| // ListCAsResponse is returned by ListCAs. |
| type ListCAsResponse struct { |
| Cn []string `protobuf:"bytes,1,rep,name=cn" json:"cn,omitempty"` |
| } |
| |
| func (m *ListCAsResponse) Reset() { *m = ListCAsResponse{} } |
| func (m *ListCAsResponse) String() string { return proto.CompactTextString(m) } |
| func (*ListCAsResponse) ProtoMessage() {} |
| func (*ListCAsResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} } |
| |
| func (m *ListCAsResponse) GetCn() []string { |
| if m != nil { |
| return m.Cn |
| } |
| return nil |
| } |
| |
| // GetCAStatusRequest identifies a name of CA to fetch. |
| type GetCAStatusRequest struct { |
| Cn string `protobuf:"bytes,1,opt,name=cn" json:"cn,omitempty"` |
| } |
| |
| func (m *GetCAStatusRequest) Reset() { *m = GetCAStatusRequest{} } |
| func (m *GetCAStatusRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetCAStatusRequest) ProtoMessage() {} |
| func (*GetCAStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} } |
| |
| func (m *GetCAStatusRequest) GetCn() string { |
| if m != nil { |
| return m.Cn |
| } |
| return "" |
| } |
| |
| // GetCAStatusResponse is returned by GetCAStatus method. |
| // |
| // If requested CA doesn't exist, all fields are empty. |
| type GetCAStatusResponse struct { |
| Config *CertificateAuthorityConfig `protobuf:"bytes,1,opt,name=config" json:"config,omitempty"` |
| Cert string `protobuf:"bytes,2,opt,name=cert" json:"cert,omitempty"` |
| Removed bool `protobuf:"varint,3,opt,name=removed" json:"removed,omitempty"` |
| Ready bool `protobuf:"varint,4,opt,name=ready" json:"ready,omitempty"` |
| AddedRev string `protobuf:"bytes,5,opt,name=added_rev,json=addedRev" json:"added_rev,omitempty"` |
| UpdatedRev string `protobuf:"bytes,6,opt,name=updated_rev,json=updatedRev" json:"updated_rev,omitempty"` |
| RemovedRev string `protobuf:"bytes,7,opt,name=removed_rev,json=removedRev" json:"removed_rev,omitempty"` |
| CrlStatus *CRLStatus `protobuf:"bytes,8,opt,name=crl_status,json=crlStatus" json:"crl_status,omitempty"` |
| } |
| |
| func (m *GetCAStatusResponse) Reset() { *m = GetCAStatusResponse{} } |
| func (m *GetCAStatusResponse) String() string { return proto.CompactTextString(m) } |
| func (*GetCAStatusResponse) ProtoMessage() {} |
| func (*GetCAStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} } |
| |
| func (m *GetCAStatusResponse) GetConfig() *CertificateAuthorityConfig { |
| if m != nil { |
| return m.Config |
| } |
| return nil |
| } |
| |
| func (m *GetCAStatusResponse) GetCert() string { |
| if m != nil { |
| return m.Cert |
| } |
| return "" |
| } |
| |
| func (m *GetCAStatusResponse) GetRemoved() bool { |
| if m != nil { |
| return m.Removed |
| } |
| return false |
| } |
| |
| func (m *GetCAStatusResponse) GetReady() bool { |
| if m != nil { |
| return m.Ready |
| } |
| return false |
| } |
| |
| func (m *GetCAStatusResponse) GetAddedRev() string { |
| if m != nil { |
| return m.AddedRev |
| } |
| return "" |
| } |
| |
| func (m *GetCAStatusResponse) GetUpdatedRev() string { |
| if m != nil { |
| return m.UpdatedRev |
| } |
| return "" |
| } |
| |
| func (m *GetCAStatusResponse) GetRemovedRev() string { |
| if m != nil { |
| return m.RemovedRev |
| } |
| return "" |
| } |
| |
| func (m *GetCAStatusResponse) GetCrlStatus() *CRLStatus { |
| if m != nil { |
| return m.CrlStatus |
| } |
| return nil |
| } |
| |
| // IsRevokedCertRequest contains a name of the CA and a cert serial number. |
| type IsRevokedCertRequest struct { |
| Ca string `protobuf:"bytes,1,opt,name=ca" json:"ca,omitempty"` |
| Sn string `protobuf:"bytes,2,opt,name=sn" json:"sn,omitempty"` |
| } |
| |
| func (m *IsRevokedCertRequest) Reset() { *m = IsRevokedCertRequest{} } |
| func (m *IsRevokedCertRequest) String() string { return proto.CompactTextString(m) } |
| func (*IsRevokedCertRequest) ProtoMessage() {} |
| func (*IsRevokedCertRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} } |
| |
| func (m *IsRevokedCertRequest) GetCa() string { |
| if m != nil { |
| return m.Ca |
| } |
| return "" |
| } |
| |
| func (m *IsRevokedCertRequest) GetSn() string { |
| if m != nil { |
| return m.Sn |
| } |
| return "" |
| } |
| |
| // IsRevokedCertResponse is returned by IsRevokedCert |
| type IsRevokedCertResponse struct { |
| Revoked bool `protobuf:"varint,1,opt,name=revoked" json:"revoked,omitempty"` |
| } |
| |
| func (m *IsRevokedCertResponse) Reset() { *m = IsRevokedCertResponse{} } |
| func (m *IsRevokedCertResponse) String() string { return proto.CompactTextString(m) } |
| func (*IsRevokedCertResponse) ProtoMessage() {} |
| func (*IsRevokedCertResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} } |
| |
| func (m *IsRevokedCertResponse) GetRevoked() bool { |
| if m != nil { |
| return m.Revoked |
| } |
| return false |
| } |
| |
| // CheckCertificateRequest contains a pem encoded certificate to check. |
| type CheckCertificateRequest struct { |
| CertPem string `protobuf:"bytes,1,opt,name=cert_pem,json=certPem" json:"cert_pem,omitempty"` |
| } |
| |
| func (m *CheckCertificateRequest) Reset() { *m = CheckCertificateRequest{} } |
| func (m *CheckCertificateRequest) String() string { return proto.CompactTextString(m) } |
| func (*CheckCertificateRequest) ProtoMessage() {} |
| func (*CheckCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} } |
| |
| func (m *CheckCertificateRequest) GetCertPem() string { |
| if m != nil { |
| return m.CertPem |
| } |
| return "" |
| } |
| |
| // CheckCertificateResponse is returned by CheckCertificate. |
| type CheckCertificateResponse struct { |
| IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid" json:"is_valid,omitempty"` |
| InvalidReason string `protobuf:"bytes,2,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` |
| } |
| |
| func (m *CheckCertificateResponse) Reset() { *m = CheckCertificateResponse{} } |
| func (m *CheckCertificateResponse) String() string { return proto.CompactTextString(m) } |
| func (*CheckCertificateResponse) ProtoMessage() {} |
| func (*CheckCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} } |
| |
| func (m *CheckCertificateResponse) GetIsValid() bool { |
| if m != nil { |
| return m.IsValid |
| } |
| return false |
| } |
| |
| func (m *CheckCertificateResponse) GetInvalidReason() string { |
| if m != nil { |
| return m.InvalidReason |
| } |
| return "" |
| } |
| |
| // CRLStatus describes the latest known state of imported CRL. |
| type CRLStatus struct { |
| LastUpdateTime *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"` |
| LastFetchTime *google_protobuf1.Timestamp `protobuf:"bytes,2,opt,name=last_fetch_time,json=lastFetchTime" json:"last_fetch_time,omitempty"` |
| LastFetchEtag string `protobuf:"bytes,3,opt,name=last_fetch_etag,json=lastFetchEtag" json:"last_fetch_etag,omitempty"` |
| RevokedCertsCount int64 `protobuf:"varint,4,opt,name=revoked_certs_count,json=revokedCertsCount" json:"revoked_certs_count,omitempty"` |
| } |
| |
| func (m *CRLStatus) Reset() { *m = CRLStatus{} } |
| func (m *CRLStatus) String() string { return proto.CompactTextString(m) } |
| func (*CRLStatus) ProtoMessage() {} |
| func (*CRLStatus) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} } |
| |
| func (m *CRLStatus) GetLastUpdateTime() *google_protobuf1.Timestamp { |
| if m != nil { |
| return m.LastUpdateTime |
| } |
| return nil |
| } |
| |
| func (m *CRLStatus) GetLastFetchTime() *google_protobuf1.Timestamp { |
| if m != nil { |
| return m.LastFetchTime |
| } |
| return nil |
| } |
| |
| func (m *CRLStatus) GetLastFetchEtag() string { |
| if m != nil { |
| return m.LastFetchEtag |
| } |
| return "" |
| } |
| |
| func (m *CRLStatus) GetRevokedCertsCount() int64 { |
| if m != nil { |
| return m.RevokedCertsCount |
| } |
| return 0 |
| } |
| |
| func init() { |
| proto.RegisterType((*FetchCRLRequest)(nil), "tokenserver.admin.FetchCRLRequest") |
| proto.RegisterType((*FetchCRLResponse)(nil), "tokenserver.admin.FetchCRLResponse") |
| proto.RegisterType((*ListCAsResponse)(nil), "tokenserver.admin.ListCAsResponse") |
| proto.RegisterType((*GetCAStatusRequest)(nil), "tokenserver.admin.GetCAStatusRequest") |
| proto.RegisterType((*GetCAStatusResponse)(nil), "tokenserver.admin.GetCAStatusResponse") |
| proto.RegisterType((*IsRevokedCertRequest)(nil), "tokenserver.admin.IsRevokedCertRequest") |
| proto.RegisterType((*IsRevokedCertResponse)(nil), "tokenserver.admin.IsRevokedCertResponse") |
| proto.RegisterType((*CheckCertificateRequest)(nil), "tokenserver.admin.CheckCertificateRequest") |
| proto.RegisterType((*CheckCertificateResponse)(nil), "tokenserver.admin.CheckCertificateResponse") |
| proto.RegisterType((*CRLStatus)(nil), "tokenserver.admin.CRLStatus") |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConn |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion4 |
| |
| // Client API for CertificateAuthorities service |
| |
| type CertificateAuthoritiesClient interface { |
| // FetchCRL makes the server fetch a CRL for some CA. |
| FetchCRL(ctx context.Context, in *FetchCRLRequest, opts ...grpc.CallOption) (*FetchCRLResponse, error) |
| // ListCAs returns a list of Common Names of registered CAs. |
| ListCAs(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ListCAsResponse, error) |
| // GetCAStatus returns configuration of some CA defined in the config. |
| GetCAStatus(ctx context.Context, in *GetCAStatusRequest, opts ...grpc.CallOption) (*GetCAStatusResponse, error) |
| // IsRevokedCert says whether a certificate serial number is in the CRL. |
| IsRevokedCert(ctx context.Context, in *IsRevokedCertRequest, opts ...grpc.CallOption) (*IsRevokedCertResponse, error) |
| // CheckCertificate says whether a certificate is valid or not. |
| CheckCertificate(ctx context.Context, in *CheckCertificateRequest, opts ...grpc.CallOption) (*CheckCertificateResponse, error) |
| } |
| type certificateAuthoritiesPRPCClient struct { |
| client *prpc.Client |
| } |
| |
| func NewCertificateAuthoritiesPRPCClient(client *prpc.Client) CertificateAuthoritiesClient { |
| return &certificateAuthoritiesPRPCClient{client} |
| } |
| |
| func (c *certificateAuthoritiesPRPCClient) FetchCRL(ctx context.Context, in *FetchCRLRequest, opts ...grpc.CallOption) (*FetchCRLResponse, error) { |
| out := new(FetchCRLResponse) |
| err := c.client.Call(ctx, "tokenserver.admin.CertificateAuthorities", "FetchCRL", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *certificateAuthoritiesPRPCClient) ListCAs(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ListCAsResponse, error) { |
| out := new(ListCAsResponse) |
| err := c.client.Call(ctx, "tokenserver.admin.CertificateAuthorities", "ListCAs", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *certificateAuthoritiesPRPCClient) GetCAStatus(ctx context.Context, in *GetCAStatusRequest, opts ...grpc.CallOption) (*GetCAStatusResponse, error) { |
| out := new(GetCAStatusResponse) |
| err := c.client.Call(ctx, "tokenserver.admin.CertificateAuthorities", "GetCAStatus", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *certificateAuthoritiesPRPCClient) IsRevokedCert(ctx context.Context, in *IsRevokedCertRequest, opts ...grpc.CallOption) (*IsRevokedCertResponse, error) { |
| out := new(IsRevokedCertResponse) |
| err := c.client.Call(ctx, "tokenserver.admin.CertificateAuthorities", "IsRevokedCert", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *certificateAuthoritiesPRPCClient) CheckCertificate(ctx context.Context, in *CheckCertificateRequest, opts ...grpc.CallOption) (*CheckCertificateResponse, error) { |
| out := new(CheckCertificateResponse) |
| err := c.client.Call(ctx, "tokenserver.admin.CertificateAuthorities", "CheckCertificate", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| type certificateAuthoritiesClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewCertificateAuthoritiesClient(cc *grpc.ClientConn) CertificateAuthoritiesClient { |
| return &certificateAuthoritiesClient{cc} |
| } |
| |
| func (c *certificateAuthoritiesClient) FetchCRL(ctx context.Context, in *FetchCRLRequest, opts ...grpc.CallOption) (*FetchCRLResponse, error) { |
| out := new(FetchCRLResponse) |
| err := grpc.Invoke(ctx, "/tokenserver.admin.CertificateAuthorities/FetchCRL", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *certificateAuthoritiesClient) ListCAs(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*ListCAsResponse, error) { |
| out := new(ListCAsResponse) |
| err := grpc.Invoke(ctx, "/tokenserver.admin.CertificateAuthorities/ListCAs", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *certificateAuthoritiesClient) GetCAStatus(ctx context.Context, in *GetCAStatusRequest, opts ...grpc.CallOption) (*GetCAStatusResponse, error) { |
| out := new(GetCAStatusResponse) |
| err := grpc.Invoke(ctx, "/tokenserver.admin.CertificateAuthorities/GetCAStatus", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *certificateAuthoritiesClient) IsRevokedCert(ctx context.Context, in *IsRevokedCertRequest, opts ...grpc.CallOption) (*IsRevokedCertResponse, error) { |
| out := new(IsRevokedCertResponse) |
| err := grpc.Invoke(ctx, "/tokenserver.admin.CertificateAuthorities/IsRevokedCert", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *certificateAuthoritiesClient) CheckCertificate(ctx context.Context, in *CheckCertificateRequest, opts ...grpc.CallOption) (*CheckCertificateResponse, error) { |
| out := new(CheckCertificateResponse) |
| err := grpc.Invoke(ctx, "/tokenserver.admin.CertificateAuthorities/CheckCertificate", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // Server API for CertificateAuthorities service |
| |
| type CertificateAuthoritiesServer interface { |
| // FetchCRL makes the server fetch a CRL for some CA. |
| FetchCRL(context.Context, *FetchCRLRequest) (*FetchCRLResponse, error) |
| // ListCAs returns a list of Common Names of registered CAs. |
| ListCAs(context.Context, *google_protobuf.Empty) (*ListCAsResponse, error) |
| // GetCAStatus returns configuration of some CA defined in the config. |
| GetCAStatus(context.Context, *GetCAStatusRequest) (*GetCAStatusResponse, error) |
| // IsRevokedCert says whether a certificate serial number is in the CRL. |
| IsRevokedCert(context.Context, *IsRevokedCertRequest) (*IsRevokedCertResponse, error) |
| // CheckCertificate says whether a certificate is valid or not. |
| CheckCertificate(context.Context, *CheckCertificateRequest) (*CheckCertificateResponse, error) |
| } |
| |
| func RegisterCertificateAuthoritiesServer(s prpc.Registrar, srv CertificateAuthoritiesServer) { |
| s.RegisterService(&_CertificateAuthorities_serviceDesc, srv) |
| } |
| |
| func _CertificateAuthorities_FetchCRL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(FetchCRLRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CertificateAuthoritiesServer).FetchCRL(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tokenserver.admin.CertificateAuthorities/FetchCRL", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CertificateAuthoritiesServer).FetchCRL(ctx, req.(*FetchCRLRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CertificateAuthorities_ListCAs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(google_protobuf.Empty) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CertificateAuthoritiesServer).ListCAs(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tokenserver.admin.CertificateAuthorities/ListCAs", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CertificateAuthoritiesServer).ListCAs(ctx, req.(*google_protobuf.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CertificateAuthorities_GetCAStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetCAStatusRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CertificateAuthoritiesServer).GetCAStatus(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tokenserver.admin.CertificateAuthorities/GetCAStatus", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CertificateAuthoritiesServer).GetCAStatus(ctx, req.(*GetCAStatusRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CertificateAuthorities_IsRevokedCert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(IsRevokedCertRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CertificateAuthoritiesServer).IsRevokedCert(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tokenserver.admin.CertificateAuthorities/IsRevokedCert", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CertificateAuthoritiesServer).IsRevokedCert(ctx, req.(*IsRevokedCertRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _CertificateAuthorities_CheckCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CheckCertificateRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(CertificateAuthoritiesServer).CheckCertificate(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tokenserver.admin.CertificateAuthorities/CheckCertificate", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(CertificateAuthoritiesServer).CheckCertificate(ctx, req.(*CheckCertificateRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _CertificateAuthorities_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "tokenserver.admin.CertificateAuthorities", |
| HandlerType: (*CertificateAuthoritiesServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "FetchCRL", |
| Handler: _CertificateAuthorities_FetchCRL_Handler, |
| }, |
| { |
| MethodName: "ListCAs", |
| Handler: _CertificateAuthorities_ListCAs_Handler, |
| }, |
| { |
| MethodName: "GetCAStatus", |
| Handler: _CertificateAuthorities_GetCAStatus_Handler, |
| }, |
| { |
| MethodName: "IsRevokedCert", |
| Handler: _CertificateAuthorities_IsRevokedCert_Handler, |
| }, |
| { |
| MethodName: "CheckCertificate", |
| Handler: _CertificateAuthorities_CheckCertificate_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "github.com/luci/luci-go/tokenserver/api/admin/v1/certificate_authorities.proto", |
| } |
| |
| func init() { |
| proto.RegisterFile("github.com/luci/luci-go/tokenserver/api/admin/v1/certificate_authorities.proto", fileDescriptor1) |
| } |
| |
| var fileDescriptor1 = []byte{ |
| // 706 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x5d, 0x6f, 0xd3, 0x4a, |
| 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