trivyscanner

package
v0.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOption

func GetOption() artifact.Option

Types

type Cvss

type Cvss struct {
	V2 struct {
		Vector string `json:"vector"`
		Vendor string `json:"vendor"`
		Scores struct {
			Base          float64 `json:"base"`
			Temporal      float64 `json:"temporal"`
			Environmental float64 `json:"environmental"`
		} `json:"scores"`
		Metrics cvssv2.Vectors `json:"metrics"`
	} `json:"v2"`
	V3 struct {
		Vector string `json:"vector"`
		Vendor string `json:"vendor"`
		Scores struct {
			Base          float64 `json:"base"`
			Temporal      float64 `json:"temporal"`
			Environmental float64 `json:"environmental"`
		} `json:"scores"`
		Metrics map[string]string `json:"metrics"`
	} `json:"v3"`

	Score   float64 `json:"score"`
	Version float64 `json:"version"`
}

func NewCVSS

func NewCVSS(CVSS types.VendorCVSS) *Cvss

type Trivy

type Trivy struct {
	Options artifact.Option
	// contains filtered or unexported fields
}

func (*Trivy) NewScanner

func (t *Trivy) NewScanner() *Trivy

func (*Trivy) Scan

func (t *Trivy) Scan(image string) (report.Report, error)

Jump to

Keyboard shortcuts

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