Documentation ¶
Index ¶
- type Analysis
- func (a *Analysis) Close()
- func (a *Analysis) CustomAnalyzersAreAvailable() bool
- func (a *Analysis) GetAIResults(output string, anonymize bool) error
- func (a *Analysis) PrintOutput(format string) ([]byte, error)
- func (a *Analysis) PrintStats() []byte
- func (a *Analysis) RunAnalysis()
- func (a *Analysis) RunCustomAnalysis()
- type AnalysisErrors
- type AnalysisStatus
- type JsonOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analysis ¶
type Analysis struct { Context context.Context Filters []string Client *kubernetes.Client Language string AIClient ai.IAI Results []common.Result Errors []string Namespace string LabelSelector string Cache cache.ICache Explain bool MaxConcurrency int AnalysisAIProvider string // The name of the AI Provider used for this analysis WithDoc bool WithStats bool Stats []common.AnalysisStats }
func NewAnalysis ¶ added in v0.2.2
func (*Analysis) CustomAnalyzersAreAvailable ¶ added in v0.3.40
func (*Analysis) GetAIResults ¶
func (*Analysis) PrintStats ¶ added in v0.3.42
func (*Analysis) RunAnalysis ¶
func (a *Analysis) RunAnalysis()
func (*Analysis) RunCustomAnalysis ¶ added in v0.3.27
func (a *Analysis) RunCustomAnalysis()
type AnalysisErrors ¶ added in v0.2.9
type AnalysisErrors []string
type AnalysisStatus ¶
type AnalysisStatus string
const ( StateOK AnalysisStatus = "OK" StateProblemDetected AnalysisStatus = "ProblemDetected" )
type JsonOutput ¶
type JsonOutput struct { Provider string `json:"provider"` Errors AnalysisErrors `json:"errors"` Status AnalysisStatus `json:"status"` Problems int `json:"problems"` Results []common.Result `json:"results"` }
Click to show internal directories.
Click to hide internal directories.