cve

package
v1.2.28 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnchoreProvider

type AnchoreProvider struct {
	Client    *http.Client
	BasicAuth string
	BaseURL   string
}

AnchoreProvider implements CVEProvider interface for anchore.io

func (AnchoreProvider) GetImageVulnerabilityTable

func (a AnchoreProvider) GetImageVulnerabilityTable(table *table.Table, query CVEQuery) error

type CVEProvider

type CVEProvider interface {
	GetImageVulnerabilityTable(table *table.Table, query CVEQuery) error
}

func NewAnchoreProvider

func NewAnchoreProvider(server *auth.AuthServer, user *auth.UserAuth) (CVEProvider, error)

type CVEQuery

type CVEQuery struct {
	ImageName   string
	ImageID     string
	Vesion      string
	Environment string
}

type Image

type Image struct {
	AnalysisStatus string        `json:"analysis_status,omitempty"`
	ImageDetails   []ImageDetail `json:"image_detail,omitempty"`
}

type ImageDetail

type ImageDetail struct {
	Registry string
	Repo     string
	Tag      string
	ImageId  string
	Fulltag  string
}

type Vulnerability

type Vulnerability struct {
	Fix      string
	Package  string
	Severity string
	URL      string
	Vuln     string
}

type VulnerabilityList

type VulnerabilityList struct {
	ImageDigest     string
	Vulnerabilities []Vulnerability
}

Jump to

Keyboard shortcuts

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