Documentation ¶
Index ¶
- func NewCLIScanner(c *config.Config, instrumentor performance.Instrumentor, ...) snyk.ProductScanner
- type Annotation
- type AppliedPolicyRules
- type CLIScanner
- func (cliScanner *CLIScanner) ClearInlineValues(path string)
- func (cliScanner *CLIScanner) DeltaScanningEnabled() bool
- func (cliScanner *CLIScanner) GetInlineValues(path string, myRange snyk.Range) (result []snyk.InlineValue, err error)
- func (cliScanner *CLIScanner) IsEnabled() bool
- func (cliScanner *CLIScanner) Product() product.Product
- func (cliScanner *CLIScanner) Scan(ctx context.Context, path string, _ string) (issues []snyk.Issue, err error)
- func (cliScanner *CLIScanner) ScanPackages(ctx context.Context, config *config.Config, path string, content string)
- type DefaultFinder
- type DetailedPath
- type HtmlRenderer
- type Insights
- type IntroducedThrough
- type NpmRangeFinder
- type RangeFinder
- type SeverityChange
- type VulnerabilityCountInformation
- type VulnerabilityCountInformationMap
- type VulnerabilityCountService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCLIScanner ¶
func NewCLIScanner(c *config.Config, instrumentor performance.Instrumentor, errorReporter error_reporting.ErrorReporter, cli cli.Executor, learnService learn.Service, notifier noti.Notifier) snyk.ProductScanner
Types ¶
type Annotation ¶
type AppliedPolicyRules ¶
type AppliedPolicyRules struct { Annotation Annotation `json:"annotation,omitempty"` SeverityChange SeverityChange `json:"severityChange,omitempty"` }
type CLIScanner ¶
type CLIScanner struct {
// contains filtered or unexported fields
}
func (*CLIScanner) ClearInlineValues ¶
func (cliScanner *CLIScanner) ClearInlineValues(path string)
func (*CLIScanner) DeltaScanningEnabled ¶
func (cliScanner *CLIScanner) DeltaScanningEnabled() bool
func (*CLIScanner) GetInlineValues ¶
func (cliScanner *CLIScanner) GetInlineValues(path string, myRange snyk.Range) (result []snyk.InlineValue, err error)
func (*CLIScanner) IsEnabled ¶
func (cliScanner *CLIScanner) IsEnabled() bool
func (*CLIScanner) Product ¶
func (cliScanner *CLIScanner) Product() product.Product
func (*CLIScanner) ScanPackages ¶
type DefaultFinder ¶
type DefaultFinder struct {
// contains filtered or unexported fields
}
type DetailedPath ¶
type HtmlRenderer ¶
type HtmlRenderer struct {
// contains filtered or unexported fields
}
func NewHtmlRenderer ¶
func NewHtmlRenderer(c *config.Config) (*HtmlRenderer, error)
func (*HtmlRenderer) GetDetailsHtml ¶
func (renderer *HtmlRenderer) GetDetailsHtml(issue snyk.Issue) string
type IntroducedThrough ¶
type NpmRangeFinder ¶
type NpmRangeFinder struct {
// contains filtered or unexported fields
}
type RangeFinder ¶
type RangeFinder interface {
// contains filtered or unexported methods
}
type SeverityChange ¶
type VulnerabilityCountInformation ¶
type VulnerabilityCountInformation struct {
// contains filtered or unexported fields
}
func (*VulnerabilityCountInformation) Path ¶
func (v *VulnerabilityCountInformation) Path() string
func (*VulnerabilityCountInformation) Range ¶
func (v *VulnerabilityCountInformation) Range() snyk.Range
func (*VulnerabilityCountInformation) String ¶
func (v *VulnerabilityCountInformation) String() string
func (*VulnerabilityCountInformation) Text ¶
func (v *VulnerabilityCountInformation) Text() string
type VulnerabilityCountInformationMap ¶
type VulnerabilityCountInformationMap map[string]map[snyk.Range]*VulnerabilityCountInformation
type VulnerabilityCountService ¶
type VulnerabilityCountService interface {
DetermineVulnerabilityCounts(issues []snyk.Issue) (VulnerabilityCountInformationMap, error)
}
func NewVulnerabilityCountService ¶
func NewVulnerabilityCountService(c *config.Config) VulnerabilityCountService
Source Files ¶
Click to show internal directories.
Click to hide internal directories.