config

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer added in v0.41.0

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 added in v0.41.0

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

func (*Analyzer) PostAnalyze added in v0.41.0

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

func (*Analyzer) Required added in v0.41.0

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 added in v0.41.0

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

Type returns the analyzer type of the current Analyzer instance.

func (*Analyzer) Version added in v0.41.0

func (a *Analyzer) Version() int

Version returns the version of the current Analyzer instance.

type NewScanner added in v0.41.0

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

Directories

Path Synopsis
terraformplan

Jump to

Keyboard shortcuts

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