Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterMTCAServer(s grpc.ServiceRegistrar, srv MTCAServer)
- type IssueRequest
- func (*IssueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IssueRequest) GetIdentifiers() []*proto.Identifier
- func (x *IssueRequest) GetProfile() string
- func (x *IssueRequest) GetPubkey() []byte
- func (*IssueRequest) ProtoMessage()
- func (x *IssueRequest) ProtoReflect() protoreflect.Message
- func (x *IssueRequest) Reset()
- func (x *IssueRequest) String() string
- type IssueResponse
- func (*IssueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IssueResponse) GetMtcEntryIndex() int64
- func (x *IssueResponse) GetMtcLogID() string
- func (*IssueResponse) ProtoMessage()
- func (x *IssueResponse) ProtoReflect() protoreflect.Message
- func (x *IssueResponse) Reset()
- func (x *IssueResponse) String() string
- type MTCAClient
- type MTCAServer
- type UnimplementedMTCAServer
- type UnsafeMTCAServer
Constants ¶
const (
MTCA_Issue_FullMethodName = "/mtca.MTCA/Issue"
)
Variables ¶
var File_mtca_proto protoreflect.FileDescriptor
var MTCA_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mtca.MTCA", HandlerType: (*MTCAServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Issue", Handler: _MTCA_Issue_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "mtca.proto", }
MTCA_ServiceDesc is the grpc.ServiceDesc for MTCA service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMTCAServer ¶
func RegisterMTCAServer(s grpc.ServiceRegistrar, srv MTCAServer)
Types ¶
type IssueRequest ¶
type IssueRequest struct {
// Next unused field number: 4
Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
Identifiers []*proto.Identifier `protobuf:"bytes,2,rep,name=identifiers,proto3" json:"identifiers,omitempty"`
Profile string `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"`
// contains filtered or unexported fields
}
func (*IssueRequest) Descriptor
deprecated
func (*IssueRequest) Descriptor() ([]byte, []int)
Deprecated: Use IssueRequest.ProtoReflect.Descriptor instead.
func (*IssueRequest) GetIdentifiers ¶
func (x *IssueRequest) GetIdentifiers() []*proto.Identifier
func (*IssueRequest) GetProfile ¶
func (x *IssueRequest) GetProfile() string
func (*IssueRequest) GetPubkey ¶
func (x *IssueRequest) GetPubkey() []byte
func (*IssueRequest) ProtoMessage ¶
func (*IssueRequest) ProtoMessage()
func (*IssueRequest) ProtoReflect ¶
func (x *IssueRequest) ProtoReflect() protoreflect.Message
func (*IssueRequest) Reset ¶
func (x *IssueRequest) Reset()
func (*IssueRequest) String ¶
func (x *IssueRequest) String() string
type IssueResponse ¶
type IssueResponse struct {
// Next unused field number: 4
MtcLogID string `protobuf:"bytes,1,opt,name=mtcLogID,proto3" json:"mtcLogID,omitempty"`
MtcEntryIndex int64 `protobuf:"varint,2,opt,name=mtcEntryIndex,proto3" json:"mtcEntryIndex,omitempty"`
// contains filtered or unexported fields
}
func (*IssueResponse) Descriptor
deprecated
func (*IssueResponse) Descriptor() ([]byte, []int)
Deprecated: Use IssueResponse.ProtoReflect.Descriptor instead.
func (*IssueResponse) GetMtcEntryIndex ¶
func (x *IssueResponse) GetMtcEntryIndex() int64
func (*IssueResponse) GetMtcLogID ¶
func (x *IssueResponse) GetMtcLogID() string
func (*IssueResponse) ProtoMessage ¶
func (*IssueResponse) ProtoMessage()
func (*IssueResponse) ProtoReflect ¶
func (x *IssueResponse) ProtoReflect() protoreflect.Message
func (*IssueResponse) Reset ¶
func (x *IssueResponse) Reset()
func (*IssueResponse) String ¶
func (x *IssueResponse) String() string
type MTCAClient ¶
type MTCAClient interface {
// Issue requests that the CA start the process of creating a standalone certificate
// for the given request. It returns once a checkpoint has been signed that includes
// that certificate's TBSCertificateLogEntry, but does not wait for cosignatures.
Issue(ctx context.Context, in *IssueRequest, opts ...grpc.CallOption) (*IssueResponse, error)
}
MTCAClient is the client API for MTCA 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.
MTCA issues MTC certificates.
func NewMTCAClient ¶
func NewMTCAClient(cc grpc.ClientConnInterface) MTCAClient
type MTCAServer ¶
type MTCAServer interface {
// Issue requests that the CA start the process of creating a standalone certificate
// for the given request. It returns once a checkpoint has been signed that includes
// that certificate's TBSCertificateLogEntry, but does not wait for cosignatures.
Issue(context.Context, *IssueRequest) (*IssueResponse, error)
// contains filtered or unexported methods
}
MTCAServer is the server API for MTCA service. All implementations must embed UnimplementedMTCAServer for forward compatibility.
MTCA issues MTC certificates.
type UnimplementedMTCAServer ¶
type UnimplementedMTCAServer struct{}
UnimplementedMTCAServer 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 (UnimplementedMTCAServer) Issue ¶
func (UnimplementedMTCAServer) Issue(context.Context, *IssueRequest) (*IssueResponse, error)
type UnsafeMTCAServer ¶
type UnsafeMTCAServer interface {
// contains filtered or unexported methods
}
UnsafeMTCAServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MTCAServer will result in compilation errors.