Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeActiveScan
- func (fake *FakeActiveScan) Finish() error
- func (fake *FakeActiveScan) FinishCallCount() int
- func (fake *FakeActiveScan) FinishReturns(result1 error)
- func (fake *FakeActiveScan) FinishReturnsOnCall(i int, result1 error)
- func (fake *FakeActiveScan) Invocations() map[string][][]interface{}
- func (fake *FakeActiveScan) RecordCredential(arg1 db.Credential)
- func (fake *FakeActiveScan) RecordCredentialArgsForCall(i int) db.Credential
- func (fake *FakeActiveScan) RecordCredentialCallCount() int
- type FakeBranchRepository
- func (fake *FakeBranchRepository) GetBranches(repository db.Repository) ([]db.Branch, error)
- func (fake *FakeBranchRepository) GetBranchesArgsForCall(i int) db.Repository
- func (fake *FakeBranchRepository) GetBranchesCallCount() int
- func (fake *FakeBranchRepository) GetBranchesReturns(result1 []db.Branch, result2 error)
- func (fake *FakeBranchRepository) GetBranchesReturnsOnCall(i int, result1 []db.Branch, result2 error)
- func (fake *FakeBranchRepository) GetCredentialCountByOwner() ([]db.OwnerCredentialCount, error)
- func (fake *FakeBranchRepository) GetCredentialCountByOwnerCallCount() int
- func (fake *FakeBranchRepository) GetCredentialCountByOwnerReturns(result1 []db.OwnerCredentialCount, result2 error)
- func (fake *FakeBranchRepository) GetCredentialCountByOwnerReturnsOnCall(i int, result1 []db.OwnerCredentialCount, result2 error)
- func (fake *FakeBranchRepository) GetCredentialCountForOwner(owner string) ([]db.RepositoryCredentialCount, error)
- func (fake *FakeBranchRepository) GetCredentialCountForOwnerArgsForCall(i int) string
- func (fake *FakeBranchRepository) GetCredentialCountForOwnerCallCount() int
- func (fake *FakeBranchRepository) GetCredentialCountForOwnerReturns(result1 []db.RepositoryCredentialCount, result2 error)
- func (fake *FakeBranchRepository) GetCredentialCountForOwnerReturnsOnCall(i int, result1 []db.RepositoryCredentialCount, result2 error)
- func (fake *FakeBranchRepository) GetCredentialCountForRepo(owner string, repo string) ([]db.BranchCredentialCount, error)
- func (fake *FakeBranchRepository) GetCredentialCountForRepoArgsForCall(i int) (string, string)
- func (fake *FakeBranchRepository) GetCredentialCountForRepoCallCount() int
- func (fake *FakeBranchRepository) GetCredentialCountForRepoReturns(result1 []db.BranchCredentialCount, result2 error)
- func (fake *FakeBranchRepository) GetCredentialCountForRepoReturnsOnCall(i int, result1 []db.BranchCredentialCount, result2 error)
- func (fake *FakeBranchRepository) Invocations() map[string][][]interface{}
- func (fake *FakeBranchRepository) UpdateBranches(repository db.Repository, branches []db.Branch) error
- func (fake *FakeBranchRepository) UpdateBranchesArgsForCall(i int) (db.Repository, []db.Branch)
- func (fake *FakeBranchRepository) UpdateBranchesCallCount() int
- func (fake *FakeBranchRepository) UpdateBranchesReturns(result1 error)
- func (fake *FakeBranchRepository) UpdateBranchesReturnsOnCall(i int, result1 error)
- type FakeCommitRepository
- func (fake *FakeCommitRepository) Invocations() map[string][][]interface{}
- func (fake *FakeCommitRepository) IsCommitRegistered(logger lager.Logger, sha string) (bool, error)
- func (fake *FakeCommitRepository) IsCommitRegisteredArgsForCall(i int) (lager.Logger, string)
- func (fake *FakeCommitRepository) IsCommitRegisteredCallCount() int
- func (fake *FakeCommitRepository) IsCommitRegisteredReturns(result1 bool, result2 error)
- func (fake *FakeCommitRepository) IsCommitRegisteredReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeCommitRepository) IsRepoRegistered(logger lager.Logger, owner string, repo string) (bool, error)
- func (fake *FakeCommitRepository) IsRepoRegisteredArgsForCall(i int) (lager.Logger, string, string)
- func (fake *FakeCommitRepository) IsRepoRegisteredCallCount() int
- func (fake *FakeCommitRepository) IsRepoRegisteredReturns(result1 bool, result2 error)
- func (fake *FakeCommitRepository) IsRepoRegisteredReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeCommitRepository) RegisterCommit(logger lager.Logger, commit *db.Commit) error
- func (fake *FakeCommitRepository) RegisterCommitArgsForCall(i int) (lager.Logger, *db.Commit)
- func (fake *FakeCommitRepository) RegisterCommitCallCount() int
- func (fake *FakeCommitRepository) RegisterCommitReturns(result1 error)
- func (fake *FakeCommitRepository) RegisterCommitReturnsOnCall(i int, result1 error)
- type FakeCredentialRepository
- func (fake *FakeCredentialRepository) ForScanWithID(arg1 int) ([]db.Credential, error)
- func (fake *FakeCredentialRepository) ForScanWithIDArgsForCall(i int) int
- func (fake *FakeCredentialRepository) ForScanWithIDCallCount() int
- func (fake *FakeCredentialRepository) ForScanWithIDReturns(result1 []db.Credential, result2 error)
- func (fake *FakeCredentialRepository) ForScanWithIDReturnsOnCall(i int, result1 []db.Credential, result2 error)
- func (fake *FakeCredentialRepository) Invocations() map[string][][]interface{}
- func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersion(arg1 db.Repository, arg2 int) ([]string, error)
- func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionArgsForCall(i int) (db.Repository, int)
- func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionCallCount() int
- func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionReturns(result1 []string, result2 error)
- func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionReturnsOnCall(i int, result1 []string, result2 error)
- type FakeFetchRepository
- func (fake *FakeFetchRepository) Invocations() map[string][][]interface{}
- func (fake *FakeFetchRepository) RegisterFetch(arg1 lager.Logger, arg2 *db.Fetch) error
- func (fake *FakeFetchRepository) RegisterFetchArgsForCall(i int) (lager.Logger, *db.Fetch)
- func (fake *FakeFetchRepository) RegisterFetchCallCount() int
- func (fake *FakeFetchRepository) RegisterFetchReturns(result1 error)
- func (fake *FakeFetchRepository) RegisterFetchReturnsOnCall(i int, result1 error)
- type FakeRepositoryRepository
- func (fake *FakeRepositoryRepository) Active() ([]db.Repository, error)
- func (fake *FakeRepositoryRepository) ActiveCallCount() int
- func (fake *FakeRepositoryRepository) ActiveReturns(result1 []db.Repository, result2 error)
- func (fake *FakeRepositoryRepository) ActiveReturnsOnCall(i int, result1 []db.Repository, result2 error)
- func (fake *FakeRepositoryRepository) All() ([]db.Repository, error)
- func (fake *FakeRepositoryRepository) AllCallCount() int
- func (fake *FakeRepositoryRepository) AllForOrganization(arg1 string) ([]db.Repository, error)
- func (fake *FakeRepositoryRepository) AllForOrganizationArgsForCall(i int) string
- func (fake *FakeRepositoryRepository) AllForOrganizationCallCount() int
- func (fake *FakeRepositoryRepository) AllForOrganizationReturns(result1 []db.Repository, result2 error)
- func (fake *FakeRepositoryRepository) AllForOrganizationReturnsOnCall(i int, result1 []db.Repository, result2 error)
- func (fake *FakeRepositoryRepository) AllReturns(result1 []db.Repository, result2 error)
- func (fake *FakeRepositoryRepository) AllReturnsOnCall(i int, result1 []db.Repository, result2 error)
- func (fake *FakeRepositoryRepository) Create(arg1 *db.Repository) error
- func (fake *FakeRepositoryRepository) CreateArgsForCall(i int) *db.Repository
- func (fake *FakeRepositoryRepository) CreateCallCount() int
- func (fake *FakeRepositoryRepository) CreateReturns(result1 error)
- func (fake *FakeRepositoryRepository) CreateReturnsOnCall(i int, result1 error)
- func (fake *FakeRepositoryRepository) Find(owner string, name string) (db.Repository, bool, error)
- func (fake *FakeRepositoryRepository) FindArgsForCall(i int) (string, string)
- func (fake *FakeRepositoryRepository) FindCallCount() int
- func (fake *FakeRepositoryRepository) FindReturns(result1 db.Repository, result2 bool, result3 error)
- func (fake *FakeRepositoryRepository) FindReturnsOnCall(i int, result1 db.Repository, result2 bool, result3 error)
- func (fake *FakeRepositoryRepository) Invocations() map[string][][]interface{}
- func (fake *FakeRepositoryRepository) MarkAsCloned(owner string, name string, path string) error
- func (fake *FakeRepositoryRepository) MarkAsClonedArgsForCall(i int) (string, string, string)
- func (fake *FakeRepositoryRepository) MarkAsClonedCallCount() int
- func (fake *FakeRepositoryRepository) MarkAsClonedReturns(result1 error)
- func (fake *FakeRepositoryRepository) MarkAsClonedReturnsOnCall(i int, result1 error)
- func (fake *FakeRepositoryRepository) MustFind(owner string, name string) (db.Repository, error)
- func (fake *FakeRepositoryRepository) MustFindArgsForCall(i int) (string, string)
- func (fake *FakeRepositoryRepository) MustFindCallCount() int
- func (fake *FakeRepositoryRepository) MustFindReturns(result1 db.Repository, result2 error)
- func (fake *FakeRepositoryRepository) MustFindReturnsOnCall(i int, result1 db.Repository, result2 error)
- func (fake *FakeRepositoryRepository) NotScannedWithVersion(arg1 int) ([]db.Repository, error)
- func (fake *FakeRepositoryRepository) NotScannedWithVersionArgsForCall(i int) int
- func (fake *FakeRepositoryRepository) NotScannedWithVersionCallCount() int
- func (fake *FakeRepositoryRepository) NotScannedWithVersionReturns(result1 []db.Repository, result2 error)
- func (fake *FakeRepositoryRepository) NotScannedWithVersionReturnsOnCall(i int, result1 []db.Repository, result2 error)
- func (fake *FakeRepositoryRepository) Reenable(owner string, name string) error
- func (fake *FakeRepositoryRepository) ReenableArgsForCall(i int) (string, string)
- func (fake *FakeRepositoryRepository) ReenableCallCount() int
- func (fake *FakeRepositoryRepository) ReenableReturns(result1 error)
- func (fake *FakeRepositoryRepository) ReenableReturnsOnCall(i int, result1 error)
- func (fake *FakeRepositoryRepository) RegisterFailedFetch(arg1 lager.Logger, arg2 *db.Repository) error
- func (fake *FakeRepositoryRepository) RegisterFailedFetchArgsForCall(i int) (lager.Logger, *db.Repository)
- func (fake *FakeRepositoryRepository) RegisterFailedFetchCallCount() int
- func (fake *FakeRepositoryRepository) RegisterFailedFetchReturns(result1 error)
- func (fake *FakeRepositoryRepository) RegisterFailedFetchReturnsOnCall(i int, result1 error)
- func (fake *FakeRepositoryRepository) Update(arg1 *db.Repository) error
- func (fake *FakeRepositoryRepository) UpdateArgsForCall(i int) *db.Repository
- func (fake *FakeRepositoryRepository) UpdateCallCount() int
- func (fake *FakeRepositoryRepository) UpdateReturns(result1 error)
- func (fake *FakeRepositoryRepository) UpdateReturnsOnCall(i int, result1 error)
- type FakeScanRepository
- func (fake *FakeScanRepository) Invocations() map[string][][]interface{}
- func (fake *FakeScanRepository) ScansNotYetRunWithVersion(arg1 lager.Logger, arg2 int) ([]db.PriorScan, error)
- func (fake *FakeScanRepository) ScansNotYetRunWithVersionArgsForCall(i int) (lager.Logger, int)
- func (fake *FakeScanRepository) ScansNotYetRunWithVersionCallCount() int
- func (fake *FakeScanRepository) ScansNotYetRunWithVersionReturns(result1 []db.PriorScan, result2 error)
- func (fake *FakeScanRepository) ScansNotYetRunWithVersionReturnsOnCall(i int, result1 []db.PriorScan, result2 error)
- func (fake *FakeScanRepository) Start(arg1 lager.Logger, arg2 string, arg3 string, arg4 string, arg5 string, ...) db.ActiveScan
- func (fake *FakeScanRepository) StartArgsForCall(i int) (lager.Logger, string, string, string, string, *db.Repository, *db.Fetch)
- func (fake *FakeScanRepository) StartCallCount() int
- func (fake *FakeScanRepository) StartReturns(result1 db.ActiveScan)
- func (fake *FakeScanRepository) StartReturnsOnCall(i int, result1 db.ActiveScan)
- type FakeStatsRepository
- func (fake *FakeStatsRepository) CredentialCount() (int, error)
- func (fake *FakeStatsRepository) CredentialCountCallCount() int
- func (fake *FakeStatsRepository) CredentialCountReturns(result1 int, result2 error)
- func (fake *FakeStatsRepository) CredentialCountReturnsOnCall(i int, result1 int, result2 error)
- func (fake *FakeStatsRepository) DisabledRepositoryCount() (int, error)
- func (fake *FakeStatsRepository) DisabledRepositoryCountCallCount() int
- func (fake *FakeStatsRepository) DisabledRepositoryCountReturns(result1 int, result2 error)
- func (fake *FakeStatsRepository) DisabledRepositoryCountReturnsOnCall(i int, result1 int, result2 error)
- func (fake *FakeStatsRepository) FetchCount() (int, error)
- func (fake *FakeStatsRepository) FetchCountCallCount() int
- func (fake *FakeStatsRepository) FetchCountReturns(result1 int, result2 error)
- func (fake *FakeStatsRepository) FetchCountReturnsOnCall(i int, result1 int, result2 error)
- func (fake *FakeStatsRepository) Invocations() map[string][][]interface{}
- func (fake *FakeStatsRepository) RepositoryCount() (int, error)
- func (fake *FakeStatsRepository) RepositoryCountCallCount() int
- func (fake *FakeStatsRepository) RepositoryCountReturns(result1 int, result2 error)
- func (fake *FakeStatsRepository) RepositoryCountReturnsOnCall(i int, result1 int, result2 error)
- func (fake *FakeStatsRepository) UnclonedRepositoryCount() (int, error)
- func (fake *FakeStatsRepository) UnclonedRepositoryCountCallCount() int
- func (fake *FakeStatsRepository) UnclonedRepositoryCountReturns(result1 int, result2 error)
- func (fake *FakeStatsRepository) UnclonedRepositoryCountReturnsOnCall(i int, result1 int, result2 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeActiveScan ¶
type FakeActiveScan struct { RecordCredentialStub func(db.Credential) FinishStub func() error // contains filtered or unexported fields }
func (*FakeActiveScan) Finish ¶
func (fake *FakeActiveScan) Finish() error
func (*FakeActiveScan) FinishCallCount ¶
func (fake *FakeActiveScan) FinishCallCount() int
func (*FakeActiveScan) FinishReturns ¶
func (fake *FakeActiveScan) FinishReturns(result1 error)
func (*FakeActiveScan) FinishReturnsOnCall ¶
func (fake *FakeActiveScan) FinishReturnsOnCall(i int, result1 error)
func (*FakeActiveScan) Invocations ¶
func (fake *FakeActiveScan) Invocations() map[string][][]interface{}
func (*FakeActiveScan) RecordCredential ¶
func (fake *FakeActiveScan) RecordCredential(arg1 db.Credential)
func (*FakeActiveScan) RecordCredentialArgsForCall ¶
func (fake *FakeActiveScan) RecordCredentialArgsForCall(i int) db.Credential
func (*FakeActiveScan) RecordCredentialCallCount ¶
func (fake *FakeActiveScan) RecordCredentialCallCount() int
type FakeBranchRepository ¶
type FakeBranchRepository struct { GetBranchesStub func(repository db.Repository) ([]db.Branch, error) UpdateBranchesStub func(repository db.Repository, branches []db.Branch) error GetCredentialCountByOwnerStub func() ([]db.OwnerCredentialCount, error) GetCredentialCountForOwnerStub func(owner string) ([]db.RepositoryCredentialCount, error) GetCredentialCountForRepoStub func(owner string, repo string) ([]db.BranchCredentialCount, error) // contains filtered or unexported fields }
func (*FakeBranchRepository) GetBranches ¶
func (fake *FakeBranchRepository) GetBranches(repository db.Repository) ([]db.Branch, error)
func (*FakeBranchRepository) GetBranchesArgsForCall ¶
func (fake *FakeBranchRepository) GetBranchesArgsForCall(i int) db.Repository
func (*FakeBranchRepository) GetBranchesCallCount ¶
func (fake *FakeBranchRepository) GetBranchesCallCount() int
func (*FakeBranchRepository) GetBranchesReturns ¶
func (fake *FakeBranchRepository) GetBranchesReturns(result1 []db.Branch, result2 error)
func (*FakeBranchRepository) GetBranchesReturnsOnCall ¶
func (fake *FakeBranchRepository) GetBranchesReturnsOnCall(i int, result1 []db.Branch, result2 error)
func (*FakeBranchRepository) GetCredentialCountByOwner ¶
func (fake *FakeBranchRepository) GetCredentialCountByOwner() ([]db.OwnerCredentialCount, error)
func (*FakeBranchRepository) GetCredentialCountByOwnerCallCount ¶
func (fake *FakeBranchRepository) GetCredentialCountByOwnerCallCount() int
func (*FakeBranchRepository) GetCredentialCountByOwnerReturns ¶
func (fake *FakeBranchRepository) GetCredentialCountByOwnerReturns(result1 []db.OwnerCredentialCount, result2 error)
func (*FakeBranchRepository) GetCredentialCountByOwnerReturnsOnCall ¶
func (fake *FakeBranchRepository) GetCredentialCountByOwnerReturnsOnCall(i int, result1 []db.OwnerCredentialCount, result2 error)
func (*FakeBranchRepository) GetCredentialCountForOwner ¶
func (fake *FakeBranchRepository) GetCredentialCountForOwner(owner string) ([]db.RepositoryCredentialCount, error)
func (*FakeBranchRepository) GetCredentialCountForOwnerArgsForCall ¶
func (fake *FakeBranchRepository) GetCredentialCountForOwnerArgsForCall(i int) string
func (*FakeBranchRepository) GetCredentialCountForOwnerCallCount ¶
func (fake *FakeBranchRepository) GetCredentialCountForOwnerCallCount() int
func (*FakeBranchRepository) GetCredentialCountForOwnerReturns ¶
func (fake *FakeBranchRepository) GetCredentialCountForOwnerReturns(result1 []db.RepositoryCredentialCount, result2 error)
func (*FakeBranchRepository) GetCredentialCountForOwnerReturnsOnCall ¶
func (fake *FakeBranchRepository) GetCredentialCountForOwnerReturnsOnCall(i int, result1 []db.RepositoryCredentialCount, result2 error)
func (*FakeBranchRepository) GetCredentialCountForRepo ¶
func (fake *FakeBranchRepository) GetCredentialCountForRepo(owner string, repo string) ([]db.BranchCredentialCount, error)
func (*FakeBranchRepository) GetCredentialCountForRepoArgsForCall ¶
func (fake *FakeBranchRepository) GetCredentialCountForRepoArgsForCall(i int) (string, string)
func (*FakeBranchRepository) GetCredentialCountForRepoCallCount ¶
func (fake *FakeBranchRepository) GetCredentialCountForRepoCallCount() int
func (*FakeBranchRepository) GetCredentialCountForRepoReturns ¶
func (fake *FakeBranchRepository) GetCredentialCountForRepoReturns(result1 []db.BranchCredentialCount, result2 error)
func (*FakeBranchRepository) GetCredentialCountForRepoReturnsOnCall ¶
func (fake *FakeBranchRepository) GetCredentialCountForRepoReturnsOnCall(i int, result1 []db.BranchCredentialCount, result2 error)
func (*FakeBranchRepository) Invocations ¶
func (fake *FakeBranchRepository) Invocations() map[string][][]interface{}
func (*FakeBranchRepository) UpdateBranches ¶
func (fake *FakeBranchRepository) UpdateBranches(repository db.Repository, branches []db.Branch) error
func (*FakeBranchRepository) UpdateBranchesArgsForCall ¶
func (fake *FakeBranchRepository) UpdateBranchesArgsForCall(i int) (db.Repository, []db.Branch)
func (*FakeBranchRepository) UpdateBranchesCallCount ¶
func (fake *FakeBranchRepository) UpdateBranchesCallCount() int
func (*FakeBranchRepository) UpdateBranchesReturns ¶
func (fake *FakeBranchRepository) UpdateBranchesReturns(result1 error)
func (*FakeBranchRepository) UpdateBranchesReturnsOnCall ¶
func (fake *FakeBranchRepository) UpdateBranchesReturnsOnCall(i int, result1 error)
type FakeCommitRepository ¶
type FakeCommitRepository struct { RegisterCommitStub func(logger lager.Logger, commit *db.Commit) error IsCommitRegisteredStub func(logger lager.Logger, sha string) (bool, error) IsRepoRegisteredStub func(logger lager.Logger, owner, repo string) (bool, error) // contains filtered or unexported fields }
func (*FakeCommitRepository) Invocations ¶
func (fake *FakeCommitRepository) Invocations() map[string][][]interface{}
func (*FakeCommitRepository) IsCommitRegistered ¶
func (*FakeCommitRepository) IsCommitRegisteredArgsForCall ¶
func (fake *FakeCommitRepository) IsCommitRegisteredArgsForCall(i int) (lager.Logger, string)
func (*FakeCommitRepository) IsCommitRegisteredCallCount ¶
func (fake *FakeCommitRepository) IsCommitRegisteredCallCount() int
func (*FakeCommitRepository) IsCommitRegisteredReturns ¶
func (fake *FakeCommitRepository) IsCommitRegisteredReturns(result1 bool, result2 error)
func (*FakeCommitRepository) IsCommitRegisteredReturnsOnCall ¶
func (fake *FakeCommitRepository) IsCommitRegisteredReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeCommitRepository) IsRepoRegistered ¶
func (*FakeCommitRepository) IsRepoRegisteredArgsForCall ¶
func (*FakeCommitRepository) IsRepoRegisteredCallCount ¶
func (fake *FakeCommitRepository) IsRepoRegisteredCallCount() int
func (*FakeCommitRepository) IsRepoRegisteredReturns ¶
func (fake *FakeCommitRepository) IsRepoRegisteredReturns(result1 bool, result2 error)
func (*FakeCommitRepository) IsRepoRegisteredReturnsOnCall ¶
func (fake *FakeCommitRepository) IsRepoRegisteredReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeCommitRepository) RegisterCommit ¶
func (*FakeCommitRepository) RegisterCommitArgsForCall ¶
func (*FakeCommitRepository) RegisterCommitCallCount ¶
func (fake *FakeCommitRepository) RegisterCommitCallCount() int
func (*FakeCommitRepository) RegisterCommitReturns ¶
func (fake *FakeCommitRepository) RegisterCommitReturns(result1 error)
func (*FakeCommitRepository) RegisterCommitReturnsOnCall ¶
func (fake *FakeCommitRepository) RegisterCommitReturnsOnCall(i int, result1 error)
type FakeCredentialRepository ¶
type FakeCredentialRepository struct { ForScanWithIDStub func(int) ([]db.Credential, error) UniqueSHAsForRepoAndRulesVersionStub func(db.Repository, int) ([]string, error) // contains filtered or unexported fields }
func (*FakeCredentialRepository) ForScanWithID ¶
func (fake *FakeCredentialRepository) ForScanWithID(arg1 int) ([]db.Credential, error)
func (*FakeCredentialRepository) ForScanWithIDArgsForCall ¶
func (fake *FakeCredentialRepository) ForScanWithIDArgsForCall(i int) int
func (*FakeCredentialRepository) ForScanWithIDCallCount ¶
func (fake *FakeCredentialRepository) ForScanWithIDCallCount() int
func (*FakeCredentialRepository) ForScanWithIDReturns ¶
func (fake *FakeCredentialRepository) ForScanWithIDReturns(result1 []db.Credential, result2 error)
func (*FakeCredentialRepository) ForScanWithIDReturnsOnCall ¶
func (fake *FakeCredentialRepository) ForScanWithIDReturnsOnCall(i int, result1 []db.Credential, result2 error)
func (*FakeCredentialRepository) Invocations ¶
func (fake *FakeCredentialRepository) Invocations() map[string][][]interface{}
func (*FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersion ¶
func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersion(arg1 db.Repository, arg2 int) ([]string, error)
func (*FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionArgsForCall ¶
func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionArgsForCall(i int) (db.Repository, int)
func (*FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionCallCount ¶
func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionCallCount() int
func (*FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionReturns ¶
func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionReturns(result1 []string, result2 error)
func (*FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionReturnsOnCall ¶
func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionReturnsOnCall(i int, result1 []string, result2 error)
type FakeFetchRepository ¶
type FakeFetchRepository struct { RegisterFetchStub func(lager.Logger, *db.Fetch) error // contains filtered or unexported fields }
func (*FakeFetchRepository) Invocations ¶
func (fake *FakeFetchRepository) Invocations() map[string][][]interface{}
func (*FakeFetchRepository) RegisterFetch ¶
func (*FakeFetchRepository) RegisterFetchArgsForCall ¶
func (*FakeFetchRepository) RegisterFetchCallCount ¶
func (fake *FakeFetchRepository) RegisterFetchCallCount() int
func (*FakeFetchRepository) RegisterFetchReturns ¶
func (fake *FakeFetchRepository) RegisterFetchReturns(result1 error)
func (*FakeFetchRepository) RegisterFetchReturnsOnCall ¶
func (fake *FakeFetchRepository) RegisterFetchReturnsOnCall(i int, result1 error)
type FakeRepositoryRepository ¶
type FakeRepositoryRepository struct { CreateStub func(*db.Repository) error UpdateStub func(*db.Repository) error FindStub func(owner, name string) (db.Repository, bool, error) MustFindStub func(owner, name string) (db.Repository, error) AllStub func() ([]db.Repository, error) ActiveStub func() ([]db.Repository, error) AllForOrganizationStub func(string) ([]db.Repository, error) NotScannedWithVersionStub func(int) ([]db.Repository, error) MarkAsClonedStub func(owner, name, path string) error ReenableStub func(owner, name string) error RegisterFailedFetchStub func(lager.Logger, *db.Repository) error // contains filtered or unexported fields }
func (*FakeRepositoryRepository) Active ¶
func (fake *FakeRepositoryRepository) Active() ([]db.Repository, error)
func (*FakeRepositoryRepository) ActiveCallCount ¶
func (fake *FakeRepositoryRepository) ActiveCallCount() int
func (*FakeRepositoryRepository) ActiveReturns ¶
func (fake *FakeRepositoryRepository) ActiveReturns(result1 []db.Repository, result2 error)
func (*FakeRepositoryRepository) ActiveReturnsOnCall ¶
func (fake *FakeRepositoryRepository) ActiveReturnsOnCall(i int, result1 []db.Repository, result2 error)
func (*FakeRepositoryRepository) All ¶
func (fake *FakeRepositoryRepository) All() ([]db.Repository, error)
func (*FakeRepositoryRepository) AllCallCount ¶
func (fake *FakeRepositoryRepository) AllCallCount() int
func (*FakeRepositoryRepository) AllForOrganization ¶
func (fake *FakeRepositoryRepository) AllForOrganization(arg1 string) ([]db.Repository, error)
func (*FakeRepositoryRepository) AllForOrganizationArgsForCall ¶
func (fake *FakeRepositoryRepository) AllForOrganizationArgsForCall(i int) string
func (*FakeRepositoryRepository) AllForOrganizationCallCount ¶
func (fake *FakeRepositoryRepository) AllForOrganizationCallCount() int
func (*FakeRepositoryRepository) AllForOrganizationReturns ¶
func (fake *FakeRepositoryRepository) AllForOrganizationReturns(result1 []db.Repository, result2 error)
func (*FakeRepositoryRepository) AllForOrganizationReturnsOnCall ¶
func (fake *FakeRepositoryRepository) AllForOrganizationReturnsOnCall(i int, result1 []db.Repository, result2 error)
func (*FakeRepositoryRepository) AllReturns ¶
func (fake *FakeRepositoryRepository) AllReturns(result1 []db.Repository, result2 error)
func (*FakeRepositoryRepository) AllReturnsOnCall ¶
func (fake *FakeRepositoryRepository) AllReturnsOnCall(i int, result1 []db.Repository, result2 error)
func (*FakeRepositoryRepository) Create ¶
func (fake *FakeRepositoryRepository) Create(arg1 *db.Repository) error
func (*FakeRepositoryRepository) CreateArgsForCall ¶
func (fake *FakeRepositoryRepository) CreateArgsForCall(i int) *db.Repository
func (*FakeRepositoryRepository) CreateCallCount ¶
func (fake *FakeRepositoryRepository) CreateCallCount() int
func (*FakeRepositoryRepository) CreateReturns ¶
func (fake *FakeRepositoryRepository) CreateReturns(result1 error)
func (*FakeRepositoryRepository) CreateReturnsOnCall ¶
func (fake *FakeRepositoryRepository) CreateReturnsOnCall(i int, result1 error)
func (*FakeRepositoryRepository) Find ¶
func (fake *FakeRepositoryRepository) Find(owner string, name string) (db.Repository, bool, error)
func (*FakeRepositoryRepository) FindArgsForCall ¶
func (fake *FakeRepositoryRepository) FindArgsForCall(i int) (string, string)
func (*FakeRepositoryRepository) FindCallCount ¶
func (fake *FakeRepositoryRepository) FindCallCount() int
func (*FakeRepositoryRepository) FindReturns ¶
func (fake *FakeRepositoryRepository) FindReturns(result1 db.Repository, result2 bool, result3 error)
func (*FakeRepositoryRepository) FindReturnsOnCall ¶
func (fake *FakeRepositoryRepository) FindReturnsOnCall(i int, result1 db.Repository, result2 bool, result3 error)
func (*FakeRepositoryRepository) Invocations ¶
func (fake *FakeRepositoryRepository) Invocations() map[string][][]interface{}
func (*FakeRepositoryRepository) MarkAsCloned ¶
func (fake *FakeRepositoryRepository) MarkAsCloned(owner string, name string, path string) error
func (*FakeRepositoryRepository) MarkAsClonedArgsForCall ¶
func (fake *FakeRepositoryRepository) MarkAsClonedArgsForCall(i int) (string, string, string)
func (*FakeRepositoryRepository) MarkAsClonedCallCount ¶
func (fake *FakeRepositoryRepository) MarkAsClonedCallCount() int
func (*FakeRepositoryRepository) MarkAsClonedReturns ¶
func (fake *FakeRepositoryRepository) MarkAsClonedReturns(result1 error)
func (*FakeRepositoryRepository) MarkAsClonedReturnsOnCall ¶
func (fake *FakeRepositoryRepository) MarkAsClonedReturnsOnCall(i int, result1 error)
func (*FakeRepositoryRepository) MustFind ¶
func (fake *FakeRepositoryRepository) MustFind(owner string, name string) (db.Repository, error)
func (*FakeRepositoryRepository) MustFindArgsForCall ¶
func (fake *FakeRepositoryRepository) MustFindArgsForCall(i int) (string, string)
func (*FakeRepositoryRepository) MustFindCallCount ¶
func (fake *FakeRepositoryRepository) MustFindCallCount() int
func (*FakeRepositoryRepository) MustFindReturns ¶
func (fake *FakeRepositoryRepository) MustFindReturns(result1 db.Repository, result2 error)
func (*FakeRepositoryRepository) MustFindReturnsOnCall ¶
func (fake *FakeRepositoryRepository) MustFindReturnsOnCall(i int, result1 db.Repository, result2 error)
func (*FakeRepositoryRepository) NotScannedWithVersion ¶
func (fake *FakeRepositoryRepository) NotScannedWithVersion(arg1 int) ([]db.Repository, error)
func (*FakeRepositoryRepository) NotScannedWithVersionArgsForCall ¶
func (fake *FakeRepositoryRepository) NotScannedWithVersionArgsForCall(i int) int
func (*FakeRepositoryRepository) NotScannedWithVersionCallCount ¶
func (fake *FakeRepositoryRepository) NotScannedWithVersionCallCount() int
func (*FakeRepositoryRepository) NotScannedWithVersionReturns ¶
func (fake *FakeRepositoryRepository) NotScannedWithVersionReturns(result1 []db.Repository, result2 error)
func (*FakeRepositoryRepository) NotScannedWithVersionReturnsOnCall ¶
func (fake *FakeRepositoryRepository) NotScannedWithVersionReturnsOnCall(i int, result1 []db.Repository, result2 error)
func (*FakeRepositoryRepository) Reenable ¶
func (fake *FakeRepositoryRepository) Reenable(owner string, name string) error
func (*FakeRepositoryRepository) ReenableArgsForCall ¶
func (fake *FakeRepositoryRepository) ReenableArgsForCall(i int) (string, string)
func (*FakeRepositoryRepository) ReenableCallCount ¶
func (fake *FakeRepositoryRepository) ReenableCallCount() int
func (*FakeRepositoryRepository) ReenableReturns ¶
func (fake *FakeRepositoryRepository) ReenableReturns(result1 error)
func (*FakeRepositoryRepository) ReenableReturnsOnCall ¶
func (fake *FakeRepositoryRepository) ReenableReturnsOnCall(i int, result1 error)
func (*FakeRepositoryRepository) RegisterFailedFetch ¶
func (fake *FakeRepositoryRepository) RegisterFailedFetch(arg1 lager.Logger, arg2 *db.Repository) error
func (*FakeRepositoryRepository) RegisterFailedFetchArgsForCall ¶
func (fake *FakeRepositoryRepository) RegisterFailedFetchArgsForCall(i int) (lager.Logger, *db.Repository)
func (*FakeRepositoryRepository) RegisterFailedFetchCallCount ¶
func (fake *FakeRepositoryRepository) RegisterFailedFetchCallCount() int
func (*FakeRepositoryRepository) RegisterFailedFetchReturns ¶
func (fake *FakeRepositoryRepository) RegisterFailedFetchReturns(result1 error)
func (*FakeRepositoryRepository) RegisterFailedFetchReturnsOnCall ¶
func (fake *FakeRepositoryRepository) RegisterFailedFetchReturnsOnCall(i int, result1 error)
func (*FakeRepositoryRepository) Update ¶
func (fake *FakeRepositoryRepository) Update(arg1 *db.Repository) error
func (*FakeRepositoryRepository) UpdateArgsForCall ¶
func (fake *FakeRepositoryRepository) UpdateArgsForCall(i int) *db.Repository
func (*FakeRepositoryRepository) UpdateCallCount ¶
func (fake *FakeRepositoryRepository) UpdateCallCount() int
func (*FakeRepositoryRepository) UpdateReturns ¶
func (fake *FakeRepositoryRepository) UpdateReturns(result1 error)
func (*FakeRepositoryRepository) UpdateReturnsOnCall ¶
func (fake *FakeRepositoryRepository) UpdateReturnsOnCall(i int, result1 error)
type FakeScanRepository ¶
type FakeScanRepository struct { StartStub func(lager.Logger, string, string, string, string, *db.Repository, *db.Fetch) db.ActiveScan ScansNotYetRunWithVersionStub func(lager.Logger, int) ([]db.PriorScan, error) // contains filtered or unexported fields }
func (*FakeScanRepository) Invocations ¶
func (fake *FakeScanRepository) Invocations() map[string][][]interface{}
func (*FakeScanRepository) ScansNotYetRunWithVersion ¶
func (*FakeScanRepository) ScansNotYetRunWithVersionArgsForCall ¶
func (fake *FakeScanRepository) ScansNotYetRunWithVersionArgsForCall(i int) (lager.Logger, int)
func (*FakeScanRepository) ScansNotYetRunWithVersionCallCount ¶
func (fake *FakeScanRepository) ScansNotYetRunWithVersionCallCount() int
func (*FakeScanRepository) ScansNotYetRunWithVersionReturns ¶
func (fake *FakeScanRepository) ScansNotYetRunWithVersionReturns(result1 []db.PriorScan, result2 error)
func (*FakeScanRepository) ScansNotYetRunWithVersionReturnsOnCall ¶
func (fake *FakeScanRepository) ScansNotYetRunWithVersionReturnsOnCall(i int, result1 []db.PriorScan, result2 error)
func (*FakeScanRepository) Start ¶
func (fake *FakeScanRepository) Start(arg1 lager.Logger, arg2 string, arg3 string, arg4 string, arg5 string, arg6 *db.Repository, arg7 *db.Fetch) db.ActiveScan
func (*FakeScanRepository) StartArgsForCall ¶
func (*FakeScanRepository) StartCallCount ¶
func (fake *FakeScanRepository) StartCallCount() int
func (*FakeScanRepository) StartReturns ¶
func (fake *FakeScanRepository) StartReturns(result1 db.ActiveScan)
func (*FakeScanRepository) StartReturnsOnCall ¶
func (fake *FakeScanRepository) StartReturnsOnCall(i int, result1 db.ActiveScan)
type FakeStatsRepository ¶
type FakeStatsRepository struct { RepositoryCountStub func() (int, error) DisabledRepositoryCountStub func() (int, error) UnclonedRepositoryCountStub func() (int, error) CredentialCountStub func() (int, error) FetchCountStub func() (int, error) // contains filtered or unexported fields }
func (*FakeStatsRepository) CredentialCount ¶
func (fake *FakeStatsRepository) CredentialCount() (int, error)
func (*FakeStatsRepository) CredentialCountCallCount ¶
func (fake *FakeStatsRepository) CredentialCountCallCount() int
func (*FakeStatsRepository) CredentialCountReturns ¶
func (fake *FakeStatsRepository) CredentialCountReturns(result1 int, result2 error)
func (*FakeStatsRepository) CredentialCountReturnsOnCall ¶
func (fake *FakeStatsRepository) CredentialCountReturnsOnCall(i int, result1 int, result2 error)
func (*FakeStatsRepository) DisabledRepositoryCount ¶
func (fake *FakeStatsRepository) DisabledRepositoryCount() (int, error)
func (*FakeStatsRepository) DisabledRepositoryCountCallCount ¶
func (fake *FakeStatsRepository) DisabledRepositoryCountCallCount() int
func (*FakeStatsRepository) DisabledRepositoryCountReturns ¶
func (fake *FakeStatsRepository) DisabledRepositoryCountReturns(result1 int, result2 error)
func (*FakeStatsRepository) DisabledRepositoryCountReturnsOnCall ¶
func (fake *FakeStatsRepository) DisabledRepositoryCountReturnsOnCall(i int, result1 int, result2 error)
func (*FakeStatsRepository) FetchCount ¶
func (fake *FakeStatsRepository) FetchCount() (int, error)
func (*FakeStatsRepository) FetchCountCallCount ¶
func (fake *FakeStatsRepository) FetchCountCallCount() int
func (*FakeStatsRepository) FetchCountReturns ¶
func (fake *FakeStatsRepository) FetchCountReturns(result1 int, result2 error)
func (*FakeStatsRepository) FetchCountReturnsOnCall ¶
func (fake *FakeStatsRepository) FetchCountReturnsOnCall(i int, result1 int, result2 error)
func (*FakeStatsRepository) Invocations ¶
func (fake *FakeStatsRepository) Invocations() map[string][][]interface{}
func (*FakeStatsRepository) RepositoryCount ¶
func (fake *FakeStatsRepository) RepositoryCount() (int, error)
func (*FakeStatsRepository) RepositoryCountCallCount ¶
func (fake *FakeStatsRepository) RepositoryCountCallCount() int
func (*FakeStatsRepository) RepositoryCountReturns ¶
func (fake *FakeStatsRepository) RepositoryCountReturns(result1 int, result2 error)
func (*FakeStatsRepository) RepositoryCountReturnsOnCall ¶
func (fake *FakeStatsRepository) RepositoryCountReturnsOnCall(i int, result1 int, result2 error)
func (*FakeStatsRepository) UnclonedRepositoryCount ¶
func (fake *FakeStatsRepository) UnclonedRepositoryCount() (int, error)
func (*FakeStatsRepository) UnclonedRepositoryCountCallCount ¶
func (fake *FakeStatsRepository) UnclonedRepositoryCountCallCount() int
func (*FakeStatsRepository) UnclonedRepositoryCountReturns ¶
func (fake *FakeStatsRepository) UnclonedRepositoryCountReturns(result1 int, result2 error)
func (*FakeStatsRepository) UnclonedRepositoryCountReturnsOnCall ¶
func (fake *FakeStatsRepository) UnclonedRepositoryCountReturnsOnCall(i int, result1 int, result2 error)
Click to show internal directories.
Click to hide internal directories.