analysis

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 14 Imported by: 1

Documentation

Index

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
	AIClient  ai.IAI
	Results   []common.Result
	Namespace string
	NoCache   bool
	Explain   bool
}

func NewAnalysis added in v0.2.2

func NewAnalysis(backend string, language string, filters []string, namespace string, noCache bool, explain bool) (*Analysis, error)

func (*Analysis) GetAIResults

func (a *Analysis) GetAIResults(output string, anonymize bool) error

func (*Analysis) PrintOutput

func (a *Analysis) PrintOutput(format string) ([]byte, error)

func (*Analysis) RunAnalysis

func (a *Analysis) RunAnalysis() error

type AnalysisStatus

type AnalysisStatus string
const (
	StateOK              AnalysisStatus = "OK"
	StateProblemDetected AnalysisStatus = "ProblemDetected"
)

type JsonOutput

type JsonOutput struct {
	Status   AnalysisStatus  `json:"status"`
	Problems int             `json:"problems"`
	Results  []common.Result `json:"results"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL