enclave

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type EnclaveKeyInfo added in v0.2.0

type EnclaveKeyInfo struct {
	EnclaveKeyAddress []byte `protobuf:"bytes,1,opt,name=enclave_key_address,json=enclaveKeyAddress,proto3" json:"enclave_key_address,omitempty"`
	AttestationTime   uint64 `protobuf:"varint,2,opt,name=attestation_time,json=attestationTime,proto3" json:"attestation_time,omitempty"`
	Report            string `protobuf:"bytes,3,opt,name=report,proto3" json:"report,omitempty"`
	Signature         []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	SigningCert       []byte `protobuf:"bytes,5,opt,name=signing_cert,json=signingCert,proto3" json:"signing_cert,omitempty"`
	Extension         []byte `protobuf:"bytes,6,opt,name=extension,proto3" json:"extension,omitempty"`
}

func (*EnclaveKeyInfo) Descriptor added in v0.2.0

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

func (*EnclaveKeyInfo) Marshal added in v0.2.0

func (m *EnclaveKeyInfo) Marshal() (dAtA []byte, err error)

func (*EnclaveKeyInfo) MarshalTo added in v0.2.0

func (m *EnclaveKeyInfo) MarshalTo(dAtA []byte) (int, error)

func (*EnclaveKeyInfo) MarshalToSizedBuffer added in v0.2.0

func (m *EnclaveKeyInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EnclaveKeyInfo) ProtoMessage added in v0.2.0

func (*EnclaveKeyInfo) ProtoMessage()

func (*EnclaveKeyInfo) Reset added in v0.2.0

func (m *EnclaveKeyInfo) Reset()

func (*EnclaveKeyInfo) Size added in v0.2.0

func (m *EnclaveKeyInfo) Size() (n int)

func (*EnclaveKeyInfo) String added in v0.2.0

func (m *EnclaveKeyInfo) String() string

func (*EnclaveKeyInfo) Unmarshal added in v0.2.0

func (m *EnclaveKeyInfo) Unmarshal(dAtA []byte) error

func (*EnclaveKeyInfo) XXX_DiscardUnknown added in v0.2.0

func (m *EnclaveKeyInfo) XXX_DiscardUnknown()

func (*EnclaveKeyInfo) XXX_Marshal added in v0.2.0

func (m *EnclaveKeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnclaveKeyInfo) XXX_Merge added in v0.2.0

func (m *EnclaveKeyInfo) XXX_Merge(src proto.Message)

func (*EnclaveKeyInfo) XXX_Size added in v0.2.0

func (m *EnclaveKeyInfo) XXX_Size() int

func (*EnclaveKeyInfo) XXX_Unmarshal added in v0.2.0

func (m *EnclaveKeyInfo) XXX_Unmarshal(b []byte) error

type QueryAvailableEnclaveKeysRequest added in v0.2.0

type QueryAvailableEnclaveKeysRequest struct {
	Mrenclave []byte `protobuf:"bytes,1,opt,name=mrenclave,proto3" json:"mrenclave,omitempty"`
}

func (*QueryAvailableEnclaveKeysRequest) Descriptor added in v0.2.0

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

func (*QueryAvailableEnclaveKeysRequest) Marshal added in v0.2.0

func (m *QueryAvailableEnclaveKeysRequest) Marshal() (dAtA []byte, err error)

func (*QueryAvailableEnclaveKeysRequest) MarshalTo added in v0.2.0

func (m *QueryAvailableEnclaveKeysRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAvailableEnclaveKeysRequest) MarshalToSizedBuffer added in v0.2.0

func (m *QueryAvailableEnclaveKeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAvailableEnclaveKeysRequest) ProtoMessage added in v0.2.0

func (*QueryAvailableEnclaveKeysRequest) ProtoMessage()

func (*QueryAvailableEnclaveKeysRequest) Reset added in v0.2.0

func (*QueryAvailableEnclaveKeysRequest) Size added in v0.2.0

func (m *QueryAvailableEnclaveKeysRequest) Size() (n int)

func (*QueryAvailableEnclaveKeysRequest) String added in v0.2.0

func (*QueryAvailableEnclaveKeysRequest) Unmarshal added in v0.2.0

func (m *QueryAvailableEnclaveKeysRequest) Unmarshal(dAtA []byte) error

func (*QueryAvailableEnclaveKeysRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAvailableEnclaveKeysRequest) XXX_DiscardUnknown()

func (*QueryAvailableEnclaveKeysRequest) XXX_Marshal added in v0.2.0

func (m *QueryAvailableEnclaveKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAvailableEnclaveKeysRequest) XXX_Merge added in v0.2.0

func (*QueryAvailableEnclaveKeysRequest) XXX_Size added in v0.2.0

func (m *QueryAvailableEnclaveKeysRequest) XXX_Size() int

func (*QueryAvailableEnclaveKeysRequest) XXX_Unmarshal added in v0.2.0

func (m *QueryAvailableEnclaveKeysRequest) XXX_Unmarshal(b []byte) error

type QueryAvailableEnclaveKeysResponse added in v0.2.0

type QueryAvailableEnclaveKeysResponse struct {
	Keys []*EnclaveKeyInfo `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
}

func (*QueryAvailableEnclaveKeysResponse) Descriptor added in v0.2.0

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

func (*QueryAvailableEnclaveKeysResponse) Marshal added in v0.2.0

func (m *QueryAvailableEnclaveKeysResponse) Marshal() (dAtA []byte, err error)

func (*QueryAvailableEnclaveKeysResponse) MarshalTo added in v0.2.0

func (m *QueryAvailableEnclaveKeysResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAvailableEnclaveKeysResponse) MarshalToSizedBuffer added in v0.2.0

func (m *QueryAvailableEnclaveKeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAvailableEnclaveKeysResponse) ProtoMessage added in v0.2.0

func (*QueryAvailableEnclaveKeysResponse) ProtoMessage()

func (*QueryAvailableEnclaveKeysResponse) Reset added in v0.2.0

func (*QueryAvailableEnclaveKeysResponse) Size added in v0.2.0

func (m *QueryAvailableEnclaveKeysResponse) Size() (n int)

func (*QueryAvailableEnclaveKeysResponse) String added in v0.2.0

func (*QueryAvailableEnclaveKeysResponse) Unmarshal added in v0.2.0

func (m *QueryAvailableEnclaveKeysResponse) Unmarshal(dAtA []byte) error

func (*QueryAvailableEnclaveKeysResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAvailableEnclaveKeysResponse) XXX_DiscardUnknown()

func (*QueryAvailableEnclaveKeysResponse) XXX_Marshal added in v0.2.0

func (m *QueryAvailableEnclaveKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAvailableEnclaveKeysResponse) XXX_Merge added in v0.2.0

func (*QueryAvailableEnclaveKeysResponse) XXX_Size added in v0.2.0

func (m *QueryAvailableEnclaveKeysResponse) XXX_Size() int

func (*QueryAvailableEnclaveKeysResponse) XXX_Unmarshal added in v0.2.0

func (m *QueryAvailableEnclaveKeysResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	AvailableEnclaveKeys(ctx context.Context, in *QueryAvailableEnclaveKeysRequest, opts ...grpc.CallOption) (*QueryAvailableEnclaveKeysResponse, error)
	EnclaveKey(ctx context.Context, in *QueryEnclaveKeyRequest, opts ...grpc.CallOption) (*QueryEnclaveKeyResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryEnclaveKeyRequest added in v0.2.0

type QueryEnclaveKeyRequest struct {
	EnclaveKeyAddress []byte `protobuf:"bytes,1,opt,name=enclave_key_address,json=enclaveKeyAddress,proto3" json:"enclave_key_address,omitempty"`
}

func (*QueryEnclaveKeyRequest) Descriptor added in v0.2.0

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

func (*QueryEnclaveKeyRequest) Marshal added in v0.2.0

func (m *QueryEnclaveKeyRequest) Marshal() (dAtA []byte, err error)

func (*QueryEnclaveKeyRequest) MarshalTo added in v0.2.0

func (m *QueryEnclaveKeyRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryEnclaveKeyRequest) MarshalToSizedBuffer added in v0.2.0

func (m *QueryEnclaveKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEnclaveKeyRequest) ProtoMessage added in v0.2.0

func (*QueryEnclaveKeyRequest) ProtoMessage()

func (*QueryEnclaveKeyRequest) Reset added in v0.2.0

func (m *QueryEnclaveKeyRequest) Reset()

func (*QueryEnclaveKeyRequest) Size added in v0.2.0

func (m *QueryEnclaveKeyRequest) Size() (n int)

func (*QueryEnclaveKeyRequest) String added in v0.2.0

func (m *QueryEnclaveKeyRequest) String() string

func (*QueryEnclaveKeyRequest) Unmarshal added in v0.2.0

func (m *QueryEnclaveKeyRequest) Unmarshal(dAtA []byte) error

func (*QueryEnclaveKeyRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryEnclaveKeyRequest) XXX_DiscardUnknown()

func (*QueryEnclaveKeyRequest) XXX_Marshal added in v0.2.0

func (m *QueryEnclaveKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEnclaveKeyRequest) XXX_Merge added in v0.2.0

func (m *QueryEnclaveKeyRequest) XXX_Merge(src proto.Message)

func (*QueryEnclaveKeyRequest) XXX_Size added in v0.2.0

func (m *QueryEnclaveKeyRequest) XXX_Size() int

func (*QueryEnclaveKeyRequest) XXX_Unmarshal added in v0.2.0

func (m *QueryEnclaveKeyRequest) XXX_Unmarshal(b []byte) error

type QueryEnclaveKeyResponse added in v0.2.0

type QueryEnclaveKeyResponse struct {
	Key *EnclaveKeyInfo `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}

func (*QueryEnclaveKeyResponse) Descriptor added in v0.2.0

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

func (*QueryEnclaveKeyResponse) Marshal added in v0.2.0

func (m *QueryEnclaveKeyResponse) Marshal() (dAtA []byte, err error)

func (*QueryEnclaveKeyResponse) MarshalTo added in v0.2.0

func (m *QueryEnclaveKeyResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryEnclaveKeyResponse) MarshalToSizedBuffer added in v0.2.0

func (m *QueryEnclaveKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEnclaveKeyResponse) ProtoMessage added in v0.2.0

func (*QueryEnclaveKeyResponse) ProtoMessage()

func (*QueryEnclaveKeyResponse) Reset added in v0.2.0

func (m *QueryEnclaveKeyResponse) Reset()

func (*QueryEnclaveKeyResponse) Size added in v0.2.0

func (m *QueryEnclaveKeyResponse) Size() (n int)

func (*QueryEnclaveKeyResponse) String added in v0.2.0

func (m *QueryEnclaveKeyResponse) String() string

func (*QueryEnclaveKeyResponse) Unmarshal added in v0.2.0

func (m *QueryEnclaveKeyResponse) Unmarshal(dAtA []byte) error

func (*QueryEnclaveKeyResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryEnclaveKeyResponse) XXX_DiscardUnknown()

func (*QueryEnclaveKeyResponse) XXX_Marshal added in v0.2.0

func (m *QueryEnclaveKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEnclaveKeyResponse) XXX_Merge added in v0.2.0

func (m *QueryEnclaveKeyResponse) XXX_Merge(src proto.Message)

func (*QueryEnclaveKeyResponse) XXX_Size added in v0.2.0

func (m *QueryEnclaveKeyResponse) XXX_Size() int

func (*QueryEnclaveKeyResponse) XXX_Unmarshal added in v0.2.0

func (m *QueryEnclaveKeyResponse) XXX_Unmarshal(b []byte) error

type QueryServer

QueryServer is the server API for Query service.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AvailableEnclaveKeys added in v0.2.0

func (*UnimplementedQueryServer) EnclaveKey added in v0.2.0

Jump to

Keyboard shortcuts

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