Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegexMatched ¶
RegexMatched matched an interface to a regular expression. The interface f can be a string type or go-git *object.File type.
Types ¶
type Bundle ¶
type Bundle struct { Commit *object.Commit Patch string Content string FilePath string Operation fdiff.Operation // contains filtered or unexported fields }
Bundle contains various git information for scans.
type Repo ¶
type Repo struct { *git.Repository Name string Manager *manager.Manager // contains filtered or unexported fields }
Repo wraps a *git.Repository object in addition to a manager object and the name of the repo. Commits are inspected from the *git.Repository object. If a Commit is found then we send it via the manager LeakChan where the manager receives and keeps track of all leaks.
func (*Repo) CheckRules ¶
CheckRules accepts bundle and checks each rule defined in the config against the bundle's content.
func (*Repo) Clone ¶
Clone will clone a repo and return a Repo struct which contains a go-git repo. The clone method is determined by the clone options set in Manager.metadata.cloneOptions