Documentation ¶
Index ¶
- func NewCloner(logger lager.Logger, workdir string, workCh chan CloneMsg, ...) ifrit.Runner
- func NewHeadCredentialCounter(logger lager.Logger, repositoryRepository db.RepositoryRepository, ...) ifrit.Runner
- func NewRepoDiscoverer(logger lager.Logger, workdir string, cloneMsgCh chan CloneMsg, ...) ifrit.Runner
- func NewRepoSet(sizeHint int) *repoSet
- func NewRescanner(logger lager.Logger, scanRepo db.ScanRepository, ...) ifrit.Runner
- func ObliviousHealthCheck() http.Handler
- type ChangeFetcher
- type ChangeScheduler
- type CloneMsg
- type Cloner
- type GitHubClient
- type GitHubOrganization
- type GitHubRepository
- type RepoChangeScheduler
- type RepoDiscoverer
- type Rescanner
- type Scanner
- type ScheduleRunner
- type Scheduler
- type Server
- type Sink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepoDiscoverer ¶
func NewRepoSet ¶
func NewRepoSet(sizeHint int) *repoSet
func NewRescanner ¶
func NewRescanner( logger lager.Logger, scanRepo db.ScanRepository, credRepo db.CredentialRepository, scanner Scanner, notifier notifications.Notifier, emitter metrics.Emitter, ) ifrit.Runner
func ObliviousHealthCheck ¶
Types ¶
type ChangeFetcher ¶
func NewChangeFetcher ¶
func NewChangeFetcher( logger lager.Logger, gitClient gitclient.Client, scanner Scanner, repositoryRepository db.RepositoryRepository, fetchRepository db.FetchRepository, emitter metrics.Emitter, ) ChangeFetcher
type ChangeScheduler ¶
type ChangeScheduler struct {
// contains filtered or unexported fields
}
func NewChangeScheduler ¶
func NewChangeScheduler(logger lager.Logger, repoRepo db.RepositoryRepository, scheduler Scheduler, fetcher ChangeFetcher) *ChangeScheduler
func (*ChangeScheduler) Run ¶
func (s *ChangeScheduler) Run(signals <-chan os.Signal, ready chan<- struct{}) error
func (*ChangeScheduler) ScheduleActiveRepos ¶
func (s *ChangeScheduler) ScheduleActiveRepos(logger lager.Logger) error
func (*ChangeScheduler) ScheduleRepo ¶
func (s *ChangeScheduler) ScheduleRepo(logger lager.Logger, repo db.Repository)
type GitHubClient ¶
type GitHubClient interface { ListRepositoriesByOrg(lager.Logger, string) ([]GitHubRepository, error) ListOrganizations(lager.Logger) ([]GitHubOrganization, error) }
func NewGitHubClient ¶
func NewGitHubClient( ghClient *github.Client, ) GitHubClient
type GitHubOrganization ¶
type GitHubOrganization struct {
Name string `json:"login"`
}
type GitHubRepository ¶
type RepoChangeScheduler ¶
type RepoChangeScheduler interface {
ScheduleRepo(lager.Logger, db.Repository)
}
type RepoDiscoverer ¶
type RepoDiscoverer struct {
// contains filtered or unexported fields
}
type Scanner ¶
type Scanner interface { Scan(lager.Logger, string, string, map[git.Oid]struct{}, string, string, string) error ScanNoNotify(lager.Logger, string, string, map[git.Oid]struct{}, string, string, string) ([]db.Credential, error) }
func NewScanner ¶
func NewScanner( gitClient gitclient.Client, repositoryRepository db.RepositoryRepository, scanRepository db.ScanRepository, credentialRepository db.CredentialRepository, sniffer sniff.Sniffer, notifier notifications.Notifier, ) Scanner
type ScheduleRunner ¶
type ScheduleRunner struct {
// contains filtered or unexported fields
}
func NewScheduleRunner ¶
func NewScheduleRunner(logger lager.Logger) *ScheduleRunner
func (*ScheduleRunner) Run ¶
func (s *ScheduleRunner) Run(signals <-chan os.Signal, ready chan<- struct{}) error
func (*ScheduleRunner) ScheduleWork ¶
func (s *ScheduleRunner) ScheduleWork(cron string, work func())
type Server ¶
type Server interface { revokpb.RevokServer }
type Sink ¶
type Sink struct { }
Sink is the type that represents the sink that will emit errors to Sentry.
func NewSentrySink ¶
NewSentrySink creates a new Sink for use with Lager.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.