Documentation ¶
Index ¶
- type SDK
- func (_m *SDK) Algo(ctx context.Context, algorithm *os.File, requirements *os.File, ...) error
- func (_m *SDK) Attestation(ctx context.Context, reportData [64]byte, attestationFile *os.File) error
- func (_m *SDK) Data(ctx context.Context, dataset *os.File, filename string, privKey interface{}) error
- func (_m *SDK) EXPECT() *SDK_Expecter
- func (_m *SDK) Result(ctx context.Context, privKey interface{}, resultFile *os.File) error
- type SDK_Algo_Call
- type SDK_Attestation_Call
- func (_c *SDK_Attestation_Call) Return(_a0 error) *SDK_Attestation_Call
- func (_c *SDK_Attestation_Call) Run(run func(ctx context.Context, reportData [64]byte, attestationFile *os.File)) *SDK_Attestation_Call
- func (_c *SDK_Attestation_Call) RunAndReturn(run func(context.Context, [64]byte, *os.File) error) *SDK_Attestation_Call
- type SDK_Data_Call
- type SDK_Expecter
- func (_e *SDK_Expecter) Algo(ctx interface{}, algorithm interface{}, requirements interface{}, ...) *SDK_Algo_Call
- func (_e *SDK_Expecter) Attestation(ctx interface{}, reportData interface{}, attestationFile interface{}) *SDK_Attestation_Call
- func (_e *SDK_Expecter) Data(ctx interface{}, dataset interface{}, filename interface{}, ...) *SDK_Data_Call
- func (_e *SDK_Expecter) Result(ctx interface{}, privKey interface{}, resultFile interface{}) *SDK_Result_Call
- type SDK_Result_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDK ¶
SDK is an autogenerated mock type for the SDK type
func NewSDK ¶
NewSDK creates a new instance of SDK. 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 (*SDK) Algo ¶
func (_m *SDK) Algo(ctx context.Context, algorithm *os.File, requirements *os.File, privKey interface{}) error
Algo provides a mock function with given fields: ctx, algorithm, requirements, privKey
func (*SDK) Attestation ¶
func (_m *SDK) Attestation(ctx context.Context, reportData [64]byte, attestationFile *os.File) error
Attestation provides a mock function with given fields: ctx, reportData, attestationFile
func (*SDK) Data ¶
func (_m *SDK) Data(ctx context.Context, dataset *os.File, filename string, privKey interface{}) error
Data provides a mock function with given fields: ctx, dataset, filename, privKey
func (*SDK) EXPECT ¶
func (_m *SDK) EXPECT() *SDK_Expecter
type SDK_Algo_Call ¶
SDK_Algo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Algo'
func (*SDK_Algo_Call) Return ¶
func (_c *SDK_Algo_Call) Return(_a0 error) *SDK_Algo_Call
func (*SDK_Algo_Call) Run ¶
func (_c *SDK_Algo_Call) Run(run func(ctx context.Context, algorithm *os.File, requirements *os.File, privKey interface{})) *SDK_Algo_Call
func (*SDK_Algo_Call) RunAndReturn ¶
func (_c *SDK_Algo_Call) RunAndReturn(run func(context.Context, *os.File, *os.File, interface{}) error) *SDK_Algo_Call
type SDK_Attestation_Call ¶
SDK_Attestation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attestation'
func (*SDK_Attestation_Call) Return ¶
func (_c *SDK_Attestation_Call) Return(_a0 error) *SDK_Attestation_Call
func (*SDK_Attestation_Call) Run ¶
func (_c *SDK_Attestation_Call) Run(run func(ctx context.Context, reportData [64]byte, attestationFile *os.File)) *SDK_Attestation_Call
func (*SDK_Attestation_Call) RunAndReturn ¶
func (_c *SDK_Attestation_Call) RunAndReturn(run func(context.Context, [64]byte, *os.File) error) *SDK_Attestation_Call
type SDK_Data_Call ¶
SDK_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'
func (*SDK_Data_Call) Return ¶
func (_c *SDK_Data_Call) Return(_a0 error) *SDK_Data_Call
func (*SDK_Data_Call) Run ¶
func (_c *SDK_Data_Call) Run(run func(ctx context.Context, dataset *os.File, filename string, privKey interface{})) *SDK_Data_Call
func (*SDK_Data_Call) RunAndReturn ¶
func (_c *SDK_Data_Call) RunAndReturn(run func(context.Context, *os.File, string, interface{}) error) *SDK_Data_Call
type SDK_Expecter ¶
type SDK_Expecter struct {
// contains filtered or unexported fields
}
func (*SDK_Expecter) Algo ¶
func (_e *SDK_Expecter) Algo(ctx interface{}, algorithm interface{}, requirements interface{}, privKey interface{}) *SDK_Algo_Call
Algo is a helper method to define mock.On call
- ctx context.Context
- algorithm *os.File
- requirements *os.File
- privKey interface{}
func (*SDK_Expecter) Attestation ¶
func (_e *SDK_Expecter) Attestation(ctx interface{}, reportData interface{}, attestationFile interface{}) *SDK_Attestation_Call
Attestation is a helper method to define mock.On call
- ctx context.Context
- reportData [64]byte
- attestationFile *os.File
func (*SDK_Expecter) Data ¶
func (_e *SDK_Expecter) Data(ctx interface{}, dataset interface{}, filename interface{}, privKey interface{}) *SDK_Data_Call
Data is a helper method to define mock.On call
- ctx context.Context
- dataset *os.File
- filename string
- privKey interface{}
func (*SDK_Expecter) Result ¶
func (_e *SDK_Expecter) Result(ctx interface{}, privKey interface{}, resultFile interface{}) *SDK_Result_Call
Result is a helper method to define mock.On call
- ctx context.Context
- privKey interface{}
- resultFile *os.File
type SDK_Result_Call ¶
SDK_Result_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Result'
func (*SDK_Result_Call) Return ¶
func (_c *SDK_Result_Call) Return(_a0 error) *SDK_Result_Call
func (*SDK_Result_Call) Run ¶
func (_c *SDK_Result_Call) Run(run func(ctx context.Context, privKey interface{}, resultFile *os.File)) *SDK_Result_Call
func (*SDK_Result_Call) RunAndReturn ¶
func (_c *SDK_Result_Call) RunAndReturn(run func(context.Context, interface{}, *os.File) error) *SDK_Result_Call