crda

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Low      = "low"
	Medium   = "medium"
	High     = "high"
	Critical = "critical"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.4.2

type Config struct {
	URL        string   `json:"url" yaml:"url"`
	Source     string   `json:"source" yaml:"source"`
	Key        string   `json:"key" yaml:"key"`
	Ecosystems []string `json:"ecosystems" yaml:"ecosystems"`
}

Config is the structure accepted to configure all matchers.

type Factory added in v0.3.2

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

Factory contains the configuration to connect to the CRDA remote matcher.

func (*Factory) Configure added in v0.3.2

MatcherFactory implements driver.MatcherConfigurable.

func (*Factory) Matcher added in v0.3.2

func (f *Factory) Matcher(ctx context.Context) ([]driver.Matcher, error)

MatcherFactory implements driver.MatcherFactory.

type Package added in v0.4.1

type Package struct {
	Name    string `json:"package"`
	Version string `json:"version"`
}

Request model.

type VulnReport

type VulnReport struct {
	Name            string          `json:"name"`
	Version         string          `json:"version"`
	Vulnerabilities []Vulnerability `json:"vulnerabilities"`
}

type VulnRequest added in v0.4.1

type VulnRequest struct {
	Ecosystem string    `json:"ecosystem"`
	Packages  []Package `json:"package_versions"`
}

type Vulnerability

type Vulnerability struct {
	ID       string   `json:"id"`
	Severity string   `json:"severity"`
	Title    string   `json:"title"`
	URL      string   `json:"url"`
	FixedIn  []string `json:"fixed_in"`
}

Build struct to model CRDA V2 ComponentAnalysis response which delivers Snyk sourced Vulnerability information.

Jump to

Keyboard shortcuts

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