Versions in this module Expand all Collapse all v0 v0.44.0 Aug 25, 2023 v0.0.1 Oct 9, 2023 Changes in this version + 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 struct + 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 NewTerraformPlanScanner(filePatterns []string, opt ScannerOption) (*Scanner, error) + func NewTerraformScanner(filePatterns []string, opt ScannerOption) (*Scanner, error) + func (s *Scanner) Scan(ctx context.Context, fsys fs.FS) ([]types.Misconfiguration, error) + type ScannerOption struct + DataPaths []string + DisableEmbeddedLibraries bool + DisableEmbeddedPolicies bool + HelmFileValues []string + HelmStringValues []string + HelmValueFiles []string + HelmValues []string + K8sVersion string + Namespaces []string + PolicyPaths []string + RegoOnly bool + TerraformTFVars []string + TfExcludeDownloaded bool + Trace bool + func (o *ScannerOption) Sort()