Documentation ¶
Index ¶
- type DataSourceServiceClient
- func (_m *DataSourceServiceClient) AnalyzeAttackFlow(ctx context.Context, in *datasource.AnalyzeAttackFlowRequest, ...) (*datasource.AnalyzeAttackFlowResponse, error)
- func (_m *DataSourceServiceClient) CleanDataSource(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (_m *DataSourceServiceClient) NotifyScanError(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
- type DataSourceServiceServer
- func (_m *DataSourceServiceServer) AnalyzeAttackFlow(_a0 context.Context, _a1 *datasource.AnalyzeAttackFlowRequest) (*datasource.AnalyzeAttackFlowResponse, error)
- func (_m *DataSourceServiceServer) CleanDataSource(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error)
- func (_m *DataSourceServiceServer) NotifyScanError(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSourceServiceClient ¶
DataSourceServiceClient is an autogenerated mock type for the DataSourceServiceClient type
func NewDataSourceServiceClient ¶
func NewDataSourceServiceClient(t interface { mock.TestingT Cleanup(func()) }) *DataSourceServiceClient
NewDataSourceServiceClient creates a new instance of DataSourceServiceClient. 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 (*DataSourceServiceClient) AnalyzeAttackFlow ¶ added in v0.9.0
func (_m *DataSourceServiceClient) AnalyzeAttackFlow(ctx context.Context, in *datasource.AnalyzeAttackFlowRequest, opts ...grpc.CallOption) (*datasource.AnalyzeAttackFlowResponse, error)
AnalyzeAttackFlow provides a mock function with given fields: ctx, in, opts
func (*DataSourceServiceClient) CleanDataSource ¶
func (_m *DataSourceServiceClient) CleanDataSource(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
CleanDataSource provides a mock function with given fields: ctx, in, opts
func (*DataSourceServiceClient) NotifyScanError ¶ added in v0.9.0
func (_m *DataSourceServiceClient) NotifyScanError(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
NotifyScanError provides a mock function with given fields: ctx, in, opts
type DataSourceServiceServer ¶
DataSourceServiceServer is an autogenerated mock type for the DataSourceServiceServer type
func NewDataSourceServiceServer ¶
func NewDataSourceServiceServer(t interface { mock.TestingT Cleanup(func()) }) *DataSourceServiceServer
NewDataSourceServiceServer creates a new instance of DataSourceServiceServer. 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 (*DataSourceServiceServer) AnalyzeAttackFlow ¶ added in v0.9.0
func (_m *DataSourceServiceServer) AnalyzeAttackFlow(_a0 context.Context, _a1 *datasource.AnalyzeAttackFlowRequest) (*datasource.AnalyzeAttackFlowResponse, error)
AnalyzeAttackFlow provides a mock function with given fields: _a0, _a1
func (*DataSourceServiceServer) CleanDataSource ¶
func (_m *DataSourceServiceServer) CleanDataSource(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error)
CleanDataSource provides a mock function with given fields: _a0, _a1
func (*DataSourceServiceServer) NotifyScanError ¶ added in v0.9.0
func (_m *DataSourceServiceServer) NotifyScanError(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error)
NotifyScanError provides a mock function with given fields: _a0, _a1