enclave

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 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

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

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

func (*EnclaveKeyInfo) Marshal

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

func (*EnclaveKeyInfo) MarshalTo

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

func (*EnclaveKeyInfo) MarshalToSizedBuffer

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

func (*EnclaveKeyInfo) ProtoMessage

func (*EnclaveKeyInfo) ProtoMessage()

func (*EnclaveKeyInfo) Reset

func (m *EnclaveKeyInfo) Reset()

func (*EnclaveKeyInfo) Size

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

func (*EnclaveKeyInfo) String

func (m *EnclaveKeyInfo) String() string

func (*EnclaveKeyInfo) Unmarshal

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

func (*EnclaveKeyInfo) XXX_DiscardUnknown

func (m *EnclaveKeyInfo) XXX_DiscardUnknown()

func (*EnclaveKeyInfo) XXX_Marshal

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

func (*EnclaveKeyInfo) XXX_Merge

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

func (*EnclaveKeyInfo) XXX_Size

func (m *EnclaveKeyInfo) XXX_Size() int

func (*EnclaveKeyInfo) XXX_Unmarshal

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

type QueryAvailableEnclaveKeysRequest

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

func (*QueryAvailableEnclaveKeysRequest) Descriptor

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

func (*QueryAvailableEnclaveKeysRequest) Marshal

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

func (*QueryAvailableEnclaveKeysRequest) MarshalTo

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

func (*QueryAvailableEnclaveKeysRequest) MarshalToSizedBuffer

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

func (*QueryAvailableEnclaveKeysRequest) ProtoMessage

func (*QueryAvailableEnclaveKeysRequest) ProtoMessage()

func (*QueryAvailableEnclaveKeysRequest) Reset

func (*QueryAvailableEnclaveKeysRequest) Size

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

func (*QueryAvailableEnclaveKeysRequest) String

func (*QueryAvailableEnclaveKeysRequest) Unmarshal

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

func (*QueryAvailableEnclaveKeysRequest) XXX_DiscardUnknown

func (m *QueryAvailableEnclaveKeysRequest) XXX_DiscardUnknown()

func (*QueryAvailableEnclaveKeysRequest) XXX_Marshal

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

func (*QueryAvailableEnclaveKeysRequest) XXX_Merge

func (*QueryAvailableEnclaveKeysRequest) XXX_Size

func (m *QueryAvailableEnclaveKeysRequest) XXX_Size() int

func (*QueryAvailableEnclaveKeysRequest) XXX_Unmarshal

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

type QueryAvailableEnclaveKeysResponse

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

func (*QueryAvailableEnclaveKeysResponse) Descriptor

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

func (*QueryAvailableEnclaveKeysResponse) Marshal

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

func (*QueryAvailableEnclaveKeysResponse) MarshalTo

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

func (*QueryAvailableEnclaveKeysResponse) MarshalToSizedBuffer

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

func (*QueryAvailableEnclaveKeysResponse) ProtoMessage

func (*QueryAvailableEnclaveKeysResponse) ProtoMessage()

func (*QueryAvailableEnclaveKeysResponse) Reset

func (*QueryAvailableEnclaveKeysResponse) Size

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

func (*QueryAvailableEnclaveKeysResponse) String

func (*QueryAvailableEnclaveKeysResponse) Unmarshal

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

func (*QueryAvailableEnclaveKeysResponse) XXX_DiscardUnknown

func (m *QueryAvailableEnclaveKeysResponse) XXX_DiscardUnknown()

func (*QueryAvailableEnclaveKeysResponse) XXX_Marshal

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

func (*QueryAvailableEnclaveKeysResponse) XXX_Merge

func (*QueryAvailableEnclaveKeysResponse) XXX_Size

func (m *QueryAvailableEnclaveKeysResponse) XXX_Size() int

func (*QueryAvailableEnclaveKeysResponse) XXX_Unmarshal

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

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

func (*QueryEnclaveKeyRequest) Descriptor

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

func (*QueryEnclaveKeyRequest) Marshal

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

func (*QueryEnclaveKeyRequest) MarshalTo

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

func (*QueryEnclaveKeyRequest) MarshalToSizedBuffer

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

func (*QueryEnclaveKeyRequest) ProtoMessage

func (*QueryEnclaveKeyRequest) ProtoMessage()

func (*QueryEnclaveKeyRequest) Reset

func (m *QueryEnclaveKeyRequest) Reset()

func (*QueryEnclaveKeyRequest) Size

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

func (*QueryEnclaveKeyRequest) String

func (m *QueryEnclaveKeyRequest) String() string

func (*QueryEnclaveKeyRequest) Unmarshal

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

func (*QueryEnclaveKeyRequest) XXX_DiscardUnknown

func (m *QueryEnclaveKeyRequest) XXX_DiscardUnknown()

func (*QueryEnclaveKeyRequest) XXX_Marshal

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

func (*QueryEnclaveKeyRequest) XXX_Merge

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

func (*QueryEnclaveKeyRequest) XXX_Size

func (m *QueryEnclaveKeyRequest) XXX_Size() int

func (*QueryEnclaveKeyRequest) XXX_Unmarshal

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

type QueryEnclaveKeyResponse

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

func (*QueryEnclaveKeyResponse) Descriptor

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

func (*QueryEnclaveKeyResponse) Marshal

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

func (*QueryEnclaveKeyResponse) MarshalTo

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

func (*QueryEnclaveKeyResponse) MarshalToSizedBuffer

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

func (*QueryEnclaveKeyResponse) ProtoMessage

func (*QueryEnclaveKeyResponse) ProtoMessage()

func (*QueryEnclaveKeyResponse) Reset

func (m *QueryEnclaveKeyResponse) Reset()

func (*QueryEnclaveKeyResponse) Size

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

func (*QueryEnclaveKeyResponse) String

func (m *QueryEnclaveKeyResponse) String() string

func (*QueryEnclaveKeyResponse) Unmarshal

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

func (*QueryEnclaveKeyResponse) XXX_DiscardUnknown

func (m *QueryEnclaveKeyResponse) XXX_DiscardUnknown()

func (*QueryEnclaveKeyResponse) XXX_Marshal

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

func (*QueryEnclaveKeyResponse) XXX_Merge

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

func (*QueryEnclaveKeyResponse) XXX_Size

func (m *QueryEnclaveKeyResponse) XXX_Size() int

func (*QueryEnclaveKeyResponse) XXX_Unmarshal

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) EnclaveKey

Jump to

Keyboard shortcuts

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