Documentation ¶
Index ¶
- type SecretAnalyzer
- func (a *SecretAnalyzer) Analyze(_ context.Context, input analyzer.AnalysisInput) (*analyzer.AnalysisResult, error)
- func (a *SecretAnalyzer) Init(opt analyzer.AnalyzerOptions) error
- func (a *SecretAnalyzer) Required(filePath string, fi os.FileInfo) bool
- func (a *SecretAnalyzer) Type() analyzer.Type
- func (a *SecretAnalyzer) Version() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretAnalyzer ¶
type SecretAnalyzer struct {
// contains filtered or unexported fields
}
SecretAnalyzer is an analyzer for secrets
func NewSecretAnalyzer ¶
func NewSecretAnalyzer(s secret.Scanner, configPath string) *SecretAnalyzer
func (*SecretAnalyzer) Analyze ¶
func (a *SecretAnalyzer) Analyze(_ context.Context, input analyzer.AnalysisInput) (*analyzer.AnalysisResult, error)
func (*SecretAnalyzer) Init ¶
func (a *SecretAnalyzer) Init(opt analyzer.AnalyzerOptions) error
Init initializes and sets a secret scanner
func (*SecretAnalyzer) Required ¶
func (a *SecretAnalyzer) Required(filePath string, fi os.FileInfo) bool
func (*SecretAnalyzer) Type ¶
func (a *SecretAnalyzer) Type() analyzer.Type
func (*SecretAnalyzer) Version ¶
func (a *SecretAnalyzer) Version() int
Click to show internal directories.
Click to hide internal directories.