jx: github.com/jenkins-x/jx/pkg/cve Index | Files

package cve

import "github.com/jenkins-x/jx/pkg/cve"

Index

Package Files

anchore.go provider.go

Constants

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

type AnchoreProvider Uses

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

AnchoreProvider implements CVEProvider interface for anchore.io

func (AnchoreProvider) AnchoreGet Uses

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

AnchoreGet get command

func (AnchoreProvider) GetImageVulnerabilityTable Uses

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

type CVEProvider Uses

type CVEProvider interface {
    GetImageVulnerabilityTable(jxClient versioned.Interface, client kubernetes.Interface, table *table.Table, query CVEQuery) error
}

func NewAnchoreProvider Uses

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

type CVEQuery Uses

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

type Image Uses

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

type ImageDetail Uses

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

type Vulnerability Uses

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

type VulnerabilityList Uses

type VulnerabilityList struct {
    ImageDigest     string
    Vulnerabilities []Vulnerability
}

Package cve imports 10 packages (graph) and is imported by 1 packages. Updated 2018-09-07. Refresh now. Tools for package owners.