config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 8 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, fileType detection.FileType, 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.

Directories

Path Synopsis
terraformplan

Jump to

Keyboard shortcuts

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