Documentation
¶
Index ¶
- type ArchiveFormat
- type AsyncRepoResults
- type CodeScanResults
- type GHLanguage
- type GHRepo
- type GHRepoResults
- type GHRepoWriteResult
- type GHRepoWriteResults
- type GHRepos
- type RepoScanResult
- type RepoScanResults
- func (scanResults RepoScanResults) RemoveDuplicates() RepoScanResults
- func (scanResults RepoScanResults) ToRepoData(owner string, teamsToIgnore config.TeamsToIgnore, ...) (*GHRepoResults, error)
- func (scanResults RepoScanResults) ToRepoDataAsync(owner string, teamsToIgnore config.TeamsToIgnore, ...) (*GHRepoResults, error)
- type ScanResults
- type TeamsResponse
- type TokenReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveFormat ¶
type ArchiveFormat string
const ( // Tarball specifies an archive in gzipped tar format. Tarball ArchiveFormat = "tarball" // Zipball specifies an archive in zip format. Zipball ArchiveFormat = "zipball" )
type AsyncRepoResults ¶
type AsyncRepoResults struct {
// contains filtered or unexported fields
}
type CodeScanResults ¶
type CodeScanResults struct {
RepoName string `json:"repoName"`
RepoURL string `json:"repoUrl"`
NumMatches int `json:"numMatches"`
Tokens []*TokenReference `json:"tokenRefs"`
}
type GHLanguage ¶
func ToGHLanguageSlice ¶
func ToGHLanguageSlice(langs map[string]int) []GHLanguage
type GHRepo ¶
type GHRepo struct {
Name string `json:"name"`
FullName string `json:"fullName"`
Description string `json:"description"`
Languages []GHLanguage `json:"languages"`
Owner string `json:"owner"`
Url string `json:"url"`
Team string `json:"team"`
DefaultBranch string `json:"defaultBranch"`
LastModified time.Time `json:"lastModified"`
DependencyVersion string `json:"dependencyVersion"`
APIUrl string `json:"apiUrl"`
}
func (*GHRepo) GetRepoArchive ¶
type GHRepoResults ¶
type GHRepoWriteResult ¶
type GHRepoWriteResult struct {
Repository string `dynamodbav:"repository" json:"repository"`
ScmSite string `dynamodbav:"scm_site" json:"scm_site"`
Team string `dynamodbav:"team" json:"team"`
Url string `dynamodbav:"url" json:"url"`
Version string `dynamodbav:"version" json:"version"`
LastModified time.Time `dynamodbav:"lastModified" json:"lastModified"`
}
type GHRepoWriteResults ¶
type GHRepoWriteResults []GHRepoWriteResult
func (GHRepoWriteResults) SaveRepoResultsToFile ¶
func (ghRepoResults GHRepoWriteResults) SaveRepoResultsToFile(fileName string) error
type GHRepos ¶
type GHRepos []GHRepo
func (*GHRepos) ToWriteResults ¶
func (repos *GHRepos) ToWriteResults() GHRepoWriteResults
type RepoScanResult ¶
type RepoScanResults ¶
type RepoScanResults []RepoScanResult
func (RepoScanResults) RemoveDuplicates ¶
func (scanResults RepoScanResults) RemoveDuplicates() RepoScanResults
func (RepoScanResults) ToRepoData ¶
func (scanResults RepoScanResults) ToRepoData( owner string, teamsToIgnore config.TeamsToIgnore, getRepoData func(sr RepoScanResult, owner string, teamsToIgnore config.TeamsToIgnore) (*GHRepo, error)) (*GHRepoResults, error)
func (RepoScanResults) ToRepoDataAsync ¶
func (scanResults RepoScanResults) ToRepoDataAsync( owner string, teamsToIgnore config.TeamsToIgnore, getRepoData func(sr RepoScanResult, owner string, teamsToIgnore config.TeamsToIgnore) (*GHRepo, error)) (*GHRepoResults, error)
type ScanResults ¶
type ScanResults struct {
RepoScanResults RepoScanResults `json:"results"`
Count int `json:"count"`
}
func (*ScanResults) SaveScanResults ¶
func (scanResults *ScanResults) SaveScanResults(fileName string) error
type TeamsResponse ¶
func (*TeamsResponse) GetTeamsString ¶
func (teamsResponse *TeamsResponse) GetTeamsString(teamsToIgnore config.TeamsToIgnore) string
type TokenReference ¶
func ToTokenRefs ¶
func ToTokenRefs(codeSearchResults *github.CodeSearchResult, token string) []*TokenReference
Click to show internal directories.
Click to hide internal directories.