oss

package
v0.0.0-...-1fb2453 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

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 Annotation struct {
	Value  string `json:"value,omitempty"`
	Reason string `json:"reason,omitempty"`
}

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) Scan

func (cliScanner *CLIScanner) Scan(ctx context.Context, path string, _ string) (issues []snyk.Issue, err error)

func (*CLIScanner) ScanPackages

func (cliScanner *CLIScanner) ScanPackages(
	ctx context.Context,
	config *config.Config,
	path string,
	content string,
)

type DefaultFinder

type DefaultFinder struct {
	// contains filtered or unexported fields
}

type DetailedPath

type DetailedPath struct {
	From        []string
	Remediation string
}

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 Insights

type Insights struct {
	TriageAdvice any `json:"triageAdvice"`
}

type IntroducedThrough

type IntroducedThrough struct {
	SnykUI         string
	PackageManager string
	Module         string
}

type NpmRangeFinder

type NpmRangeFinder struct {
	// contains filtered or unexported fields
}

type RangeFinder

type RangeFinder interface {
	// contains filtered or unexported methods
}

type SeverityChange

type SeverityChange struct {
	OriginalSeverity string `json:"originalSeverity"`
	NewSeverity      string `json:"newSeverity"`
	Reason           string `json:"reason"`
}

type VulnerabilityCountInformation

type VulnerabilityCountInformation struct {
	// contains filtered or unexported fields
}

func (*VulnerabilityCountInformation) Path

func (*VulnerabilityCountInformation) Range

func (*VulnerabilityCountInformation) String

func (*VulnerabilityCountInformation) Text

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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