Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { Client providerapi.IClient `json:"-"` // Client holds the client for the target git server (github, gitlab) Config *config.Config State *State Router *gin.Engine `json:"-"` SignatureVersion string GithubUsers []*coreapi.Owner GithubUserLogins []string GithubUserOrgs []string GithubUserRepos []string Organizations []*github.Organization Signatures []signatures.Signature }
Session contains all the necessary values and parameters used during a scan
type State ¶
type State struct { *sync.Mutex Stats *stats.Stats Findings map[string]*finding.Finding Targets []*coreapi.Owner Repositories []*coreapi.Repository }
func (*State) AddFinding ¶
AddFinding will add a finding that has been discovered during a session to the list of findings for that session
func (*State) AddRepository ¶
func (st *State) AddRepository(repository *coreapi.Repository)
AddRepository will add a given repository to be scanned to a session. This counts as the total number of repos that have been gathered during a session.
func (*State) AddTarget ¶
AddTarget will add a new target to a session to be scanned during that session
func (*State) AddTargets ¶
AddTargets would iterate over the list and call AddTarget to append each one to the state list
func (*State) GetFindings ¶
Click to show internal directories.
Click to hide internal directories.