proto

package
v0.0.0-...-0c658f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 10 Imported by: 124

Documentation

Index

Constants

View Source
const (
	CertificateAuthority_IssuePrecertificate_FullMethodName               = "/ca.CertificateAuthority/IssuePrecertificate"
	CertificateAuthority_IssueCertificateForPrecertificate_FullMethodName = "/ca.CertificateAuthority/IssueCertificateForPrecertificate"
)
View Source
const (
	CRLGenerator_GenerateCRL_FullMethodName = "/ca.CRLGenerator/GenerateCRL"
)
View Source
const (
	OCSPGenerator_GenerateOCSP_FullMethodName = "/ca.OCSPGenerator/GenerateOCSP"
)

Variables

View Source
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)

View Source
var CertificateAuthority_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ca.CertificateAuthority",
	HandlerType: (*CertificateAuthorityServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "IssuePrecertificate",
			Handler:    _CertificateAuthority_IssuePrecertificate_Handler,
		},
		{
			MethodName: "IssueCertificateForPrecertificate",
			Handler:    _CertificateAuthority_IssueCertificateForPrecertificate_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)

View Source
var OCSPGenerator_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ca.OCSPGenerator",
	HandlerType: (*OCSPGeneratorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenerateOCSP",
			Handler:    _OCSPGenerator_GenerateOCSP_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ca.proto",
}

OCSPGenerator_ServiceDesc is the grpc.ServiceDesc for OCSPGenerator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterCRLGeneratorServer

func RegisterCRLGeneratorServer(s grpc.ServiceRegistrar, srv CRLGeneratorServer)

func RegisterCertificateAuthorityServer

func RegisterCertificateAuthorityServer(s grpc.ServiceRegistrar, srv CertificateAuthorityServer)

func RegisterOCSPGeneratorServer

func RegisterOCSPGeneratorServer(s grpc.ServiceRegistrar, srv OCSPGeneratorServer)

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.

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

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 {
	IssuePrecertificate(ctx context.Context, in *IssueCertificateRequest, opts ...grpc.CallOption) (*IssuePrecertificateResponse, error)
	IssueCertificateForPrecertificate(ctx context.Context, in *IssueCertificateForPrecertificateRequest, opts ...grpc.CallOption) (*proto.Certificate, 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.

type CertificateAuthorityServer

type CertificateAuthorityServer interface {
	IssuePrecertificate(context.Context, *IssueCertificateRequest) (*IssuePrecertificateResponse, error)
	IssueCertificateForPrecertificate(context.Context, *IssueCertificateForPrecertificateRequest) (*proto.Certificate, error)
	// contains filtered or unexported methods
}

CertificateAuthorityServer is the server API for CertificateAuthority service. All implementations must embed UnimplementedCertificateAuthorityServer for forward compatibility

type GenerateCRLRequest

type GenerateCRLRequest struct {

	// Types that are assignable 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 (m *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_Entry

type GenerateCRLRequest_Entry struct {
	Entry *proto.CRLEntry `protobuf:"bytes,2,opt,name=entry,proto3,oneof"`
}

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 GenerateOCSPRequest

type GenerateOCSPRequest struct {

	// Next unused field number: 8
	Status    string                 `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Reason    int32                  `protobuf:"varint,3,opt,name=reason,proto3" json:"reason,omitempty"`
	RevokedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=revokedAt,proto3" json:"revokedAt,omitempty"`
	Serial    string                 `protobuf:"bytes,5,opt,name=serial,proto3" json:"serial,omitempty"`
	IssuerID  int64                  `protobuf:"varint,6,opt,name=issuerID,proto3" json:"issuerID,omitempty"`
	// contains filtered or unexported fields
}

Exactly one of certDER or [serial and issuerID] must be set.

func (*GenerateOCSPRequest) Descriptor deprecated

func (*GenerateOCSPRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenerateOCSPRequest.ProtoReflect.Descriptor instead.

func (*GenerateOCSPRequest) GetIssuerID

func (x *GenerateOCSPRequest) GetIssuerID() int64

func (*GenerateOCSPRequest) GetReason

func (x *GenerateOCSPRequest) GetReason() int32

func (*GenerateOCSPRequest) GetRevokedAt

func (x *GenerateOCSPRequest) GetRevokedAt() *timestamppb.Timestamp

func (*GenerateOCSPRequest) GetSerial

func (x *GenerateOCSPRequest) GetSerial() string

func (*GenerateOCSPRequest) GetStatus

func (x *GenerateOCSPRequest) GetStatus() string

func (*GenerateOCSPRequest) ProtoMessage

func (*GenerateOCSPRequest) ProtoMessage()

func (*GenerateOCSPRequest) ProtoReflect

func (x *GenerateOCSPRequest) ProtoReflect() protoreflect.Message

func (*GenerateOCSPRequest) Reset

func (x *GenerateOCSPRequest) Reset()

func (*GenerateOCSPRequest) String

func (x *GenerateOCSPRequest) String() string

type IssueCertificateForPrecertificateRequest

type IssueCertificateForPrecertificateRequest struct {

	// Next unused field number: 6
	DER            []byte   `protobuf:"bytes,1,opt,name=DER,proto3" json:"DER,omitempty"`
	SCTs           [][]byte `protobuf:"bytes,2,rep,name=SCTs,proto3" json:"SCTs,omitempty"`
	RegistrationID int64    `protobuf:"varint,3,opt,name=registrationID,proto3" json:"registrationID,omitempty"`
	OrderID        int64    `protobuf:"varint,4,opt,name=orderID,proto3" json:"orderID,omitempty"`
	// certProfileHash is a hash over the exported fields of a certificate profile
	// to ensure that the profile remains unchanged after multiple roundtrips
	// through the RA and CA.
	CertProfileHash []byte `protobuf:"bytes,5,opt,name=certProfileHash,proto3" json:"certProfileHash,omitempty"`
	// contains filtered or unexported fields
}

func (*IssueCertificateForPrecertificateRequest) Descriptor deprecated

func (*IssueCertificateForPrecertificateRequest) Descriptor() ([]byte, []int)

Deprecated: Use IssueCertificateForPrecertificateRequest.ProtoReflect.Descriptor instead.

func (*IssueCertificateForPrecertificateRequest) GetCertProfileHash

func (x *IssueCertificateForPrecertificateRequest) GetCertProfileHash() []byte

func (*IssueCertificateForPrecertificateRequest) GetDER

func (*IssueCertificateForPrecertificateRequest) GetOrderID

func (*IssueCertificateForPrecertificateRequest) GetRegistrationID

func (x *IssueCertificateForPrecertificateRequest) GetRegistrationID() int64

func (*IssueCertificateForPrecertificateRequest) GetSCTs

func (*IssueCertificateForPrecertificateRequest) ProtoMessage

func (*IssueCertificateForPrecertificateRequest) ProtoReflect

func (*IssueCertificateForPrecertificateRequest) Reset

func (*IssueCertificateForPrecertificateRequest) 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 IssuePrecertificateResponse

type IssuePrecertificateResponse struct {

	// Next unused field number: 4
	DER []byte `protobuf:"bytes,1,opt,name=DER,proto3" json:"DER,omitempty"`
	// certProfileHash is a hash over the exported fields of a certificate profile
	// to ensure that the profile remains unchanged after multiple roundtrips
	// through the RA and CA.
	CertProfileHash []byte `protobuf:"bytes,2,opt,name=certProfileHash,proto3" json:"certProfileHash,omitempty"`
	// certProfileName is a human readable name returned back to the RA for later
	// use. If IssueCertificateRequest.certProfileName was an empty string, the
	// CAs default profile name will be assigned.
	CertProfileName string `protobuf:"bytes,3,opt,name=certProfileName,proto3" json:"certProfileName,omitempty"`
	// contains filtered or unexported fields
}

func (*IssuePrecertificateResponse) Descriptor deprecated

func (*IssuePrecertificateResponse) Descriptor() ([]byte, []int)

Deprecated: Use IssuePrecertificateResponse.ProtoReflect.Descriptor instead.

func (*IssuePrecertificateResponse) GetCertProfileHash

func (x *IssuePrecertificateResponse) GetCertProfileHash() []byte

func (*IssuePrecertificateResponse) GetCertProfileName

func (x *IssuePrecertificateResponse) GetCertProfileName() string

func (*IssuePrecertificateResponse) GetDER

func (x *IssuePrecertificateResponse) GetDER() []byte

func (*IssuePrecertificateResponse) ProtoMessage

func (*IssuePrecertificateResponse) ProtoMessage()

func (*IssuePrecertificateResponse) ProtoReflect

func (*IssuePrecertificateResponse) Reset

func (x *IssuePrecertificateResponse) Reset()

func (*IssuePrecertificateResponse) String

func (x *IssuePrecertificateResponse) String() string

type OCSPGeneratorClient

type OCSPGeneratorClient interface {
	GenerateOCSP(ctx context.Context, in *GenerateOCSPRequest, opts ...grpc.CallOption) (*OCSPResponse, error)
}

OCSPGeneratorClient is the client API for OCSPGenerator 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 OCSPGeneratorServer

type OCSPGeneratorServer interface {
	GenerateOCSP(context.Context, *GenerateOCSPRequest) (*OCSPResponse, error)
	// contains filtered or unexported methods
}

OCSPGeneratorServer is the server API for OCSPGenerator service. All implementations must embed UnimplementedOCSPGeneratorServer for forward compatibility

type OCSPResponse

type OCSPResponse struct {
	Response []byte `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*OCSPResponse) Descriptor deprecated

func (*OCSPResponse) Descriptor() ([]byte, []int)

Deprecated: Use OCSPResponse.ProtoReflect.Descriptor instead.

func (*OCSPResponse) GetResponse

func (x *OCSPResponse) GetResponse() []byte

func (*OCSPResponse) ProtoMessage

func (*OCSPResponse) ProtoMessage()

func (*OCSPResponse) ProtoReflect

func (x *OCSPResponse) ProtoReflect() protoreflect.Message

func (*OCSPResponse) Reset

func (x *OCSPResponse) Reset()

func (*OCSPResponse) String

func (x *OCSPResponse) String() string

type UnimplementedCRLGeneratorServer

type UnimplementedCRLGeneratorServer struct {
}

UnimplementedCRLGeneratorServer must be embedded to have forward compatible implementations.

type UnimplementedCertificateAuthorityServer

type UnimplementedCertificateAuthorityServer struct {
}

UnimplementedCertificateAuthorityServer must be embedded to have forward compatible implementations.

func (UnimplementedCertificateAuthorityServer) IssueCertificateForPrecertificate

func (UnimplementedCertificateAuthorityServer) IssuePrecertificate

type UnimplementedOCSPGeneratorServer

type UnimplementedOCSPGeneratorServer struct {
}

UnimplementedOCSPGeneratorServer must be embedded to have forward compatible implementations.

func (UnimplementedOCSPGeneratorServer) GenerateOCSP

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.

type UnsafeOCSPGeneratorServer

type UnsafeOCSPGeneratorServer interface {
	// contains filtered or unexported methods
}

UnsafeOCSPGeneratorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OCSPGeneratorServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL