grype

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Critical   fields.Finding `json:"critical"`
	High       fields.Finding `json:"high"`
	Medium     fields.Finding `json:"medium"`
	Low        fields.Finding `json:"low"`
	Negligible fields.Finding `json:"negligible"`
	Unknown    fields.Finding `json:"unknown"`
	ScanReport *artifact.Asset
}

func NewArtifact

func NewArtifact() *Artifact

func (Artifact) String

func (a Artifact) String() string

String human-readable formatted table

func (Artifact) Validate added in v0.0.5

func (a Artifact) Validate() error

func (Artifact) WithConfig

func (a Artifact) WithConfig(config *Config) *Artifact

WithConfig sets the allowed values from config object

func (Artifact) WithScanReport added in v0.0.5

func (a Artifact) WithScanReport(r io.Reader, reportName string) (*Artifact, error)

WithScanReport returns an Artifact with findings from a scan report. Builder function

type Config

type Config struct {
	Critical   int `yaml:"critical" json:"critical"`
	High       int `yaml:"high" json:"high"`
	Medium     int `yaml:"medium" json:"medium"`
	Low        int `yaml:"low" json:"low"`
	Negligible int `yaml:"negligible" json:"negligible"`
	Unknown    int `yaml:"unknown" json:"unknown"`
}

func NewConfig

func NewConfig(v int) *Config

Jump to

Keyboard shortcuts

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