Documentation
¶
Index ¶
Constants ¶
View Source
const (
CLAIR_SERVER_IP = "CLAIR_SERVER_IP"
)
Variables ¶
View Source
var SeverityWeight map[Serverity]int
Functions ¶
func AnalysisImage ¶
func AnalysisImage(dockerManager *docker.Manager, imageName string) ([]klar_clair.Vulnerability, error)
AnalysisImage analysis image by Clair server
Types ¶
type Serverity ¶
type Serverity string
const ( // Unknown is either a security problem that has not been // assigned to a priority yet or a priority that our system // did not recognize Unknown Serverity = "Unknown" // Negligible is technically a security problem, but is // only theoretical in nature, requires a very special // situation, has almost no install base, or does no real // damage. These tend not to get backport from upstreams, // and will likely not be included in security updates unless // there is an easy fix and some other issue causes an update. Negligible Serverity = "Negligible" // Low is a security problem, but is hard to // exploit due to environment, requires a user-assisted // attack, a small install base, or does very little damage. // These tend to be included in security updates only when // higher priority issues require an update, or if many // low priority issues have built up. Low Serverity = "Low" // Medium is a real security problem, and is exploitable // for many people. Includes network daemon denial of service // attacks, cross-site scripting, and gaining user privileges. // Updates should be made soon for this priority of issue. Medium Serverity = "Medium" // High is a real problem, exploitable for many people in a default // installation. Includes serious remote denial of services, // local root privilege escalations, or data loss. High Serverity = "High" // Critical is a world-burning problem, exploitable for nearly all people // in a default installation of Linux. Includes remote root // privilege escalations, or massive data loss. Critical Serverity = "Critical" // Defcon1 is a Critical problem which has been manually highlighted by // the team. It requires an immediate attention. Defcon1 Serverity = "Defcon1" )
type VulnerabilityList ¶
type VulnerabilityList []klar_clair.Vulnerability
func (VulnerabilityList) Len ¶
func (list VulnerabilityList) Len() int
Len realize function of interface sort
func (VulnerabilityList) Less ¶
func (list VulnerabilityList) Less(i, j int) bool
Less realize function of interface sort
func (VulnerabilityList) Swap ¶
func (list VulnerabilityList) Swap(i, j int)
Swap realize function of interface sort
Click to show internal directories.
Click to hide internal directories.