Documentation
¶
Index ¶
- func GetEmbeddedTroubleshootSpecs(ctx context.Context, specsFiles types.SpecFiles) types.SpecFiles
- func GetFilesFromChartReader(ctx context.Context, content []byte) (types.SpecFiles, error)
- func InitOPA() error
- func LintSpecFiles(ctx context.Context, specFiles types.SpecFiles, opts LintOptions) (*types.LintResult, error)
- func LoadFiles(path string) (types.SpecFiles, error)
- func LoadFromDirectory(dirPath string) (types.SpecFiles, error)
- func LoadFromTar(reader io.Reader) (types.SpecFiles, error)
- type LintOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEmbeddedTroubleshootSpecs ¶
GetEmbeddedTroubleshootSpecs extracts troubleshoot specs from ConfigMaps and Secrets
func GetFilesFromChartReader ¶
GetFilesFromChartReader extracts files from a Helm chart archive
func InitOPA ¶
func InitOPA() error
InitOPA initializes the OPA linting engine This must be called before running LintSpecFiles
func LintSpecFiles ¶
func LintSpecFiles(ctx context.Context, specFiles types.SpecFiles, opts LintOptions) (*types.LintResult, error)
LintSpecFiles performs comprehensive linting on KOTS application spec files Returns lint results and a boolean indicating if linting completed all steps
func LoadFromDirectory ¶
LoadFromDirectory loads spec files from a directory on the filesystem
Types ¶
type LintOptions ¶
type LintOptions struct {
SkipNetworkChecks bool // Skip checks that require network (e.g., version validation)
Verbose bool // Show detailed progress for each validator
}
LintOptions contains options for linting
Click to show internal directories.
Click to hide internal directories.