data

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildUniqueId

func BuildUniqueId(digest, image, registry string) string

func ClearField

func ClearField(source string) string

Types

type ControlCheck

type ControlCheck struct {
	Control    string `json:"control"`
	PolicyName string `json:"policy_name"`
	Failed     bool   `json:"failed"`
}

type ImageAssuranceResults

type ImageAssuranceResults struct {
	Disallowed      bool           `json:"disallowed"`
	ChecksPerformed []ControlCheck `json:"checks_performed"`
}

type InfoResources

type InfoResources struct {
	Vulnerabilities []Vulnerability `json:"vulnerabilities"`
	ResourceDetails `json:"resource"`
}

type ResourceDetails

type ResourceDetails struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type ScanImageInfo

type ScanImageInfo struct {
	Image                  string `json:"image"`
	Registry               string `json:"registry"`
	Digest                 string `json:"digest"`
	PreviousDigest         string `json:"previous_digest"`
	ImageAssuranceResults  `json:"image_assurance_results"`
	VulnerabilitySummary   `json:"vulnerability_summary"`
	ScanOptions            `json:"scan_options"`
	Resources              []InfoResources `json:"resources"`
	ApplicationScopeOwners []string        `json:"application_scope_owners"`
}

func (*ScanImageInfo) GetUniqueId

func (si *ScanImageInfo) GetUniqueId() string

type ScanOptions

type ScanOptions struct {
	ScanSensitiveData bool `json:"scan_sensitive_data"`
	ScanMalware       bool `json:"scan_malware"`
}

type SlackBlock

type SlackBlock struct {
	TypeField string           `json:"type"`
	TextField *SlackTextBlock  `json:"text,omitempty"`
	Fields    []SlackTextBlock `json:"fields,omitempty"`
}

type SlackTextBlock

type SlackTextBlock struct {
	TypeField string `json:"type"`
	TextField string `json:"text"`
}

type Vulnerability

type Vulnerability struct {
	Name       string `json:"name"`
	Version    string `json:"version"`
	FixVersion string `json:"fix_version"`
	Severity   string `json:"aqua_severity"` //`json:""`nvd_severity
}

type VulnerabilitySummary

type VulnerabilitySummary struct {
	Total      int `json:"total"`
	Critical   int `json:"critical"`
	High       int `json:"high"`
	Medium     int `json:"medium"`
	Low        int `json:"low"`
	Negligible int `json:"negligible"`
	Sensitive  int `json:"sensitive"`
	Malware    int `json:"malware"`
}

Jump to

Keyboard shortcuts

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