Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxWorkers = 10 MaxFileWorkers = 10 CloneBaseDir = "/tmp/techdetector" // You can make this configurable if needed )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectoryScanner ¶
type DirectoryScanner struct {
// contains filtered or unexported fields
}
DirectoryScanner struct
func NewDirectoryScanner ¶
func NewDirectoryScanner(reporter reporters.Reporter, processors []processors.FileProcessor, matchRepository repositories.MatchRepository) *DirectoryScanner
NewDirectoryScanner creates a new DirectoryScanner
func (*DirectoryScanner) Scan ¶
func (ds *DirectoryScanner) Scan(directory string, reportFormat string)
Scan method for DirectoryScanner
type FileScanner ¶
type FileScanner struct {
// contains filtered or unexported fields
}
func (FileScanner) TraverseAndSearch ¶
func (fileScanner FileScanner) TraverseAndSearch(targetDir string, repoName string) ([]processors.Match, error)
type GithubOrgScanner ¶
type GithubOrgScanner struct {
// contains filtered or unexported fields
}
func NewGithubOrgScanner ¶
func NewGithubOrgScanner(reporter reporters.Reporter, processors []processors.FileProcessor, matchRepository repositories.MatchRepository) *GithubOrgScanner
func (GithubOrgScanner) Scan ¶
func (githubOrgScanner GithubOrgScanner) Scan(orgName string, reportFormat string)
type RepoJob ¶
type RepoJob struct {
Repo *github.Repository
}
type RepoResult ¶
type RepoResult struct { Matches []processors.Match Error error RepoName string }
type RepoScanner ¶
type RepoScanner struct {
// contains filtered or unexported fields
}
func NewRepoScanner ¶
func NewRepoScanner( reporter reporters.Reporter, processors []processors.FileProcessor, matchRepository repositories.MatchRepository) *RepoScanner
func (RepoScanner) Scan ¶
func (repoScanner RepoScanner) Scan(repoURL string, reportFormat string)
Click to show internal directories.
Click to hide internal directories.