Versions in this module Expand all Collapse all v0 v0.2.0 Sep 11, 2026 Changes in this version + var ErrAnalyzeRequired = errors.New("autoconfigure: ProviderFromSpec: Analyze must not be nil") + var ErrDescriptionRequired = errors.New("autoconfigure: ProviderFromSpec: Description must not be empty") + var ErrNameRequired = errors.New("autoconfigure: ProviderFromSpec: Name must not be empty") type ConfigIssue + Confidence finding.Confidence + FixStrategy *finding.FixStrategy v0.1.0 Sep 10, 2026 Changes in this version + var ErrNoRepair = errors.New("autoconfigure: tool does not support auto-repair") + func FindingFromIssue(toolName finding.ToolName, issue ConfigIssue) (finding.Finding, error) + func FindingsFromIssues(toolName finding.ToolName, issues []ConfigIssue) ([]finding.Finding, error) + func ProviderFromSpec(spec ProviderSpec) (toolsdk.Spec, error) + type ConfigError struct + Err error + Op Op + Path string + func LoadJSON[T any](path string) (*T, *ConfigError) + func ReadConfig(path string) ([]byte, *ConfigError) + func SaveJSON(path string, v any) (bool, *ConfigError) + func (e *ConfigError) As(target any) bool + func (e *ConfigError) Error() string + func (e *ConfigError) Is(target error) bool + func (e *ConfigError) Unwrap() error + type ConfigIssue struct + File finding.FilePath + Line int + Message string + Rule finding.RuleName + Severity finding.Severity + Suggestion string + type Op string + const OpMarshal + const OpMkdir + const OpRead + const OpUnmarshal + const OpWrite + type ProviderSpec struct + Analyze func(ctx context.Context) ([]ConfigIssue, error) + ConfigFile finding.FilePath + Description string + Name string + Repair func(ctx context.Context) (string, error) + func (s ProviderSpec) HasRepair() bool