cve

package
v1.2.132 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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(jxClient *versioned.Clientset, client *kubernetes.Clientset, table *table.Table, query CVEQuery) error

type CVEProvider

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