Versions in this module Expand all Collapse all v0 v0.0.1 Mar 24, 2021 Changes in this version + const ASCIIBanner + const AccessTokenEnvVariable + const CspPolicy + const DEBUG + const ERROR + const EmptyTreeCommitId + const FATAL + const GithubBaseUri + const IMPORTANT + const INFO + const MaximumFileSize + const Name + const PartExtension + const PartFilename + const PartPath + const ReferrerPolicy + const StatusAnalyzing + const StatusFinished + const StatusGathering + const StatusInitializing + const TypePattern + const TypeSimple + const Version + const WARN + const Website + var LogColors = map[int]*color.Color + var NewlineRegex = regexp.MustCompile(`\r?\n`) + var Signatures = []Signature + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func BinaryFileSystem(root string) *binaryFileSystem + func CloneRepository(url *string, branch *string, depth int) (*git.Repository, string, error) + func FileExists(path string) bool + func GetChangeAction(change *object.Change) string + func GetChangePath(change *object.Change) string + func GetChanges(commit *object.Commit, repo *git.Repository) (object.Changes, error) + func GetParentCommit(commit *object.Commit, repo *git.Repository) (*object.Commit, error) + func GetRepositoryHistory(repository *git.Repository) ([]*object.Commit, error) + func MustAsset(name string) []byte + func NewRouter(s *Session) *gin.Engine + func Pluralize(count int, singular string, plural string) string + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + func TruncateString(str string, maxLength int) string + type Finding struct + Action string + Comment string + CommitAuthor string + CommitHash string + CommitMessage string + CommitUrl string + Description string + FilePath string + FileUrl string + Id string + RepositoryName string + RepositoryOwner string + RepositoryUrl string + func (f *Finding) Initialize() + type GithubOwner struct + AvatarURL *string + Bio *string + Blog *string + Company *string + Email *string + ID *int64 + Location *string + Login *string + Name *string + Type *string + URL *string + func GetOrganizationMembers(login *string, client *github.Client) ([]*GithubOwner, error) + func GetUserOrOrganization(login string, client *github.Client) (*GithubOwner, error) + type GithubRepository struct + CloneURL *string + DefaultBranch *string + Description *string + FullName *string + Homepage *string + ID *int64 + Name *string + Owner *string + URL *string + func GetRepositoriesFromOwner(login *string, client *github.Client) ([]*GithubRepository, error) + type Logger struct + func (l *Logger) Debug(format string, args ...interface{}) + func (l *Logger) Error(format string, args ...interface{}) + func (l *Logger) Fatal(format string, args ...interface{}) + func (l *Logger) Important(format string, args ...interface{}) + func (l *Logger) Info(format string, args ...interface{}) + func (l *Logger) Log(level int, format string, args ...interface{}) + func (l *Logger) SetDebug(d bool) + func (l *Logger) SetSilent(s bool) + func (l *Logger) Warn(format string, args ...interface{}) + type MatchFile struct + Extension string + Filename string + Path string + func NewMatchFile(path string) MatchFile + func (f *MatchFile) IsSkippable() bool + type Options struct + BindAddress *string + CommitDepth *int + Debug *bool + GithubAccessToken *string + Load *string + Logins []string + NoExpandOrgs *bool + Port *int + Save *string + Silent *bool + Threads *int + func ParseOptions() (Options, error) + type PatternSignature struct + func (s PatternSignature) Comment() string + func (s PatternSignature) Description() string + func (s PatternSignature) Match(file MatchFile) bool + type Session struct + Findings []*Finding + GithubAccessToken string + GithubClient *github.Client + Options Options + Out *Logger + Repositories []*GithubRepository + Router *gin.Engine + Stats *Stats + Targets []*GithubOwner + Version string + func NewSession() (*Session, error) + func (s *Session) AddFinding(finding *Finding) + func (s *Session) AddRepository(repository *GithubRepository) + func (s *Session) AddTarget(target *GithubOwner) + func (s *Session) Finish() + func (s *Session) InitGithubAccessToken() + func (s *Session) InitGithubClient() + func (s *Session) InitLogger() + func (s *Session) InitRouter() + func (s *Session) InitStats() + func (s *Session) InitThreads() + func (s *Session) SaveToFile(location string) error + func (s *Session) Start() + type Signature interface + Comment func() string + Description func() string + Match func(file MatchFile) bool + type SimpleSignature struct + func (s SimpleSignature) Comment() string + func (s SimpleSignature) Description() string + func (s SimpleSignature) Match(file MatchFile) bool + type Stats struct + Commits int + Files int + Findings int + FinishedAt time.Time + Progress float64 + Repositories int + StartedAt time.Time + Status string + Targets int + func (s *Stats) IncrementCommits() + func (s *Stats) IncrementFiles() + func (s *Stats) IncrementFindings() + func (s *Stats) IncrementRepositories() + func (s *Stats) IncrementTargets() + func (s *Stats) UpdateProgress(current int, total int) Incompatible versions in this module v2.0.0-beta+incompatible Jun 9, 2018