grype

package
v0.0.0-...-65a6f44 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 6 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 {
	Name    string `json:"name"`
	Version string `json:"version"`
	Type    string `json:"type"`
}

type DirResult

type DirResult struct {
	Matches []Match   `json:"matches"`
	Source  DirSource `json:"source"`
}

type DirSource

type DirSource struct {
	Type   string `json:"type"`
	Target string `json:"target"`
}

type Fix

type Fix struct {
	Versions []string `json:"versions"`
	State    string   `json:"state"`
}

type ImageResult

type ImageResult struct {
	Matches []Match     `json:"matches"`
	Source  ImageSource `json:"source"`
}

type ImageSource

type ImageSource struct {
	Type   string `json:"type"`
	Target Target `json:"target"`
}

type Match

type Match struct {
	Vulnerability Vulnerability `json:"vulnerability"`
	Artifact      Artifact      `json:"artifact"`
}

type Result

type Result struct {
	Matches []Match `json:"matches"`
	Target  Target  `json:"target"`
}

func Analyze

func Analyze(image string, filePath string) (res Result, err error)

func AnalyzeRepository

func AnalyzeRepository(r gitlib.GitRef, workpath string, filePath string) (res Result, err error)

type Target

type Target struct {
	UserInput string `json:"userInput"`
	ImageID   string `json:"imageID"`
	ImageSize int64  `json:"imageSize"`
}

type Vulnerability

type Vulnerability struct {
	Id          string `json:"id"`
	DataSource  string `json:"dataSource"`
	Severity    string `json:"severity"`
	Description string `json:"description"`
	Fix         Fix    `json:"fix"`
}

Jump to

Keyboard shortcuts

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