Documentation ¶
Index ¶
- Variables
- func RegisterCertificateAuthorityServer(s grpc.ServiceRegistrar, srv CertificateAuthorityServer)
- type CertificateAuthorityClient
- type CertificateAuthorityServer
- type SignCertificateRequest
- func (*SignCertificateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignCertificateRequest) GetCertificateSigningRequest() []byte
- func (*SignCertificateRequest) ProtoMessage()
- func (x *SignCertificateRequest) ProtoReflect() protoreflect.Message
- func (x *SignCertificateRequest) Reset()
- func (x *SignCertificateRequest) String() string
- type SignCertificateResponse
- func (*SignCertificateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignCertificateResponse) GetCertificate() []byte
- func (*SignCertificateResponse) ProtoMessage()
- func (x *SignCertificateResponse) ProtoReflect() protoreflect.Message
- func (x *SignCertificateResponse) Reset()
- func (x *SignCertificateResponse) String() string
- type UnimplementedCertificateAuthorityServer
- type UnsafeCertificateAuthorityServer
Constants ¶
This section is empty.
Variables ¶
var CertificateAuthority_ServiceDesc = grpc.ServiceDesc{ ServiceName: "certificateauthority.pb.CertificateAuthority", HandlerType: (*CertificateAuthorityServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignIdentityCertificate", Handler: _CertificateAuthority_SignIdentityCertificate_Handler, }, { MethodName: "SignCertificate", Handler: _CertificateAuthority_SignCertificate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "certificate-authority/pb/service.proto", }
CertificateAuthority_ServiceDesc is the grpc.ServiceDesc for CertificateAuthority service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterCertificateAuthorityServer ¶
func RegisterCertificateAuthorityServer(s grpc.ServiceRegistrar, srv CertificateAuthorityServer)
Types ¶
type CertificateAuthorityClient ¶
type CertificateAuthorityClient interface { // SignIdentityCertificate sends a Identity Certificate Signing Request to the certificate authority // and obtains a signed certificate. Both in the PEM format. It adds EKU: '1.3.6.1.4.1.44924.1.6' . SignIdentityCertificate(ctx context.Context, in *SignCertificateRequest, opts ...grpc.CallOption) (*SignCertificateResponse, error) // SignCertificate sends a Certificate Signing Request to the certificate authority // and obtains a signed certificate. Both in the PEM format. SignCertificate(ctx context.Context, in *SignCertificateRequest, opts ...grpc.CallOption) (*SignCertificateResponse, error) }
CertificateAuthorityClient is the client API for CertificateAuthority 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.
func NewCertificateAuthorityClient ¶
func NewCertificateAuthorityClient(cc grpc.ClientConnInterface) CertificateAuthorityClient
type CertificateAuthorityServer ¶
type CertificateAuthorityServer interface { // SignIdentityCertificate sends a Identity Certificate Signing Request to the certificate authority // and obtains a signed certificate. Both in the PEM format. It adds EKU: '1.3.6.1.4.1.44924.1.6' . SignIdentityCertificate(context.Context, *SignCertificateRequest) (*SignCertificateResponse, error) // SignCertificate sends a Certificate Signing Request to the certificate authority // and obtains a signed certificate. Both in the PEM format. SignCertificate(context.Context, *SignCertificateRequest) (*SignCertificateResponse, error) // contains filtered or unexported methods }
CertificateAuthorityServer is the server API for CertificateAuthority service. All implementations must embed UnimplementedCertificateAuthorityServer for forward compatibility
type SignCertificateRequest ¶
type SignCertificateRequest struct { CertificateSigningRequest []byte `` // PEM format /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SignCertificateRequest) Descriptor
deprecated
func (*SignCertificateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignCertificateRequest.ProtoReflect.Descriptor instead.
func (*SignCertificateRequest) GetCertificateSigningRequest ¶
func (x *SignCertificateRequest) GetCertificateSigningRequest() []byte
func (*SignCertificateRequest) ProtoMessage ¶
func (*SignCertificateRequest) ProtoMessage()
func (*SignCertificateRequest) ProtoReflect ¶
func (x *SignCertificateRequest) ProtoReflect() protoreflect.Message
func (*SignCertificateRequest) Reset ¶
func (x *SignCertificateRequest) Reset()
func (*SignCertificateRequest) String ¶
func (x *SignCertificateRequest) String() string
type SignCertificateResponse ¶
type SignCertificateResponse struct { Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // PEM format // contains filtered or unexported fields }
func (*SignCertificateResponse) Descriptor
deprecated
func (*SignCertificateResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignCertificateResponse.ProtoReflect.Descriptor instead.
func (*SignCertificateResponse) GetCertificate ¶
func (x *SignCertificateResponse) GetCertificate() []byte
func (*SignCertificateResponse) ProtoMessage ¶
func (*SignCertificateResponse) ProtoMessage()
func (*SignCertificateResponse) ProtoReflect ¶
func (x *SignCertificateResponse) ProtoReflect() protoreflect.Message
func (*SignCertificateResponse) Reset ¶
func (x *SignCertificateResponse) Reset()
func (*SignCertificateResponse) String ¶
func (x *SignCertificateResponse) String() string
type UnimplementedCertificateAuthorityServer ¶
type UnimplementedCertificateAuthorityServer struct { }
UnimplementedCertificateAuthorityServer must be embedded to have forward compatible implementations.
func (UnimplementedCertificateAuthorityServer) SignCertificate ¶
func (UnimplementedCertificateAuthorityServer) SignCertificate(context.Context, *SignCertificateRequest) (*SignCertificateResponse, error)
func (UnimplementedCertificateAuthorityServer) SignIdentityCertificate ¶
func (UnimplementedCertificateAuthorityServer) SignIdentityCertificate(context.Context, *SignCertificateRequest) (*SignCertificateResponse, error)
type UnsafeCertificateAuthorityServer ¶
type UnsafeCertificateAuthorityServer interface {
// contains filtered or unexported methods
}
UnsafeCertificateAuthorityServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CertificateAuthorityServer will result in compilation errors.