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 ConfigFileSchema
- type DisabledCheck
- type Scanner
- type ScannerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 tunnel-plugin-khulnasoft purposes only
Types ¶
type ConfigFileSchema ¶
type ConfigFileSchema struct {
// contains filtered or unexported fields
}
func LoadConfigSchemas ¶
func LoadConfigSchemas(paths []string) ([]*ConfigFileSchema, error)
type DisabledCheck ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func NewScanner(t detection.FileType, opt ScannerOption) (*Scanner, error)
type ScannerOption ¶
type ScannerOption struct { Trace bool Namespaces []string PolicyPaths []string DataPaths []string DisableEmbeddedPolicies bool DisableEmbeddedLibraries bool IncludeDeprecatedChecks bool HelmValues []string HelmValueFiles []string HelmFileValues []string HelmStringValues []string HelmAPIVersions []string HelmKubeVersion string TerraformTFVars []string CloudFormationParamVars []string TfExcludeDownloaded bool K8sVersion string FilePatterns []string ConfigFileSchemas []*ConfigFileSchema DisabledChecks []DisabledCheck SkipFiles []string SkipDirs []string }
func (*ScannerOption) Sort ¶
func (o *ScannerOption) Sort()
Click to show internal directories.
Click to hide internal directories.