Documentation
¶
Index ¶
- type CodeServiceClient
- func (_m *CodeServiceClient) DeleteDependencySetting(ctx context.Context, in *code.DeleteDependencySettingRequest, ...) (*emptypb.Empty, error)
- func (_m *CodeServiceClient) DeleteGitHubSetting(ctx context.Context, in *code.DeleteGitHubSettingRequest, ...) (*emptypb.Empty, error)
- func (_m *CodeServiceClient) DeleteGitleaksSetting(ctx context.Context, in *code.DeleteGitleaksSettingRequest, ...) (*emptypb.Empty, error)
- func (_m *CodeServiceClient) GetGitHubSetting(ctx context.Context, in *code.GetGitHubSettingRequest, opts ...grpc.CallOption) (*code.GetGitHubSettingResponse, error)
- func (_m *CodeServiceClient) GetGitleaksCache(ctx context.Context, in *code.GetGitleaksCacheRequest, opts ...grpc.CallOption) (*code.GetGitleaksCacheResponse, error)
- func (_m *CodeServiceClient) InvokeScanAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (_m *CodeServiceClient) InvokeScanDependency(ctx context.Context, in *code.InvokeScanDependencyRequest, ...) (*emptypb.Empty, error)
- func (_m *CodeServiceClient) InvokeScanGitleaks(ctx context.Context, in *code.InvokeScanGitleaksRequest, ...) (*emptypb.Empty, error)
- func (_m *CodeServiceClient) ListDataSource(ctx context.Context, in *code.ListDataSourceRequest, opts ...grpc.CallOption) (*code.ListDataSourceResponse, error)
- func (_m *CodeServiceClient) ListGitHubSetting(ctx context.Context, in *code.ListGitHubSettingRequest, ...) (*code.ListGitHubSettingResponse, error)
- func (_m *CodeServiceClient) PutDependencySetting(ctx context.Context, in *code.PutDependencySettingRequest, ...) (*code.PutDependencySettingResponse, error)
- func (_m *CodeServiceClient) PutGitHubSetting(ctx context.Context, in *code.PutGitHubSettingRequest, opts ...grpc.CallOption) (*code.PutGitHubSettingResponse, error)
- func (_m *CodeServiceClient) PutGitleaksCache(ctx context.Context, in *code.PutGitleaksCacheRequest, opts ...grpc.CallOption) (*code.PutGitleaksCacheResponse, error)
- func (_m *CodeServiceClient) PutGitleaksSetting(ctx context.Context, in *code.PutGitleaksSettingRequest, ...) (*code.PutGitleaksSettingResponse, error)
- type CodeServiceServer
- func (_m *CodeServiceServer) DeleteDependencySetting(_a0 context.Context, _a1 *code.DeleteDependencySettingRequest) (*emptypb.Empty, error)
- func (_m *CodeServiceServer) DeleteGitHubSetting(_a0 context.Context, _a1 *code.DeleteGitHubSettingRequest) (*emptypb.Empty, error)
- func (_m *CodeServiceServer) DeleteGitleaksSetting(_a0 context.Context, _a1 *code.DeleteGitleaksSettingRequest) (*emptypb.Empty, error)
- func (_m *CodeServiceServer) GetGitHubSetting(_a0 context.Context, _a1 *code.GetGitHubSettingRequest) (*code.GetGitHubSettingResponse, error)
- func (_m *CodeServiceServer) GetGitleaksCache(_a0 context.Context, _a1 *code.GetGitleaksCacheRequest) (*code.GetGitleaksCacheResponse, error)
- func (_m *CodeServiceServer) InvokeScanAll(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error)
- func (_m *CodeServiceServer) InvokeScanDependency(_a0 context.Context, _a1 *code.InvokeScanDependencyRequest) (*emptypb.Empty, error)
- func (_m *CodeServiceServer) InvokeScanGitleaks(_a0 context.Context, _a1 *code.InvokeScanGitleaksRequest) (*emptypb.Empty, error)
- func (_m *CodeServiceServer) ListDataSource(_a0 context.Context, _a1 *code.ListDataSourceRequest) (*code.ListDataSourceResponse, error)
- func (_m *CodeServiceServer) ListGitHubSetting(_a0 context.Context, _a1 *code.ListGitHubSettingRequest) (*code.ListGitHubSettingResponse, error)
- func (_m *CodeServiceServer) PutDependencySetting(_a0 context.Context, _a1 *code.PutDependencySettingRequest) (*code.PutDependencySettingResponse, error)
- func (_m *CodeServiceServer) PutGitHubSetting(_a0 context.Context, _a1 *code.PutGitHubSettingRequest) (*code.PutGitHubSettingResponse, error)
- func (_m *CodeServiceServer) PutGitleaksCache(_a0 context.Context, _a1 *code.PutGitleaksCacheRequest) (*code.PutGitleaksCacheResponse, error)
- func (_m *CodeServiceServer) PutGitleaksSetting(_a0 context.Context, _a1 *code.PutGitleaksSettingRequest) (*code.PutGitleaksSettingResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeServiceClient ¶
CodeServiceClient is an autogenerated mock type for the CodeServiceClient type
func NewCodeServiceClient ¶
func NewCodeServiceClient(t mockConstructorTestingTNewCodeServiceClient) *CodeServiceClient
NewCodeServiceClient creates a new instance of CodeServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CodeServiceClient) DeleteDependencySetting ¶
func (_m *CodeServiceClient) DeleteDependencySetting(ctx context.Context, in *code.DeleteDependencySettingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteDependencySetting provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) DeleteGitHubSetting ¶
func (_m *CodeServiceClient) DeleteGitHubSetting(ctx context.Context, in *code.DeleteGitHubSettingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteGitHubSetting provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) DeleteGitleaksSetting ¶
func (_m *CodeServiceClient) DeleteGitleaksSetting(ctx context.Context, in *code.DeleteGitleaksSettingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteGitleaksSetting provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) GetGitHubSetting ¶
func (_m *CodeServiceClient) GetGitHubSetting(ctx context.Context, in *code.GetGitHubSettingRequest, opts ...grpc.CallOption) (*code.GetGitHubSettingResponse, error)
GetGitHubSetting provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) GetGitleaksCache ¶ added in v0.5.0
func (_m *CodeServiceClient) GetGitleaksCache(ctx context.Context, in *code.GetGitleaksCacheRequest, opts ...grpc.CallOption) (*code.GetGitleaksCacheResponse, error)
GetGitleaksCache provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) InvokeScanAll ¶
func (_m *CodeServiceClient) InvokeScanAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
InvokeScanAll provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) InvokeScanDependency ¶
func (_m *CodeServiceClient) InvokeScanDependency(ctx context.Context, in *code.InvokeScanDependencyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
InvokeScanDependency provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) InvokeScanGitleaks ¶
func (_m *CodeServiceClient) InvokeScanGitleaks(ctx context.Context, in *code.InvokeScanGitleaksRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
InvokeScanGitleaks provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) ListDataSource ¶
func (_m *CodeServiceClient) ListDataSource(ctx context.Context, in *code.ListDataSourceRequest, opts ...grpc.CallOption) (*code.ListDataSourceResponse, error)
ListDataSource provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) ListGitHubSetting ¶
func (_m *CodeServiceClient) ListGitHubSetting(ctx context.Context, in *code.ListGitHubSettingRequest, opts ...grpc.CallOption) (*code.ListGitHubSettingResponse, error)
ListGitHubSetting provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) PutDependencySetting ¶
func (_m *CodeServiceClient) PutDependencySetting(ctx context.Context, in *code.PutDependencySettingRequest, opts ...grpc.CallOption) (*code.PutDependencySettingResponse, error)
PutDependencySetting provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) PutGitHubSetting ¶
func (_m *CodeServiceClient) PutGitHubSetting(ctx context.Context, in *code.PutGitHubSettingRequest, opts ...grpc.CallOption) (*code.PutGitHubSettingResponse, error)
PutGitHubSetting provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) PutGitleaksCache ¶ added in v0.5.0
func (_m *CodeServiceClient) PutGitleaksCache(ctx context.Context, in *code.PutGitleaksCacheRequest, opts ...grpc.CallOption) (*code.PutGitleaksCacheResponse, error)
PutGitleaksCache provides a mock function with given fields: ctx, in, opts
func (*CodeServiceClient) PutGitleaksSetting ¶
func (_m *CodeServiceClient) PutGitleaksSetting(ctx context.Context, in *code.PutGitleaksSettingRequest, opts ...grpc.CallOption) (*code.PutGitleaksSettingResponse, error)
PutGitleaksSetting provides a mock function with given fields: ctx, in, opts
type CodeServiceServer ¶
CodeServiceServer is an autogenerated mock type for the CodeServiceServer type
func NewCodeServiceServer ¶
func NewCodeServiceServer(t mockConstructorTestingTNewCodeServiceServer) *CodeServiceServer
NewCodeServiceServer creates a new instance of CodeServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CodeServiceServer) DeleteDependencySetting ¶
func (_m *CodeServiceServer) DeleteDependencySetting(_a0 context.Context, _a1 *code.DeleteDependencySettingRequest) (*emptypb.Empty, error)
DeleteDependencySetting provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) DeleteGitHubSetting ¶
func (_m *CodeServiceServer) DeleteGitHubSetting(_a0 context.Context, _a1 *code.DeleteGitHubSettingRequest) (*emptypb.Empty, error)
DeleteGitHubSetting provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) DeleteGitleaksSetting ¶
func (_m *CodeServiceServer) DeleteGitleaksSetting(_a0 context.Context, _a1 *code.DeleteGitleaksSettingRequest) (*emptypb.Empty, error)
DeleteGitleaksSetting provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) GetGitHubSetting ¶
func (_m *CodeServiceServer) GetGitHubSetting(_a0 context.Context, _a1 *code.GetGitHubSettingRequest) (*code.GetGitHubSettingResponse, error)
GetGitHubSetting provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) GetGitleaksCache ¶ added in v0.5.0
func (_m *CodeServiceServer) GetGitleaksCache(_a0 context.Context, _a1 *code.GetGitleaksCacheRequest) (*code.GetGitleaksCacheResponse, error)
GetGitleaksCache provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) InvokeScanAll ¶
func (_m *CodeServiceServer) InvokeScanAll(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error)
InvokeScanAll provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) InvokeScanDependency ¶
func (_m *CodeServiceServer) InvokeScanDependency(_a0 context.Context, _a1 *code.InvokeScanDependencyRequest) (*emptypb.Empty, error)
InvokeScanDependency provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) InvokeScanGitleaks ¶
func (_m *CodeServiceServer) InvokeScanGitleaks(_a0 context.Context, _a1 *code.InvokeScanGitleaksRequest) (*emptypb.Empty, error)
InvokeScanGitleaks provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) ListDataSource ¶
func (_m *CodeServiceServer) ListDataSource(_a0 context.Context, _a1 *code.ListDataSourceRequest) (*code.ListDataSourceResponse, error)
ListDataSource provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) ListGitHubSetting ¶
func (_m *CodeServiceServer) ListGitHubSetting(_a0 context.Context, _a1 *code.ListGitHubSettingRequest) (*code.ListGitHubSettingResponse, error)
ListGitHubSetting provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) PutDependencySetting ¶
func (_m *CodeServiceServer) PutDependencySetting(_a0 context.Context, _a1 *code.PutDependencySettingRequest) (*code.PutDependencySettingResponse, error)
PutDependencySetting provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) PutGitHubSetting ¶
func (_m *CodeServiceServer) PutGitHubSetting(_a0 context.Context, _a1 *code.PutGitHubSettingRequest) (*code.PutGitHubSettingResponse, error)
PutGitHubSetting provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) PutGitleaksCache ¶ added in v0.5.0
func (_m *CodeServiceServer) PutGitleaksCache(_a0 context.Context, _a1 *code.PutGitleaksCacheRequest) (*code.PutGitleaksCacheResponse, error)
PutGitleaksCache provides a mock function with given fields: _a0, _a1
func (*CodeServiceServer) PutGitleaksSetting ¶
func (_m *CodeServiceServer) PutGitleaksSetting(_a0 context.Context, _a1 *code.PutGitleaksSettingRequest) (*code.PutGitleaksSettingResponse, error)
PutGitleaksSetting provides a mock function with given fields: _a0, _a1