Documentation
¶
Index ¶
- type AgentService_AlgoClient
- func (_m *AgentService_AlgoClient) CloseAndRecv() (*agent.AlgoResponse, error)
- func (_m *AgentService_AlgoClient) CloseSend() error
- func (_m *AgentService_AlgoClient) Context() context.Context
- func (_m *AgentService_AlgoClient) Header() (metadata.MD, error)
- func (_m *AgentService_AlgoClient) RecvMsg(m interface{}) error
- func (_m *AgentService_AlgoClient) Send(_a0 *agent.AlgoRequest) error
- func (_m *AgentService_AlgoClient) SendMsg(m interface{}) error
- func (_m *AgentService_AlgoClient) Trailer() metadata.MD
- type AgentService_DataClient
- func (_m *AgentService_DataClient) CloseAndRecv() (*agent.DataResponse, error)
- func (_m *AgentService_DataClient) CloseSend() error
- func (_m *AgentService_DataClient) Context() context.Context
- func (_m *AgentService_DataClient) Header() (metadata.MD, error)
- func (_m *AgentService_DataClient) RecvMsg(m interface{}) error
- func (_m *AgentService_DataClient) Send(_a0 *agent.DataRequest) error
- func (_m *AgentService_DataClient) SendMsg(m interface{}) error
- func (_m *AgentService_DataClient) Trailer() metadata.MD
- type Service
- func (_m *Service) Algo(ctx context.Context, algorithm agent.Algorithm) error
- func (_m *Service) Attestation(ctx context.Context, reportData [64]byte, nonce [32]byte, ...) ([]byte, error)
- func (_m *Service) Data(ctx context.Context, dataset agent.Dataset) error
- func (_m *Service) EXPECT() *Service_Expecter
- func (_m *Service) InitComputation(ctx context.Context, cmp agent.Computation) error
- func (_m *Service) Result(ctx context.Context) ([]byte, error)
- func (_m *Service) State() string
- func (_m *Service) StopComputation(ctx context.Context) error
- type Service_Algo_Call
- type Service_Attestation_Call
- func (_c *Service_Attestation_Call) Return(_a0 []byte, _a1 error) *Service_Attestation_Call
- func (_c *Service_Attestation_Call) Run(run func(ctx context.Context, reportData [64]byte, nonce [32]byte, ...)) *Service_Attestation_Call
- func (_c *Service_Attestation_Call) RunAndReturn(...) *Service_Attestation_Call
- type Service_Data_Call
- type Service_Expecter
- func (_e *Service_Expecter) Algo(ctx interface{}, algorithm interface{}) *Service_Algo_Call
- func (_e *Service_Expecter) Attestation(ctx interface{}, reportData interface{}, nonce interface{}, ...) *Service_Attestation_Call
- func (_e *Service_Expecter) Data(ctx interface{}, dataset interface{}) *Service_Data_Call
- func (_e *Service_Expecter) InitComputation(ctx interface{}, cmp interface{}) *Service_InitComputation_Call
- func (_e *Service_Expecter) Result(ctx interface{}) *Service_Result_Call
- func (_e *Service_Expecter) State() *Service_State_Call
- func (_e *Service_Expecter) StopComputation(ctx interface{}) *Service_StopComputation_Call
- type Service_InitComputation_Call
- func (_c *Service_InitComputation_Call) Return(_a0 error) *Service_InitComputation_Call
- func (_c *Service_InitComputation_Call) Run(run func(ctx context.Context, cmp agent.Computation)) *Service_InitComputation_Call
- func (_c *Service_InitComputation_Call) RunAndReturn(run func(context.Context, agent.Computation) error) *Service_InitComputation_Call
- type Service_Result_Call
- type Service_State_Call
- type Service_StopComputation_Call
- func (_c *Service_StopComputation_Call) Return(_a0 error) *Service_StopComputation_Call
- func (_c *Service_StopComputation_Call) Run(run func(ctx context.Context)) *Service_StopComputation_Call
- func (_c *Service_StopComputation_Call) RunAndReturn(run func(context.Context) error) *Service_StopComputation_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentService_AlgoClient ¶ added in v0.4.0
AgentService_AlgoClient is an autogenerated mock type for the AgentService_AlgoClient type
func NewAgentService_AlgoClient ¶ added in v0.4.0
func NewAgentService_AlgoClient(t interface { mock.TestingT Cleanup(func()) }) *AgentService_AlgoClient
NewAgentService_AlgoClient creates a new instance of AgentService_AlgoClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AgentService_AlgoClient) CloseAndRecv ¶ added in v0.4.0
func (_m *AgentService_AlgoClient) CloseAndRecv() (*agent.AlgoResponse, error)
CloseAndRecv provides a mock function with given fields:
func (*AgentService_AlgoClient) CloseSend ¶ added in v0.4.0
func (_m *AgentService_AlgoClient) CloseSend() error
CloseSend provides a mock function with given fields:
func (*AgentService_AlgoClient) Context ¶ added in v0.4.0
func (_m *AgentService_AlgoClient) Context() context.Context
Context provides a mock function with given fields:
func (*AgentService_AlgoClient) Header ¶ added in v0.4.0
func (_m *AgentService_AlgoClient) Header() (metadata.MD, error)
Header provides a mock function with given fields:
func (*AgentService_AlgoClient) RecvMsg ¶ added in v0.4.0
func (_m *AgentService_AlgoClient) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*AgentService_AlgoClient) Send ¶ added in v0.4.0
func (_m *AgentService_AlgoClient) Send(_a0 *agent.AlgoRequest) error
Send provides a mock function with given fields: _a0
func (*AgentService_AlgoClient) SendMsg ¶ added in v0.4.0
func (_m *AgentService_AlgoClient) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*AgentService_AlgoClient) Trailer ¶ added in v0.4.0
func (_m *AgentService_AlgoClient) Trailer() metadata.MD
Trailer provides a mock function with given fields:
type AgentService_DataClient ¶ added in v0.4.0
AgentService_DataClient is an autogenerated mock type for the AgentService_DataClient type
func NewAgentService_DataClient ¶ added in v0.4.0
func NewAgentService_DataClient(t interface { mock.TestingT Cleanup(func()) }) *AgentService_DataClient
NewAgentService_DataClient creates a new instance of AgentService_DataClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AgentService_DataClient) CloseAndRecv ¶ added in v0.4.0
func (_m *AgentService_DataClient) CloseAndRecv() (*agent.DataResponse, error)
CloseAndRecv provides a mock function with given fields:
func (*AgentService_DataClient) CloseSend ¶ added in v0.4.0
func (_m *AgentService_DataClient) CloseSend() error
CloseSend provides a mock function with given fields:
func (*AgentService_DataClient) Context ¶ added in v0.4.0
func (_m *AgentService_DataClient) Context() context.Context
Context provides a mock function with given fields:
func (*AgentService_DataClient) Header ¶ added in v0.4.0
func (_m *AgentService_DataClient) Header() (metadata.MD, error)
Header provides a mock function with given fields:
func (*AgentService_DataClient) RecvMsg ¶ added in v0.4.0
func (_m *AgentService_DataClient) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*AgentService_DataClient) Send ¶ added in v0.4.0
func (_m *AgentService_DataClient) Send(_a0 *agent.DataRequest) error
Send provides a mock function with given fields: _a0
func (*AgentService_DataClient) SendMsg ¶ added in v0.4.0
func (_m *AgentService_DataClient) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*AgentService_DataClient) Trailer ¶ added in v0.4.0
func (_m *AgentService_DataClient) Trailer() metadata.MD
Trailer provides a mock function with given fields:
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Service) Attestation ¶
func (_m *Service) Attestation(ctx context.Context, reportData [64]byte, nonce [32]byte, attType config.AttestationType) ([]byte, error)
Attestation provides a mock function with given fields: ctx, reportData, nonce, attType
func (*Service) EXPECT ¶ added in v0.4.0
func (_m *Service) EXPECT() *Service_Expecter
func (*Service) InitComputation ¶ added in v0.5.0
InitComputation provides a mock function with given fields: ctx, cmp
type Service_Algo_Call ¶ added in v0.4.0
Service_Algo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Algo'
func (*Service_Algo_Call) Return ¶ added in v0.4.0
func (_c *Service_Algo_Call) Return(_a0 error) *Service_Algo_Call
func (*Service_Algo_Call) Run ¶ added in v0.4.0
func (_c *Service_Algo_Call) Run(run func(ctx context.Context, algorithm agent.Algorithm)) *Service_Algo_Call
func (*Service_Algo_Call) RunAndReturn ¶ added in v0.4.0
func (_c *Service_Algo_Call) RunAndReturn(run func(context.Context, agent.Algorithm) error) *Service_Algo_Call
type Service_Attestation_Call ¶ added in v0.4.0
Service_Attestation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attestation'
func (*Service_Attestation_Call) Return ¶ added in v0.4.0
func (_c *Service_Attestation_Call) Return(_a0 []byte, _a1 error) *Service_Attestation_Call
func (*Service_Attestation_Call) Run ¶ added in v0.4.0
func (_c *Service_Attestation_Call) Run(run func(ctx context.Context, reportData [64]byte, nonce [32]byte, attType config.AttestationType)) *Service_Attestation_Call
func (*Service_Attestation_Call) RunAndReturn ¶ added in v0.4.0
func (_c *Service_Attestation_Call) RunAndReturn(run func(context.Context, [64]byte, [32]byte, config.AttestationType) ([]byte, error)) *Service_Attestation_Call
type Service_Data_Call ¶ added in v0.4.0
Service_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'
func (*Service_Data_Call) Return ¶ added in v0.4.0
func (_c *Service_Data_Call) Return(_a0 error) *Service_Data_Call
func (*Service_Data_Call) Run ¶ added in v0.4.0
func (_c *Service_Data_Call) Run(run func(ctx context.Context, dataset agent.Dataset)) *Service_Data_Call
func (*Service_Data_Call) RunAndReturn ¶ added in v0.4.0
func (_c *Service_Data_Call) RunAndReturn(run func(context.Context, agent.Dataset) error) *Service_Data_Call
type Service_Expecter ¶ added in v0.4.0
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) Algo ¶ added in v0.4.0
func (_e *Service_Expecter) Algo(ctx interface{}, algorithm interface{}) *Service_Algo_Call
Algo is a helper method to define mock.On call
- ctx context.Context
- algorithm agent.Algorithm
func (*Service_Expecter) Attestation ¶ added in v0.4.0
func (_e *Service_Expecter) Attestation(ctx interface{}, reportData interface{}, nonce interface{}, attType interface{}) *Service_Attestation_Call
Attestation is a helper method to define mock.On call
- ctx context.Context
- reportData [64]byte
- nonce [32]byte
- attType config.AttestationType
func (*Service_Expecter) Data ¶ added in v0.4.0
func (_e *Service_Expecter) Data(ctx interface{}, dataset interface{}) *Service_Data_Call
Data is a helper method to define mock.On call
- ctx context.Context
- dataset agent.Dataset
func (*Service_Expecter) InitComputation ¶ added in v0.5.0
func (_e *Service_Expecter) InitComputation(ctx interface{}, cmp interface{}) *Service_InitComputation_Call
InitComputation is a helper method to define mock.On call
- ctx context.Context
- cmp agent.Computation
func (*Service_Expecter) Result ¶ added in v0.4.0
func (_e *Service_Expecter) Result(ctx interface{}) *Service_Result_Call
Result is a helper method to define mock.On call
- ctx context.Context
func (*Service_Expecter) State ¶ added in v0.5.0
func (_e *Service_Expecter) State() *Service_State_Call
State is a helper method to define mock.On call
func (*Service_Expecter) StopComputation ¶ added in v0.5.0
func (_e *Service_Expecter) StopComputation(ctx interface{}) *Service_StopComputation_Call
StopComputation is a helper method to define mock.On call
- ctx context.Context
type Service_InitComputation_Call ¶ added in v0.5.0
Service_InitComputation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitComputation'
func (*Service_InitComputation_Call) Return ¶ added in v0.5.0
func (_c *Service_InitComputation_Call) Return(_a0 error) *Service_InitComputation_Call
func (*Service_InitComputation_Call) Run ¶ added in v0.5.0
func (_c *Service_InitComputation_Call) Run(run func(ctx context.Context, cmp agent.Computation)) *Service_InitComputation_Call
func (*Service_InitComputation_Call) RunAndReturn ¶ added in v0.5.0
func (_c *Service_InitComputation_Call) RunAndReturn(run func(context.Context, agent.Computation) error) *Service_InitComputation_Call
type Service_Result_Call ¶ added in v0.4.0
Service_Result_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Result'
func (*Service_Result_Call) Return ¶ added in v0.4.0
func (_c *Service_Result_Call) Return(_a0 []byte, _a1 error) *Service_Result_Call
func (*Service_Result_Call) Run ¶ added in v0.4.0
func (_c *Service_Result_Call) Run(run func(ctx context.Context)) *Service_Result_Call
func (*Service_Result_Call) RunAndReturn ¶ added in v0.4.0
func (_c *Service_Result_Call) RunAndReturn(run func(context.Context) ([]byte, error)) *Service_Result_Call
type Service_State_Call ¶ added in v0.5.0
Service_State_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'State'
func (*Service_State_Call) Return ¶ added in v0.5.0
func (_c *Service_State_Call) Return(_a0 string) *Service_State_Call
func (*Service_State_Call) Run ¶ added in v0.5.0
func (_c *Service_State_Call) Run(run func()) *Service_State_Call
func (*Service_State_Call) RunAndReturn ¶ added in v0.5.0
func (_c *Service_State_Call) RunAndReturn(run func() string) *Service_State_Call
type Service_StopComputation_Call ¶ added in v0.5.0
Service_StopComputation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopComputation'
func (*Service_StopComputation_Call) Return ¶ added in v0.5.0
func (_c *Service_StopComputation_Call) Return(_a0 error) *Service_StopComputation_Call
func (*Service_StopComputation_Call) Run ¶ added in v0.5.0
func (_c *Service_StopComputation_Call) Run(run func(ctx context.Context)) *Service_StopComputation_Call
func (*Service_StopComputation_Call) RunAndReturn ¶ added in v0.5.0
func (_c *Service_StopComputation_Call) RunAndReturn(run func(context.Context) error) *Service_StopComputation_Call