Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCRLGeneratorServer(s grpc.ServiceRegistrar, srv CRLGeneratorServer)
- func RegisterCertificateAuthorityServer(s grpc.ServiceRegistrar, srv CertificateAuthorityServer)
- type CRLGeneratorClient
- type CRLGeneratorServer
- type CRLGenerator_GenerateCRLClient
- type CRLGenerator_GenerateCRLServer
- type CRLMetadata
- func (*CRLMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *CRLMetadata) GetIssuerNameID() int64
- func (x *CRLMetadata) GetShardIdx() int64
- func (x *CRLMetadata) GetThisUpdate() *timestamppb.Timestamp
- func (*CRLMetadata) ProtoMessage()
- func (x *CRLMetadata) ProtoReflect() protoreflect.Message
- func (x *CRLMetadata) Reset()
- func (x *CRLMetadata) String() string
- type CertificateAuthorityClient
- type CertificateAuthorityServer
- type GenerateCRLRequest
- func (*GenerateCRLRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateCRLRequest) GetEntry() *proto.CRLEntry
- func (x *GenerateCRLRequest) GetMetadata() *CRLMetadata
- func (x *GenerateCRLRequest) GetPayload() isGenerateCRLRequest_Payload
- func (*GenerateCRLRequest) ProtoMessage()
- func (x *GenerateCRLRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateCRLRequest) Reset()
- func (x *GenerateCRLRequest) String() string
- type GenerateCRLRequest_Entry
- type GenerateCRLRequest_Metadata
- type GenerateCRLResponse
- func (*GenerateCRLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateCRLResponse) GetChunk() []byte
- func (*GenerateCRLResponse) ProtoMessage()
- func (x *GenerateCRLResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateCRLResponse) Reset()
- func (x *GenerateCRLResponse) String() string
- type IssueCertificateRequest
- func (*IssueCertificateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IssueCertificateRequest) GetCertProfileName() string
- func (x *IssueCertificateRequest) GetCsr() []byte
- func (x *IssueCertificateRequest) GetOrderID() int64
- func (x *IssueCertificateRequest) GetRegistrationID() int64
- func (*IssueCertificateRequest) ProtoMessage()
- func (x *IssueCertificateRequest) ProtoReflect() protoreflect.Message
- func (x *IssueCertificateRequest) Reset()
- func (x *IssueCertificateRequest) String() string
- type IssueCertificateResponse
- func (*IssueCertificateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IssueCertificateResponse) GetDER() []byte
- func (*IssueCertificateResponse) ProtoMessage()
- func (x *IssueCertificateResponse) ProtoReflect() protoreflect.Message
- func (x *IssueCertificateResponse) Reset()
- func (x *IssueCertificateResponse) String() string
- type UnimplementedCRLGeneratorServer
- type UnimplementedCertificateAuthorityServer
- type UnsafeCRLGeneratorServer
- type UnsafeCertificateAuthorityServer
Constants ¶
const (
CRLGenerator_GenerateCRL_FullMethodName = "/ca.CRLGenerator/GenerateCRL"
)
const (
CertificateAuthority_IssueCertificate_FullMethodName = "/ca.CertificateAuthority/IssueCertificate"
)
Variables ¶
var CRLGenerator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ca.CRLGenerator", HandlerType: (*CRLGeneratorServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "GenerateCRL", Handler: _CRLGenerator_GenerateCRL_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "ca.proto", }
CRLGenerator_ServiceDesc is the grpc.ServiceDesc for CRLGenerator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CertificateAuthority_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ca.CertificateAuthority", HandlerType: (*CertificateAuthorityServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IssueCertificate", Handler: _CertificateAuthority_IssueCertificate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "ca.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)
var File_ca_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCRLGeneratorServer ¶
func RegisterCRLGeneratorServer(s grpc.ServiceRegistrar, srv CRLGeneratorServer)
func RegisterCertificateAuthorityServer ¶
func RegisterCertificateAuthorityServer(s grpc.ServiceRegistrar, srv CertificateAuthorityServer)
Types ¶
type CRLGeneratorClient ¶
type CRLGeneratorClient interface {
GenerateCRL(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[GenerateCRLRequest, GenerateCRLResponse], error)
}
CRLGeneratorClient is the client API for CRLGenerator 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.
CRLGenerator signs CRLs. It is separated for the same reason as OCSPGenerator.
func NewCRLGeneratorClient ¶
func NewCRLGeneratorClient(cc grpc.ClientConnInterface) CRLGeneratorClient
type CRLGeneratorServer ¶
type CRLGeneratorServer interface { GenerateCRL(grpc.BidiStreamingServer[GenerateCRLRequest, GenerateCRLResponse]) error // contains filtered or unexported methods }
CRLGeneratorServer is the server API for CRLGenerator service. All implementations must embed UnimplementedCRLGeneratorServer for forward compatibility.
CRLGenerator signs CRLs. It is separated for the same reason as OCSPGenerator.
type CRLGenerator_GenerateCRLClient ¶
type CRLGenerator_GenerateCRLClient = grpc.BidiStreamingClient[GenerateCRLRequest, GenerateCRLResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type CRLGenerator_GenerateCRLServer ¶
type CRLGenerator_GenerateCRLServer = grpc.BidiStreamingServer[GenerateCRLRequest, GenerateCRLResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type CRLMetadata ¶
type CRLMetadata struct { // Next unused field number: 5 IssuerNameID int64 `protobuf:"varint,1,opt,name=issuerNameID,proto3" json:"issuerNameID,omitempty"` ThisUpdate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=thisUpdate,proto3" json:"thisUpdate,omitempty"` ShardIdx int64 `protobuf:"varint,3,opt,name=shardIdx,proto3" json:"shardIdx,omitempty"` // contains filtered or unexported fields }
func (*CRLMetadata) Descriptor
deprecated
func (*CRLMetadata) Descriptor() ([]byte, []int)
Deprecated: Use CRLMetadata.ProtoReflect.Descriptor instead.
func (*CRLMetadata) GetIssuerNameID ¶
func (x *CRLMetadata) GetIssuerNameID() int64
func (*CRLMetadata) GetShardIdx ¶
func (x *CRLMetadata) GetShardIdx() int64
func (*CRLMetadata) GetThisUpdate ¶
func (x *CRLMetadata) GetThisUpdate() *timestamppb.Timestamp
func (*CRLMetadata) ProtoMessage ¶
func (*CRLMetadata) ProtoMessage()
func (*CRLMetadata) ProtoReflect ¶
func (x *CRLMetadata) ProtoReflect() protoreflect.Message
func (*CRLMetadata) Reset ¶
func (x *CRLMetadata) Reset()
func (*CRLMetadata) String ¶
func (x *CRLMetadata) String() string
type CertificateAuthorityClient ¶
type CertificateAuthorityClient interface { // IssueCertificate issues a precertificate, gets SCTs, issues a certificate, and returns that. IssueCertificate(ctx context.Context, in *IssueCertificateRequest, opts ...grpc.CallOption) (*IssueCertificateResponse, 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.
CertificateAuthority issues certificates.
func NewCertificateAuthorityClient ¶
func NewCertificateAuthorityClient(cc grpc.ClientConnInterface) CertificateAuthorityClient
type CertificateAuthorityServer ¶
type CertificateAuthorityServer interface { // IssueCertificate issues a precertificate, gets SCTs, issues a certificate, and returns that. IssueCertificate(context.Context, *IssueCertificateRequest) (*IssueCertificateResponse, error) // contains filtered or unexported methods }
CertificateAuthorityServer is the server API for CertificateAuthority service. All implementations must embed UnimplementedCertificateAuthorityServer for forward compatibility.
CertificateAuthority issues certificates.
type GenerateCRLRequest ¶
type GenerateCRLRequest struct { // Types that are valid to be assigned to Payload: // // *GenerateCRLRequest_Metadata // *GenerateCRLRequest_Entry Payload isGenerateCRLRequest_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*GenerateCRLRequest) Descriptor
deprecated
func (*GenerateCRLRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateCRLRequest.ProtoReflect.Descriptor instead.
func (*GenerateCRLRequest) GetEntry ¶
func (x *GenerateCRLRequest) GetEntry() *proto.CRLEntry
func (*GenerateCRLRequest) GetMetadata ¶
func (x *GenerateCRLRequest) GetMetadata() *CRLMetadata
func (*GenerateCRLRequest) GetPayload ¶
func (x *GenerateCRLRequest) GetPayload() isGenerateCRLRequest_Payload
func (*GenerateCRLRequest) ProtoMessage ¶
func (*GenerateCRLRequest) ProtoMessage()
func (*GenerateCRLRequest) ProtoReflect ¶
func (x *GenerateCRLRequest) ProtoReflect() protoreflect.Message
func (*GenerateCRLRequest) Reset ¶
func (x *GenerateCRLRequest) Reset()
func (*GenerateCRLRequest) String ¶
func (x *GenerateCRLRequest) String() string
type GenerateCRLRequest_Metadata ¶
type GenerateCRLRequest_Metadata struct {
Metadata *CRLMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}
type GenerateCRLResponse ¶
type GenerateCRLResponse struct { Chunk []byte `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"` // contains filtered or unexported fields }
func (*GenerateCRLResponse) Descriptor
deprecated
func (*GenerateCRLResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateCRLResponse.ProtoReflect.Descriptor instead.
func (*GenerateCRLResponse) GetChunk ¶
func (x *GenerateCRLResponse) GetChunk() []byte
func (*GenerateCRLResponse) ProtoMessage ¶
func (*GenerateCRLResponse) ProtoMessage()
func (*GenerateCRLResponse) ProtoReflect ¶
func (x *GenerateCRLResponse) ProtoReflect() protoreflect.Message
func (*GenerateCRLResponse) Reset ¶
func (x *GenerateCRLResponse) Reset()
func (*GenerateCRLResponse) String ¶
func (x *GenerateCRLResponse) String() string
type IssueCertificateRequest ¶
type IssueCertificateRequest struct { // Next unused field number: 6 Csr []byte `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` RegistrationID int64 `protobuf:"varint,2,opt,name=registrationID,proto3" json:"registrationID,omitempty"` OrderID int64 `protobuf:"varint,3,opt,name=orderID,proto3" json:"orderID,omitempty"` // certProfileName is a human readable name provided by the RA and used to // determine if the CA can issue for that profile. A default name will be // assigned inside the CA during *Profile construction if no name is provided. // The value of this field should not be relied upon inside the RA. CertProfileName string `protobuf:"bytes,5,opt,name=certProfileName,proto3" json:"certProfileName,omitempty"` // contains filtered or unexported fields }
func (*IssueCertificateRequest) Descriptor
deprecated
func (*IssueCertificateRequest) Descriptor() ([]byte, []int)
Deprecated: Use IssueCertificateRequest.ProtoReflect.Descriptor instead.
func (*IssueCertificateRequest) GetCertProfileName ¶
func (x *IssueCertificateRequest) GetCertProfileName() string
func (*IssueCertificateRequest) GetCsr ¶
func (x *IssueCertificateRequest) GetCsr() []byte
func (*IssueCertificateRequest) GetOrderID ¶
func (x *IssueCertificateRequest) GetOrderID() int64
func (*IssueCertificateRequest) GetRegistrationID ¶
func (x *IssueCertificateRequest) GetRegistrationID() int64
func (*IssueCertificateRequest) ProtoMessage ¶
func (*IssueCertificateRequest) ProtoMessage()
func (*IssueCertificateRequest) ProtoReflect ¶
func (x *IssueCertificateRequest) ProtoReflect() protoreflect.Message
func (*IssueCertificateRequest) Reset ¶
func (x *IssueCertificateRequest) Reset()
func (*IssueCertificateRequest) String ¶
func (x *IssueCertificateRequest) String() string
type IssueCertificateResponse ¶
type IssueCertificateResponse struct { DER []byte `protobuf:"bytes,1,opt,name=DER,proto3" json:"DER,omitempty"` // contains filtered or unexported fields }
func (*IssueCertificateResponse) Descriptor
deprecated
func (*IssueCertificateResponse) Descriptor() ([]byte, []int)
Deprecated: Use IssueCertificateResponse.ProtoReflect.Descriptor instead.
func (*IssueCertificateResponse) GetDER ¶
func (x *IssueCertificateResponse) GetDER() []byte
func (*IssueCertificateResponse) ProtoMessage ¶
func (*IssueCertificateResponse) ProtoMessage()
func (*IssueCertificateResponse) ProtoReflect ¶
func (x *IssueCertificateResponse) ProtoReflect() protoreflect.Message
func (*IssueCertificateResponse) Reset ¶
func (x *IssueCertificateResponse) Reset()
func (*IssueCertificateResponse) String ¶
func (x *IssueCertificateResponse) String() string
type UnimplementedCRLGeneratorServer ¶
type UnimplementedCRLGeneratorServer struct{}
UnimplementedCRLGeneratorServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCRLGeneratorServer) GenerateCRL ¶
func (UnimplementedCRLGeneratorServer) GenerateCRL(grpc.BidiStreamingServer[GenerateCRLRequest, GenerateCRLResponse]) error
type UnimplementedCertificateAuthorityServer ¶
type UnimplementedCertificateAuthorityServer struct{}
UnimplementedCertificateAuthorityServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCertificateAuthorityServer) IssueCertificate ¶
func (UnimplementedCertificateAuthorityServer) IssueCertificate(context.Context, *IssueCertificateRequest) (*IssueCertificateResponse, error)
type UnsafeCRLGeneratorServer ¶
type UnsafeCRLGeneratorServer interface {
// contains filtered or unexported methods
}
UnsafeCRLGeneratorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CRLGeneratorServer will result in compilation errors.
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.