{"modulePath":"github.com/codeemitter/gitrob","version":"v3.2.1-beta+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package core\n\nPackage core generated by go-bindata.// sources: static/fonts/open-iconic.eot static/fonts/open-iconic.otf static/fonts/open-iconic.svg static/fonts/open-iconic.ttf static/fonts/open-iconic.woff static/images/gopher\\_full.png static/images/gopher\\_head.png static/images/spinner.gif static/index.html static/javascripts/application.js static/javascripts/backbone.js static/javascripts/bootstrap.js static/javascripts/clipboard.js static/javascripts/hexdump.js static/javascripts/highlight.js static/javascripts/highlight\\_worker.js static/javascripts/jquery-3.3.1.js static/javascripts/popper.js static/javascripts/underscore.js static/stylesheets/application.css static/stylesheets/bootstrap.css static/stylesheets/highlight.css static/stylesheets/openiconic.css\n\n## Constants\n\n```go\nconst (\n\tGithubBaseUri   = \"https://raw.githubusercontent.com\"\n\tMaximumFileSize = 153600\n\tGitLabBaseUri   = \"https://gitlab.com\"\n\tCspPolicy       = \"default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'\"\n\tReferrerPolicy  = \"no-referrer\"\n)\n```\n\n```go\nconst (\n\tGitHubAccessTokenEnvVariable = \"GITROB_GITHUB_ACCESS_TOKEN\"\n\tGitLabAccessTokenEnvVariable = \"GITROB_GITLAB_ACCESS_TOKEN\"\n\tStatusInitializing           = \"initializing\"\n\tStatusGathering              = \"gathering\"\n\tStatusAnalyzing              = \"analyzing\"\n\tStatusFinished               = \"finished\"\n)\n```\n\n## Variables\n\n```go\nvar IsGithub bool\n```\n\n## Functions\n\n```go\nfunc AnalyzeRepositories(sess *Session)\n```\n\n```go\nfunc Asset(name string) ([]byte, error)\n```\nAsset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.\n\n```go\nfunc AssetDir(name string) ([]string, error)\n```\nAssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:\n\n\tdata/\n\t  foo.txt\n\t  img/\n\t    a.png\n\t    b.png\n\nthen AssetDir(\"data\") would return \\[]string{\"foo.txt\", \"img\"} AssetDir(\"data/img\") would return \\[]string{\"a.png\", \"b.png\"} AssetDir(\"foo.txt\") and AssetDir(\"notexist\") would return an error AssetDir(\"\") will return \\[]string{\"data\"}.\n\n```go\nfunc AssetInfo(name string) (os.FileInfo, error)\n```\nAssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.\n\n```go\nfunc AssetNames() []string\n```\nAssetNames returns the names of the assets.\n\n```go\nfunc BinaryFileSystem(root string) *binaryFileSystem\n```\n\n```go\nfunc GatherRepositories(sess *Session)\n```\n\n```go\nfunc GatherTargets(sess *Session)\n```\n\n```go\nfunc MustAsset(name string) []byte\n```\nMustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.\n\n```go\nfunc NewRouter(s *Session) *gin.Engine\n```\n\n```go\nfunc PrintSessionStats(sess *Session)\n```\n\n```go\nfunc RestoreAsset(dir, name string) error\n```\nRestoreAsset restores an asset under the given directory\n\n```go\nfunc RestoreAssets(dir, name string) error\n```\nRestoreAssets restores an asset under the given directory recursively\n\n## Types\n\n```go\ntype GitLab struct {\n\tAccessToken string `json:\"-\"`\n}\n```\n\n```go\ntype Github struct {\n\tAccessToken string `json:\"-\"`\n}\n```\n\n```go\ntype Options struct {\n\tBindAddress       *string `json:\"-\"`\n\tCommitDepth       *int\n\tDebug             *bool   `json:\"-\"`\n\tGitLabAccessToken *string `json:\"-\"`\n\tGithubAccessToken *string `json:\"-\"`\n\tInMemClone        *bool\n\tLoad              *string `json:\"-\"`\n\tLogins            []string\n\tMode              *int\n\tNoExpandOrgs      *bool\n\tPort              *int\n\tSave              *string `json:\"-\"`\n\tSilent            *bool   `json:\"-\"`\n\tThreads           *int\n}\n```\n\n```go\nfunc ParseOptions() (Options, error)\n```\n\n```go\ntype Session struct {\n\tsync.Mutex\n\n\tVersion         string\n\tOptions         Options        `json:\"-\"` //do not unmarshal to json on save\n\tOut             *common.Logger `json:\"-\"` //do not unmarshal to json on save\n\tStats           *Stats\n\tGithub          Github         `json:\"-\"` //do not unmarshal to json on save\n\tGitLab          GitLab         `json:\"-\"` //do not unmarshal to json on save\n\tClient          common.IClient `json:\"-\"` //do not unmarshal to json on save\n\tRouter          *gin.Engine    `json:\"-\"` //do not unmarshal to json on save\n\tTargets         []*common.Owner\n\tRepositories    []*common.Repository\n\tFindings        []*matching.Finding\n\tIsGithubSession bool                `json:\"-\"` //do not unmarshal to json on save\n\tSignatures      matching.Signatures `json:\"-\"` //do not unmarshal to json on save\n}\n```\n\n```go\nfunc NewSession() (*Session, error)\n```\n\n```go\nfunc (s *Session) AddFinding(finding *matching.Finding)\n```\n\n```go\nfunc (s *Session) AddRepository(repository *common.Repository)\n```\n\n```go\nfunc (s *Session) AddTarget(target *common.Owner)\n```\n\n```go\nfunc (s *Session) Finish()\n```\n\n```go\nfunc (s *Session) InitAPIClient()\n```\n\n```go\nfunc (s *Session) InitAccessToken()\n```\n\n```go\nfunc (s *Session) InitLogger()\n```\n\n```go\nfunc (s *Session) InitRouter()\n```\n\n```go\nfunc (s *Session) InitSignatures()\n```\n\n```go\nfunc (s *Session) InitStats()\n```\n\n```go\nfunc (s *Session) InitThreads()\n```\n\n```go\nfunc (s *Session) Initialize()\n```\n\n```go\nfunc (s *Session) SaveToFile(location string) error\n```\n\n```go\nfunc (s *Session) ValidateTokenConfig()\n```\n\n```go\ntype Stats struct {\n\tsync.Mutex\n\n\tStartedAt    time.Time\n\tFinishedAt   time.Time\n\tStatus       string\n\tProgress     float64\n\tTargets      int\n\tRepositories int\n\tCommits      int\n\tFiles        int\n\tFindings     int\n}\n```\n\n```go\nfunc (s *Stats) IncrementCommits()\n```\n\n```go\nfunc (s *Stats) IncrementFiles()\n```\n\n```go\nfunc (s *Stats) IncrementFindings()\n```\n\n```go\nfunc (s *Stats) IncrementRepositories()\n```\n\n```go\nfunc (s *Stats) IncrementTargets()\n```\n\n```go\nfunc (s *Stats) UpdateProgress(current int, total int)\n```\n\n","path":"github.com/codeemitter/gitrob/core","name":"core","synopsis":"Package core generated by go-bindata.// sources: static/fonts/open-iconic.eot static/fonts/open-iconic.otf static/fonts/open-iconic.svg static/fonts/open-iconic.ttf static/fonts/open-iconic.woff static/images/gopher_full.png static/images/gopher_head.png static/images/spinner.gif static/index.html static/javascripts/application.js static/javascripts/backbone.js static/javascripts/bootstrap.js static/javascripts/clipboard.js static/javascripts/hexdump.js static/javascripts/highlight.js static/javascripts/highlight_worker.js static/javascripts/jquery-3.3.1.js static/javascripts/popper.js static/javascripts/underscore.js static/stylesheets/application.css static/stylesheets/bootstrap.css static/stylesheets/highlight.css static/stylesheets/openiconic.css","isRedistributable":true}
