mock

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAWSRepository

type MockAWSRepository struct {
	mock.Mock
}

func (*MockAWSRepository) DeleteAWS

func (*MockAWSRepository) DeleteAWSRelDataSource

func (m *MockAWSRepository) DeleteAWSRelDataSource(context.Context, uint32, uint32, uint32) error

func (*MockAWSRepository) GetAWSByAccountID

func (m *MockAWSRepository) GetAWSByAccountID(context.Context, uint32, string) (*model.AWS, error)

func (*MockAWSRepository) GetAWSDataSourceForMessage

func (m *MockAWSRepository) GetAWSDataSourceForMessage(ctx context.Context, awsID, awsDataSourceID, projectID uint32) (*message.AWSQueueMessage, error)

func (*MockAWSRepository) GetAWSRelDataSourceByID

func (m *MockAWSRepository) GetAWSRelDataSourceByID(ctx context.Context, awsID, awsDataSourceID, projectID uint32) (*model.AWSRelDataSource, error)

func (*MockAWSRepository) ListAWS

func (*MockAWSRepository) ListAWSDataSource

func (m *MockAWSRepository) ListAWSDataSource(context.Context, uint32, uint32, string) (*[]db.DataSource, error)

func (*MockAWSRepository) ListAWSRelDataSource

func (m *MockAWSRepository) ListAWSRelDataSource(ctx context.Context, projectID, awsID uint32) (*[]model.AWSRelDataSource, error)

func (*MockAWSRepository) ListDataSourceByAWSDataSourceID

func (m *MockAWSRepository) ListDataSourceByAWSDataSourceID(context.Context, uint32) (*[]db.DataSource, error)

func (*MockAWSRepository) UpsertAWS

func (m *MockAWSRepository) UpsertAWS(context.Context, *model.AWS) (*model.AWS, error)

func (*MockAWSRepository) UpsertAWSRelDataSource

type MockCodeRepository

type MockCodeRepository struct {
	mock.Mock
}

func (*MockCodeRepository) DeleteEnterpriseOrg

func (m *MockCodeRepository) DeleteEnterpriseOrg(ctx context.Context, projectID, gitleaksID uint32, login string) error

func (*MockCodeRepository) DeleteGitleaks

func (m *MockCodeRepository) DeleteGitleaks(ctx context.Context, projectID uint32, gitleaksID uint32) error

func (*MockCodeRepository) GetGitleaks

func (m *MockCodeRepository) GetGitleaks(ctx context.Context, projectID, gitleaksID uint32) (*model.CodeGitleaks, error)

func (*MockCodeRepository) ListCodeDataSource

func (m *MockCodeRepository) ListCodeDataSource(ctx context.Context, codeDataSourceID uint32, name string) (*[]model.CodeDataSource, error)

func (*MockCodeRepository) ListEnterpriseOrg

func (m *MockCodeRepository) ListEnterpriseOrg(ctx context.Context, projectID, gitleaksID uint32) (*[]model.CodeEnterpriseOrg, error)

func (*MockCodeRepository) ListGitleaks

func (m *MockCodeRepository) ListGitleaks(ctx context.Context, projectID, codeDataSourceID, gitleaksID uint32) (*[]model.CodeGitleaks, error)

func (*MockCodeRepository) UpsertEnterpriseOrg

func (*MockCodeRepository) UpsertGitleaks

func (m *MockCodeRepository) UpsertGitleaks(ctx context.Context, data *code.GitleaksForUpsert) (*model.CodeGitleaks, error)

type MockGoogleRepository

type MockGoogleRepository struct {
	mock.Mock
}

func (*MockGoogleRepository) DeleteGCP

func (m *MockGoogleRepository) DeleteGCP(ctx context.Context, projectID uint32, gcpID uint32) error

func (*MockGoogleRepository) DeleteGCPDataSource

func (m *MockGoogleRepository) DeleteGCPDataSource(ctx context.Context, projectID, gcpID, googleDataSourceID uint32) error

func (*MockGoogleRepository) GetGCP

func (m *MockGoogleRepository) GetGCP(ctx context.Context, projectID, gcpID uint32) (*model.GCP, error)

func (*MockGoogleRepository) GetGCPDataSource

func (m *MockGoogleRepository) GetGCPDataSource(ctx context.Context, projectID, gcpID, googleDataSourceID uint32) (*db.GCPDataSource, error)

func (*MockGoogleRepository) ListGCP

func (m *MockGoogleRepository) ListGCP(ctx context.Context, projectID, gcpID uint32, gcpProjectID string) (*[]model.GCP, error)

func (*MockGoogleRepository) ListGCPDataSource

func (m *MockGoogleRepository) ListGCPDataSource(ctx context.Context, projectID, gcpID uint32) (*[]db.GCPDataSource, error)

func (*MockGoogleRepository) ListGCPDataSourceByDataSourceID

func (m *MockGoogleRepository) ListGCPDataSourceByDataSourceID(ctx context.Context, googleDataSourceID uint32) (*[]db.GCPDataSource, error)

func (*MockGoogleRepository) ListGoogleDataSource

func (m *MockGoogleRepository) ListGoogleDataSource(ctx context.Context, googleDataSourceID uint32, name string) (*[]model.GoogleDataSource, error)

func (*MockGoogleRepository) UpsertGCP

func (m *MockGoogleRepository) UpsertGCP(ctx context.Context, data *google.GCPForUpsert) (*model.GCP, error)

func (*MockGoogleRepository) UpsertGCPDataSource

type MockOsintRepository

type MockOsintRepository struct {
	mock.Mock
}

func (*MockOsintRepository) DeleteOsint

func (*MockOsintRepository) DeleteOsintDataSource

func (m *MockOsintRepository) DeleteOsintDataSource(context.Context, uint32, uint32) error

func (*MockOsintRepository) DeleteOsintDetectWord

func (m *MockOsintRepository) DeleteOsintDetectWord(context.Context, uint32, uint32) error

func (*MockOsintRepository) DeleteRelOsintDataSource

func (m *MockOsintRepository) DeleteRelOsintDataSource(context.Context, uint32, uint32) error

func (*MockOsintRepository) GetOsint

func (*MockOsintRepository) GetOsintDataSource

func (*MockOsintRepository) GetOsintDetectWord

func (*MockOsintRepository) GetRelOsintDataSource

func (*MockOsintRepository) ListAllRelOsintDataSource

func (m *MockOsintRepository) ListAllRelOsintDataSource(context.Context, uint32) (*[]model.RelOsintDataSource, error)

func (*MockOsintRepository) ListOsint

func (m *MockOsintRepository) ListOsint(context.Context, uint32) (*[]model.Osint, error)

func (*MockOsintRepository) ListOsintDataSource

func (m *MockOsintRepository) ListOsintDataSource(context.Context, uint32, string) (*[]model.OsintDataSource, error)

func (*MockOsintRepository) ListOsintDetectWord

func (m *MockOsintRepository) ListOsintDetectWord(context.Context, uint32, uint32) (*[]model.OsintDetectWord, error)

func (*MockOsintRepository) ListRelOsintDataSource

func (m *MockOsintRepository) ListRelOsintDataSource(context.Context, uint32, uint32, uint32) (*[]model.RelOsintDataSource, error)

func (*MockOsintRepository) UpsertOsint

func (*MockOsintRepository) UpsertOsintDataSource

func (*MockOsintRepository) UpsertOsintDetectWord

func (*MockOsintRepository) UpsertRelOsintDataSource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL