Documentation
¶
Overview ¶
Package analyzer provides the main image analysis orchestration.
Index ¶
- func AnalyzeImage(ctx context.Context, imageRef string) (*models.AnalysisResult, error)
- func AnalyzeWithSuggestions(ctx context.Context, imageRef string) (*models.AnalysisResult, error)
- func EnsureImageAvailable(ctx context.Context, client docker.Client, imageRef string) error
- type AnalysisOptions
- type Analyzer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyzeImage ¶
AnalyzeImage is a convenience function for simple analysis.
func AnalyzeWithSuggestions ¶
AnalyzeWithSuggestions analyzes an image and includes optimization suggestions.
Types ¶
type AnalysisOptions ¶
AnalysisOptions contains options for the analysis.
func DefaultAnalysisOptions ¶
func DefaultAnalysisOptions() AnalysisOptions
DefaultAnalysisOptions returns the default analysis options.
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
Analyzer orchestrates the image analysis process.
func NewAnalyzer ¶
NewAnalyzer creates a new analyzer with the given Docker client.
func (*Analyzer) Analyze ¶
func (a *Analyzer) Analyze(ctx context.Context, imageRef string, opts AnalysisOptions) (*models.AnalysisResult, error)
Analyze performs a complete analysis of the specified image.
Click to show internal directories.
Click to hide internal directories.