config

package
v3.9.0-2855 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

Analyzer represents an analyzer for config files, which is embedded into each config analyzer such as Kubernetes.

func NewAnalyzer

func NewAnalyzer(t analyzer.Type, version int, newScanner NewScanner, opts analyzer.AnalyzerOptions) (*Analyzer, error)

func (*Analyzer) PostAnalyze

PostAnalyze performs configuration analysis on the input filesystem and detect misconfigurations.

func (*Analyzer) Required

func (a *Analyzer) Required(filePath string, _ os.FileInfo) bool

Required checks if the given file path has one of the required file extensions.

func (*Analyzer) Type

func (a *Analyzer) Type() analyzer.Type

Type returns the analyzer type of the current Analyzer instance.

func (*Analyzer) Version

func (a *Analyzer) Version() int

Version returns the version of the current Analyzer instance.

type NewScanner

type NewScanner func([]string, misconf.ScannerOption) (*misconf.Scanner, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL