risks

package
v0.0.0-...-5ee5e5d Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acknowledge

type Acknowledge struct {
	IssueType              string    `json:"issue_type"`
	ResourceType           string    `json:"resource_type"`
	ResourceName           string    `json:"resource_name"`
	ResourceVersion        string    `json:"resource_version"`
	ResourcePath           string    `json:"resource_path"`
	ResourceCpe            string    `json:"resource_cpe"`
	IssueName              string    `json:"issue_name"`
	Registry               string    `json:"registry,omitempty"`
	Image                  string    `json:"image,omitempty"`
	Comment                string    `json:"comment"`
	Author                 string    `json:"author"`
	Date                   time.Time `json:"date"`
	FixVersion             string    `json:"fix_version"`
	ExpirationDays         int       `json:"expiration_days"`
	ExpirationConfiguredAt time.Time `json:"expiration_configured_at"`
	ExpirationConfiguredBy string    `json:"expiration_configured_by"`
	Repository             string    `json:"repository,omitempty"`
}

Acknowledge stores vulnerabilities whose risk is accepted

type Acknowledgements

type Acknowledgements struct {
	Count    int           `json:"count"`
	Page     int           `json:"page"`
	Pagesize int           `json:"pagesize"`
	Result   []Acknowledge `json:"result"`
}

Acknowledgements - slice of Ack

type Counts

type Counts struct {
	RegisteredImages        int     `json:"registered_images"`
	VulnerableImages        int     `json:"vulnerable_images"`
	VulnerableImagesPercent float64 `json:"vulnerable_images_percent"`
	TotalVulns              int     `json:"total_vulns"`
	HighVulns               int     `json:"high_vulns"`
	HighVulnsPercent        float64 `json:"high_vulns_percent"`
	MedVulns                int     `json:"med_vulns"`
	MedVulnsPercent         float64 `json:"med_vulns_percent"`
	LowVulns                int     `json:"low_vulns"`
	LowVulnsPercent         float64 `json:"low_vulns_percent"`
	NegVulns                int     `json:"neg_vulns"`
	NegVulnsPercent         float64 `json:"neg_vulns_percent"`
}

Counts contains the risk information

type Vulnerabilities

type Vulnerabilities images.Vulnerabilities

Vulnerabilities returns the entire list of at risk vulnerabilities

Jump to

Keyboard shortcuts

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