Documentation
¶
Overview ¶
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DetectKindLine ¶
type DetectKindLine struct {
// contains filtered or unexported fields
}
DetectKindLine holds a per-scan HCL parse cache. Multiple findings in the same file reuse the parsed body instead of re-running hclsyntax.ParseConfig for each one, which is the dominant cost when a single rule fires thousands of times across a large repo.
func (*DetectKindLine) DetectLine ¶
func (d *DetectKindLine) DetectLine(ctx context.Context, file *model.FileMetadata, searchKey string, outputLines int) model.VulnerabilityLines
DetectLine searches vulnerability line in terraform files
Click to show internal directories.
Click to hide internal directories.