Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterMTCBServer(s grpc.ServiceRegistrar, srv MTCBServer)
- type LandmarkRelativeRequest
- func (*LandmarkRelativeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LandmarkRelativeRequest) GetMtcLogID() string
- func (x *LandmarkRelativeRequest) GetSerial() uint64
- func (*LandmarkRelativeRequest) ProtoMessage()
- func (x *LandmarkRelativeRequest) ProtoReflect() protoreflect.Message
- func (x *LandmarkRelativeRequest) Reset()
- func (x *LandmarkRelativeRequest) String() string
- type LandmarkRelativeResponse
- func (*LandmarkRelativeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LandmarkRelativeResponse) GetCertDER() []byte
- func (x *LandmarkRelativeResponse) GetCertPropList() []byte
- func (*LandmarkRelativeResponse) ProtoMessage()
- func (x *LandmarkRelativeResponse) ProtoReflect() protoreflect.Message
- func (x *LandmarkRelativeResponse) Reset()
- func (x *LandmarkRelativeResponse) String() string
- type MTCBClient
- type MTCBServer
- type StandaloneReadyRequest
- func (*StandaloneReadyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StandaloneReadyRequest) GetMtcLogID() string
- func (x *StandaloneReadyRequest) GetMtcSerialNumber() uint64
- func (x *StandaloneReadyRequest) GetMtcSubtreeID() int64
- func (*StandaloneReadyRequest) ProtoMessage()
- func (x *StandaloneReadyRequest) ProtoReflect() protoreflect.Message
- func (x *StandaloneReadyRequest) Reset()
- func (x *StandaloneReadyRequest) String() string
- type StandaloneReadyResponse
- func (*StandaloneReadyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StandaloneReadyResponse) GetReady() bool
- func (*StandaloneReadyResponse) ProtoMessage()
- func (x *StandaloneReadyResponse) ProtoReflect() protoreflect.Message
- func (x *StandaloneReadyResponse) Reset()
- func (x *StandaloneReadyResponse) String() string
- type StandaloneRequest
- func (*StandaloneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StandaloneRequest) GetMtcLogID() string
- func (x *StandaloneRequest) GetMtcSerialNumber() uint64
- func (x *StandaloneRequest) GetMtcSubtreeID() int64
- func (*StandaloneRequest) ProtoMessage()
- func (x *StandaloneRequest) ProtoReflect() protoreflect.Message
- func (x *StandaloneRequest) Reset()
- func (x *StandaloneRequest) String() string
- type StandaloneResponse
- func (*StandaloneResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StandaloneResponse) GetCertDER() []byte
- func (*StandaloneResponse) ProtoMessage()
- func (x *StandaloneResponse) ProtoReflect() protoreflect.Message
- func (x *StandaloneResponse) Reset()
- func (x *StandaloneResponse) String() string
- type UnimplementedMTCBServer
- func (UnimplementedMTCBServer) GetLandmarkRelative(context.Context, *LandmarkRelativeRequest) (*LandmarkRelativeResponse, error)
- func (UnimplementedMTCBServer) GetStandalone(context.Context, *StandaloneRequest) (*StandaloneResponse, error)
- func (UnimplementedMTCBServer) StandaloneReady(context.Context, *StandaloneReadyRequest) (*StandaloneReadyResponse, error)
- type UnsafeMTCBServer
Constants ¶
const ( MTCB_StandaloneReady_FullMethodName = "/mtcb.MTCB/StandaloneReady" MTCB_GetStandalone_FullMethodName = "/mtcb.MTCB/GetStandalone" MTCB_GetLandmarkRelative_FullMethodName = "/mtcb.MTCB/GetLandmarkRelative" )
Variables ¶
var File_mtcb_proto protoreflect.FileDescriptor
var MTCB_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mtcb.MTCB", HandlerType: (*MTCBServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StandaloneReady", Handler: _MTCB_StandaloneReady_Handler, }, { MethodName: "GetStandalone", Handler: _MTCB_GetStandalone_Handler, }, { MethodName: "GetLandmarkRelative", Handler: _MTCB_GetLandmarkRelative_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "mtcb.proto", }
MTCB_ServiceDesc is the grpc.ServiceDesc for MTCB service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMTCBServer ¶
func RegisterMTCBServer(s grpc.ServiceRegistrar, srv MTCBServer)
Types ¶
type LandmarkRelativeRequest ¶
type LandmarkRelativeRequest struct {
// Next unused field number: 3
MtcLogID string `protobuf:"bytes,1,opt,name=mtcLogID,proto3" json:"mtcLogID,omitempty"`
Serial uint64 `protobuf:"varint,2,opt,name=serial,proto3" json:"serial,omitempty"`
// contains filtered or unexported fields
}
func (*LandmarkRelativeRequest) Descriptor
deprecated
func (*LandmarkRelativeRequest) Descriptor() ([]byte, []int)
Deprecated: Use LandmarkRelativeRequest.ProtoReflect.Descriptor instead.
func (*LandmarkRelativeRequest) GetMtcLogID ¶
func (x *LandmarkRelativeRequest) GetMtcLogID() string
func (*LandmarkRelativeRequest) GetSerial ¶
func (x *LandmarkRelativeRequest) GetSerial() uint64
func (*LandmarkRelativeRequest) ProtoMessage ¶
func (*LandmarkRelativeRequest) ProtoMessage()
func (*LandmarkRelativeRequest) ProtoReflect ¶
func (x *LandmarkRelativeRequest) ProtoReflect() protoreflect.Message
func (*LandmarkRelativeRequest) Reset ¶
func (x *LandmarkRelativeRequest) Reset()
func (*LandmarkRelativeRequest) String ¶
func (x *LandmarkRelativeRequest) String() string
type LandmarkRelativeResponse ¶
type LandmarkRelativeResponse struct {
// Next unused field number: 3
CertDER []byte `protobuf:"bytes,1,opt,name=certDER,proto3" json:"certDER,omitempty"`
CertPropList []byte `protobuf:"bytes,2,opt,name=certPropList,proto3" json:"certPropList,omitempty"`
// contains filtered or unexported fields
}
func (*LandmarkRelativeResponse) Descriptor
deprecated
func (*LandmarkRelativeResponse) Descriptor() ([]byte, []int)
Deprecated: Use LandmarkRelativeResponse.ProtoReflect.Descriptor instead.
func (*LandmarkRelativeResponse) GetCertDER ¶
func (x *LandmarkRelativeResponse) GetCertDER() []byte
func (*LandmarkRelativeResponse) GetCertPropList ¶
func (x *LandmarkRelativeResponse) GetCertPropList() []byte
func (*LandmarkRelativeResponse) ProtoMessage ¶
func (*LandmarkRelativeResponse) ProtoMessage()
func (*LandmarkRelativeResponse) ProtoReflect ¶
func (x *LandmarkRelativeResponse) ProtoReflect() protoreflect.Message
func (*LandmarkRelativeResponse) Reset ¶
func (x *LandmarkRelativeResponse) Reset()
func (*LandmarkRelativeResponse) String ¶
func (x *LandmarkRelativeResponse) String() string
type MTCBClient ¶
type MTCBClient interface {
// StandaloneReady returns whether a given TBSCertificateLogEntry has sufficient signatures
// for a standalone certificate to be built.
StandaloneReady(ctx context.Context, in *StandaloneReadyRequest, opts ...grpc.CallOption) (*StandaloneReadyResponse, error)
// GetStandalone returns a standalone certificate.
GetStandalone(ctx context.Context, in *StandaloneRequest, opts ...grpc.CallOption) (*StandaloneResponse, error)
// GetLandmarkRelative returns a landmark-relative certificate.
GetLandmarkRelative(ctx context.Context, in *LandmarkRelativeRequest, opts ...grpc.CallOption) (*LandmarkRelativeResponse, error)
}
MTCBClient is the client API for MTCB 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.
MTCB constructs already-issued MTCs from database and log data.
func NewMTCBClient ¶
func NewMTCBClient(cc grpc.ClientConnInterface) MTCBClient
type MTCBServer ¶
type MTCBServer interface {
// StandaloneReady returns whether a given TBSCertificateLogEntry has sufficient signatures
// for a standalone certificate to be built.
StandaloneReady(context.Context, *StandaloneReadyRequest) (*StandaloneReadyResponse, error)
// GetStandalone returns a standalone certificate.
GetStandalone(context.Context, *StandaloneRequest) (*StandaloneResponse, error)
// GetLandmarkRelative returns a landmark-relative certificate.
GetLandmarkRelative(context.Context, *LandmarkRelativeRequest) (*LandmarkRelativeResponse, error)
// contains filtered or unexported methods
}
MTCBServer is the server API for MTCB service. All implementations must embed UnimplementedMTCBServer for forward compatibility.
MTCB constructs already-issued MTCs from database and log data.
type StandaloneReadyRequest ¶
type StandaloneReadyRequest struct {
// Next unused field number: 4
MtcLogID string `protobuf:"bytes,1,opt,name=mtcLogID,proto3" json:"mtcLogID,omitempty"`
MtcSerialNumber uint64 `protobuf:"varint,2,opt,name=mtcSerialNumber,proto3" json:"mtcSerialNumber,omitempty"`
MtcSubtreeID int64 `protobuf:"varint,3,opt,name=mtcSubtreeID,proto3" json:"mtcSubtreeID,omitempty"`
// contains filtered or unexported fields
}
func (*StandaloneReadyRequest) Descriptor
deprecated
func (*StandaloneReadyRequest) Descriptor() ([]byte, []int)
Deprecated: Use StandaloneReadyRequest.ProtoReflect.Descriptor instead.
func (*StandaloneReadyRequest) GetMtcLogID ¶
func (x *StandaloneReadyRequest) GetMtcLogID() string
func (*StandaloneReadyRequest) GetMtcSerialNumber ¶
func (x *StandaloneReadyRequest) GetMtcSerialNumber() uint64
func (*StandaloneReadyRequest) GetMtcSubtreeID ¶
func (x *StandaloneReadyRequest) GetMtcSubtreeID() int64
func (*StandaloneReadyRequest) ProtoMessage ¶
func (*StandaloneReadyRequest) ProtoMessage()
func (*StandaloneReadyRequest) ProtoReflect ¶
func (x *StandaloneReadyRequest) ProtoReflect() protoreflect.Message
func (*StandaloneReadyRequest) Reset ¶
func (x *StandaloneReadyRequest) Reset()
func (*StandaloneReadyRequest) String ¶
func (x *StandaloneReadyRequest) String() string
type StandaloneReadyResponse ¶
type StandaloneReadyResponse struct {
// Next unused field number: 2
Ready bool `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"`
// contains filtered or unexported fields
}
func (*StandaloneReadyResponse) Descriptor
deprecated
func (*StandaloneReadyResponse) Descriptor() ([]byte, []int)
Deprecated: Use StandaloneReadyResponse.ProtoReflect.Descriptor instead.
func (*StandaloneReadyResponse) GetReady ¶
func (x *StandaloneReadyResponse) GetReady() bool
func (*StandaloneReadyResponse) ProtoMessage ¶
func (*StandaloneReadyResponse) ProtoMessage()
func (*StandaloneReadyResponse) ProtoReflect ¶
func (x *StandaloneReadyResponse) ProtoReflect() protoreflect.Message
func (*StandaloneReadyResponse) Reset ¶
func (x *StandaloneReadyResponse) Reset()
func (*StandaloneReadyResponse) String ¶
func (x *StandaloneReadyResponse) String() string
type StandaloneRequest ¶
type StandaloneRequest struct {
// Next unused field number: 4
MtcLogID string `protobuf:"bytes,1,opt,name=mtcLogID,proto3" json:"mtcLogID,omitempty"`
MtcSerialNumber uint64 `protobuf:"varint,2,opt,name=mtcSerialNumber,proto3" json:"mtcSerialNumber,omitempty"`
MtcSubtreeID int64 `protobuf:"varint,3,opt,name=mtcSubtreeID,proto3" json:"mtcSubtreeID,omitempty"`
// contains filtered or unexported fields
}
func (*StandaloneRequest) Descriptor
deprecated
func (*StandaloneRequest) Descriptor() ([]byte, []int)
Deprecated: Use StandaloneRequest.ProtoReflect.Descriptor instead.
func (*StandaloneRequest) GetMtcLogID ¶
func (x *StandaloneRequest) GetMtcLogID() string
func (*StandaloneRequest) GetMtcSerialNumber ¶
func (x *StandaloneRequest) GetMtcSerialNumber() uint64
func (*StandaloneRequest) GetMtcSubtreeID ¶
func (x *StandaloneRequest) GetMtcSubtreeID() int64
func (*StandaloneRequest) ProtoMessage ¶
func (*StandaloneRequest) ProtoMessage()
func (*StandaloneRequest) ProtoReflect ¶
func (x *StandaloneRequest) ProtoReflect() protoreflect.Message
func (*StandaloneRequest) Reset ¶
func (x *StandaloneRequest) Reset()
func (*StandaloneRequest) String ¶
func (x *StandaloneRequest) String() string
type StandaloneResponse ¶
type StandaloneResponse struct {
// Next unused field number: 2
CertDER []byte `protobuf:"bytes,1,opt,name=certDER,proto3" json:"certDER,omitempty"`
// contains filtered or unexported fields
}
func (*StandaloneResponse) Descriptor
deprecated
func (*StandaloneResponse) Descriptor() ([]byte, []int)
Deprecated: Use StandaloneResponse.ProtoReflect.Descriptor instead.
func (*StandaloneResponse) GetCertDER ¶
func (x *StandaloneResponse) GetCertDER() []byte
func (*StandaloneResponse) ProtoMessage ¶
func (*StandaloneResponse) ProtoMessage()
func (*StandaloneResponse) ProtoReflect ¶
func (x *StandaloneResponse) ProtoReflect() protoreflect.Message
func (*StandaloneResponse) Reset ¶
func (x *StandaloneResponse) Reset()
func (*StandaloneResponse) String ¶
func (x *StandaloneResponse) String() string
type UnimplementedMTCBServer ¶
type UnimplementedMTCBServer struct{}
UnimplementedMTCBServer 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 (UnimplementedMTCBServer) GetLandmarkRelative ¶
func (UnimplementedMTCBServer) GetLandmarkRelative(context.Context, *LandmarkRelativeRequest) (*LandmarkRelativeResponse, error)
func (UnimplementedMTCBServer) GetStandalone ¶
func (UnimplementedMTCBServer) GetStandalone(context.Context, *StandaloneRequest) (*StandaloneResponse, error)
func (UnimplementedMTCBServer) StandaloneReady ¶
func (UnimplementedMTCBServer) StandaloneReady(context.Context, *StandaloneReadyRequest) (*StandaloneReadyResponse, error)
type UnsafeMTCBServer ¶
type UnsafeMTCBServer interface {
// contains filtered or unexported methods
}
UnsafeMTCBServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MTCBServer will result in compilation errors.