Documentation ¶
Index ¶
- func CreateDataFS(dataPaths []string, opts ...string) (fs.FS, []string, error)
- func CreatePolicyFS(policyPaths []string) (fs.FS, []string, error)
- func NewCauseWithCode(underlying scan.Result) types.CauseMetadata
- func ResultsToMisconf(configType types.ConfigType, scannerName string, results scan.Results) []types.Misconfiguration
- type Scanner
- func NewAzureARMScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
- func NewCloudFormationScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
- func NewDockerfileScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
- func NewHelmScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
- func NewKubernetesScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
- func NewTerraformPlanJSONScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
- func NewTerraformPlanSnapshotScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
- func NewTerraformScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
- type ScannerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDataFS ¶ added in v0.44.0
func CreatePolicyFS ¶ added in v0.44.0
func NewCauseWithCode ¶
func NewCauseWithCode(underlying scan.Result) types.CauseMetadata
func ResultsToMisconf ¶
func ResultsToMisconf(configType types.ConfigType, scannerName string, results scan.Results) []types.Misconfiguration
ResultsToMisconf is exported for trivy-plugin-aqua purposes only
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewAzureARMScanner ¶ added in v0.41.0
func NewAzureARMScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
func NewCloudFormationScanner ¶ added in v0.41.0
func NewCloudFormationScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
func NewDockerfileScanner ¶ added in v0.41.0
func NewDockerfileScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
func NewHelmScanner ¶ added in v0.41.0
func NewHelmScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
func NewKubernetesScanner ¶ added in v0.41.0
func NewKubernetesScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
func NewTerraformPlanJSONScanner ¶ added in v0.50.0
func NewTerraformPlanJSONScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
func NewTerraformPlanSnapshotScanner ¶ added in v0.50.0
func NewTerraformPlanSnapshotScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
func NewTerraformScanner ¶ added in v0.41.0
func NewTerraformScanner(filePatterns []string, opt ScannerOption) (*Scanner, error)
type ScannerOption ¶ added in v0.41.0
type ScannerOption struct { Debug bool Trace bool RegoOnly bool Namespaces []string PolicyPaths []string DataPaths []string DisableEmbeddedPolicies bool DisableEmbeddedLibraries bool HelmValues []string HelmValueFiles []string HelmFileValues []string HelmStringValues []string HelmAPIVersions []string HelmKubeVersion string TerraformTFVars []string CloudFormationParamVars []string TfExcludeDownloaded bool K8sVersion string }
func (*ScannerOption) Sort ¶ added in v0.41.0
func (o *ScannerOption) Sort()
Click to show internal directories.
Click to hide internal directories.