Documentation ¶
Index ¶
- Constants
- func ValidateNewSession(session *Session) error
- type Session
- func (s *Session) AddFinding(finding *findings.Finding)
- func (s *Session) AddRepository(repository *gitprovider.Repository)
- func (s *Session) End()
- func (s *Session) InitLogger()
- func (s *Session) InitStateStoreOrFail(filepath string)
- func (s *Session) InitStats()
- func (s *Session) InitThreads()
- func (s *Session) Initialize(options options.Options)
- func (s *Session) SaveToFile(location string) (string, error)
Constants ¶
View Source
const ( // StatusInitializing ... StatusInitializing = "initializing" // StatusGathering ... StatusGathering = "gathering" // StatusAnalyzing ... StatusAnalyzing = "analyzing" // StatusFinished ... StatusFinished = "finished" // ContentScan ... ContentScan = "Content Scan" // PathScan ... PathScan = "Path Scan" )
Variables ¶
This section is empty.
Functions ¶
func ValidateNewSession ¶
ValidateNewSession validates new session
Types ¶
type Session ¶
type Session struct { sync.Mutex Options options.Options `json:"-"` Out *log.Logger `json:"-"` Stats *stats.Stats Findings []*findings.Finding Repositories []*gitprovider.Repository Signatures []signatures.Signature `json:"-"` StateStore *state.JSONFileStore }
Session contains fields describing a scan session
func (*Session) AddFinding ¶
AddFinding adds a finding
func (*Session) AddRepository ¶
func (s *Session) AddRepository(repository *gitprovider.Repository)
AddRepository adds a repo
func (*Session) InitStateStoreOrFail ¶
InitStateStoreOrFail inits a history storage
func (*Session) Initialize ¶
Initialize inits a scan session
Click to show internal directories.
Click to hide internal directories.