qapi

package
v0.0.0-...-9b07614 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_qca_demo_qapi_api_proto protoreflect.FileDescriptor
View Source
var Qca_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Qca",
	HandlerType: (*QcaServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetReport",
			Handler:    _Qca_GetReport_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "qca_demo/qapi/api.proto",
}

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

Functions

func RegisterQcaServer

func RegisterQcaServer(s grpc.ServiceRegistrar, srv QcaServer)

Types

type GetReportReply

type GetReportReply struct {
	TeeReport []byte `protobuf:"bytes,1,opt,name=tee_report,json=teeReport,proto3" json:"tee_report,omitempty"`
	// contains filtered or unexported fields
}

func (*GetReportReply) Descriptor deprecated

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

Deprecated: Use GetReportReply.ProtoReflect.Descriptor instead.

func (*GetReportReply) GetTeeReport

func (x *GetReportReply) GetTeeReport() []byte

func (*GetReportReply) ProtoMessage

func (*GetReportReply) ProtoMessage()

func (*GetReportReply) ProtoReflect

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

func (*GetReportReply) Reset

func (x *GetReportReply) Reset()

func (*GetReportReply) String

func (x *GetReportReply) String() string

type GetReportRequest

type GetReportRequest struct {
	Uuid    []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Nonce   []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	WithTcb bool   `protobuf:"varint,3,opt,name=with_tcb,json=withTcb,proto3" json:"with_tcb,omitempty"`
	// contains filtered or unexported fields
}

func (*GetReportRequest) Descriptor deprecated

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

Deprecated: Use GetReportRequest.ProtoReflect.Descriptor instead.

func (*GetReportRequest) GetNonce

func (x *GetReportRequest) GetNonce() []byte

func (*GetReportRequest) GetUuid

func (x *GetReportRequest) GetUuid() []byte

func (*GetReportRequest) GetWithTcb

func (x *GetReportRequest) GetWithTcb() bool

func (*GetReportRequest) ProtoMessage

func (*GetReportRequest) ProtoMessage()

func (*GetReportRequest) ProtoReflect

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

func (*GetReportRequest) Reset

func (x *GetReportRequest) Reset()

func (*GetReportRequest) String

func (x *GetReportRequest) String() string

type QcaClient

type QcaClient interface {
	GetReport(ctx context.Context, in *GetReportRequest, opts ...grpc.CallOption) (*GetReportReply, error)
}

QcaClient is the client API for Qca 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 NewQcaClient

func NewQcaClient(cc grpc.ClientConnInterface) QcaClient

type QcaServer

type QcaServer interface {
	GetReport(context.Context, *GetReportRequest) (*GetReportReply, error)
	// contains filtered or unexported methods
}

QcaServer is the server API for Qca service. All implementations must embed UnimplementedQcaServer for forward compatibility

type UnimplementedQcaServer

type UnimplementedQcaServer struct {
}

UnimplementedQcaServer must be embedded to have forward compatible implementations.

func (UnimplementedQcaServer) GetReport

type UnsafeQcaServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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