vulnerability

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: AGPL-3.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DefaultIgnoreFile = ".trivyignore"
)

Variables

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(dbc db.Config) Client

func (Client) FillInfo added in v0.3.0

func (c Client) FillInfo(vulns []types.DetectedVulnerability, light bool)

func (Client) Filter added in v0.3.0

func (c Client) Filter(vulns []types.DetectedVulnerability, severities []dbTypes.Severity,
	ignoreUnfixed bool, ignoreFile string) []types.DetectedVulnerability

type MockVulnClient added in v0.3.0

type MockVulnClient struct {
	mock.Mock
}

func NewMockVulnClient added in v0.3.0

func NewMockVulnClient() *MockVulnClient

func (*MockVulnClient) FillInfo added in v0.3.0

func (_m *MockVulnClient) FillInfo(a []types.DetectedVulnerability, b bool)

func (*MockVulnClient) Filter added in v0.3.0

type Operation added in v0.3.0

type Operation interface {
	FillInfo(vulns []types.DetectedVulnerability, light bool)
	Filter(vulns []types.DetectedVulnerability, severities []dbTypes.Severity,
		ignoreUnfixed bool, ignoreFile string) []types.DetectedVulnerability
}

Jump to

Keyboard shortcuts

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