Documentation
¶
Index ¶
- type Authenticator
- type Service
- func (_m *Service) Algo(ctx context.Context, algorithm agent.Algorithm) error
- func (_m *Service) Attestation(ctx context.Context, reportData [64]byte) ([]byte, error)
- func (_m *Service) Data(ctx context.Context, dataset agent.Dataset) error
- func (_m *Service) Result(ctx context.Context) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator is an autogenerated mock type for the Authenticator type
func NewAuthenticator ¶
func NewAuthenticator(t interface { mock.TestingT Cleanup(func()) }) *Authenticator
NewAuthenticator creates a new instance of Authenticator. 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 (*Authenticator) AuthenticateUser ¶
func (_m *Authenticator) AuthenticateUser(ctx context.Context, role auth.UserRole) (context.Context, error)
AuthenticateUser provides a mock function with given fields: ctx, role
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 ¶
Attestation provides a mock function with given fields: ctx, reportData