Documentation ¶
Index ¶
- Constants
- type Analyser
- func (a *Analyser) CheckThreshold() error
- func (a *Analyser) GetCoverageInterpretation() string
- func (a *Analyser) GetDependencyGraph() []Dependency
- func (a *Analyser) GetErrors() []string
- func (a *Analyser) GetProfiles() []Profile
- func (a *Analyser) GetUpdatableDependencies() []Dependency
- func (a *Analyser) GetWarnings() []string
- func (a *Analyser) PushError(err string) *Analyser
- func (a *Analyser) PushWarning(warning string) *Analyser
- func (a *Analyser) SetCoverProfile(coverProfile string) *Analyser
- func (a *Analyser) SetCoverageByTotal(totalText string) *Analyser
- func (a *Analyser) SetDependencyGraph(dependencyGraph string) *Analyser
- func (a *Analyser) SetGoVersion(goVersion string) *Analyser
- func (a *Analyser) SetModule() *Analyser
- func (a *Analyser) SetThreshold(threshold float64) *Analyser
- func (a *Analyser) SetUpdatableRequirements()
- func (a *Analyser) SetVulnCheck(vulnCheck string) *Analyser
- type Dependency
- type GoMod
- type ModPath
- type Module
- type Profile
- type Replace
- type Require
- type RequireUpdate
- type Retract
Constants ¶
View Source
const BAD = 50.0
View Source
const MEDIUM = 75.0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyser ¶
type Analyser struct { Module GoMod GoVersion string //will have the OS also here HasGoVersionFail bool Threshold float64 Coverage float64 HasCoverageFail bool CoverProfile string DependencyGraph string Updates []RequireUpdate VulnCheck string HasVuln bool HasErrors bool Errors []string Warnings []string TestResult string Profiles []Profile // contains filtered or unexported fields }
func NewAnalyser ¶
func NewAnalyser() *Analyser
func (*Analyser) CheckThreshold ¶
func (*Analyser) GetCoverageInterpretation ¶
func (*Analyser) GetDependencyGraph ¶
func (a *Analyser) GetDependencyGraph() []Dependency
func (*Analyser) GetProfiles ¶ added in v0.15.1
func (*Analyser) GetUpdatableDependencies ¶
func (a *Analyser) GetUpdatableDependencies() []Dependency
GetUpdatableDependencies Deprecated: we now use the list of Requirements from the go.mod file: use here SetUpdatableDependencies
func (*Analyser) GetWarnings ¶
func (*Analyser) PushWarning ¶
func (*Analyser) SetCoverProfile ¶
func (*Analyser) SetCoverageByTotal ¶
func (*Analyser) SetDependencyGraph ¶
func (*Analyser) SetGoVersion ¶
func (*Analyser) SetThreshold ¶
func (*Analyser) SetUpdatableRequirements ¶ added in v0.15.0
func (a *Analyser) SetUpdatableRequirements()
func (*Analyser) SetVulnCheck ¶
type Dependency ¶
type RequireUpdate ¶ added in v0.15.0
Click to show internal directories.
Click to hide internal directories.