Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶ added in v1.18.0
type Detector interface {
Detect(ctx context.Context, dir string, path string, detectionResults models.DetectionResults, advisoriesToCheck []models.AdvisoryToCheck) error
Close()
}
Detector parses source files for one language and matches vulnerable symbols against how those symbols are actually imported and called in that source.
type ReachabilityGo ¶ added in v1.18.0
type ReachabilityGo struct {
// contains filtered or unexported fields
}
func NewGoReachableDetector ¶ added in v1.18.0
func NewGoReachableDetector(r reporter.Reporter) (*ReachabilityGo, error)
NewGoReachableDetector creates a new ReachabilityGo instance that once instantiated can be used to parse Go files. You should call Close() on the instance once you're finished parsing.
func (*ReachabilityGo) Close ¶ added in v1.18.0
func (r *ReachabilityGo) Close()
Close closes all hanging tree-sitter related resources. This should only be called once you're finished parsing all Go files.
func (*ReachabilityGo) Detect ¶ added in v1.18.0
func (r *ReachabilityGo) Detect(ctx context.Context, dir string, path string, detectionResults models.DetectionResults, advisoriesToCheck []models.AdvisoryToCheck) error
type ReachabilityJava ¶
type ReachabilityJava struct {
// contains filtered or unexported fields
}
func NewJavaReachableDetector ¶
func NewJavaReachableDetector(r reporter.Reporter) (*ReachabilityJava, error)
NewJavaReachableDetector creates a new JavaReachableDetector instance that once instantiated can be used to parse Java files. You should call Close() on the instance once you're finished parsing.
func (*ReachabilityJava) Close ¶
func (r *ReachabilityJava) Close()
Close closes all hanging tree-sitter related resources. This should only be called once you're finished parsing all Java files.
func (*ReachabilityJava) Detect ¶
func (r *ReachabilityJava) Detect(ctx context.Context, dir string, path string, detectionResults models.DetectionResults, advisoriesToCheck []models.AdvisoryToCheck) error