cve

package
v1.3.371 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationCVEImageId = "jenkins-x.io/cve-image-id"
)
View Source
const (
	GetImages = "/images"
)

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) AnchoreGet added in v1.3.176

func (a AnchoreProvider) AnchoreGet(subPath string, rs result) error

AnchoreGet get command

func (AnchoreProvider) GetImageVulnerabilityTable

func (a AnchoreProvider) GetImageVulnerabilityTable(jxClient versioned.Interface, client kubernetes.Interface, table *table.Table, query CVEQuery) error

type CVEProvider

type CVEProvider interface {
	GetImageVulnerabilityTable(jxClient versioned.Interface, client kubernetes.Interface, 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
	TargetNamespace 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