Documentation
¶
Index ¶
- Constants
- func CacheFolder() string
- func Parse(jsonData string) (string, error)
- type Comment
- type Metadata
- type OS
- type Result
- type TrivyContainer
- func (c *TrivyContainer) CopyScript() error
- func (c *TrivyContainer) Images() []string
- func (c *TrivyContainer) IsAsync() bool
- func (c *TrivyContainer) Matches(build container.Build) bool
- func (c *TrivyContainer) Name() string
- func (c *TrivyContainer) Pull() error
- func (c *TrivyContainer) Run() error
- func (c *TrivyContainer) Scan() error
- type Vulnerability
Constants ¶
View Source
const (
IMAGE = "public.ecr.aws/aquasecurity/trivy:canary"
)
Variables ¶
This section is empty.
Functions ¶
func CacheFolder ¶
func CacheFolder() string
Types ¶
type Result ¶
type Result struct {
Target string `json:"Target"`
Class string `json:"Class"`
Type string `json:"Type"`
Vulnerabilities []Vulnerability `json:"Vulnerabilities"`
}
type TrivyContainer ¶
func New ¶
func New(build container.Build) *TrivyContainer
func (*TrivyContainer) CopyScript ¶
func (c *TrivyContainer) CopyScript() error
func (*TrivyContainer) Images ¶
func (c *TrivyContainer) Images() []string
func (*TrivyContainer) IsAsync ¶ added in v0.2.1
func (c *TrivyContainer) IsAsync() bool
func (*TrivyContainer) Matches ¶ added in v0.30.1
func (c *TrivyContainer) Matches(build container.Build) bool
Matches implements the Build interface - Trivy runs for all builds
func (*TrivyContainer) Name ¶
func (c *TrivyContainer) Name() string
func (*TrivyContainer) Pull ¶
func (c *TrivyContainer) Pull() error
func (*TrivyContainer) Run ¶
func (c *TrivyContainer) Run() error
func (*TrivyContainer) Scan ¶
func (c *TrivyContainer) Scan() error
type Vulnerability ¶
type Vulnerability struct {
FixedVersion string `json:"FixedVersion"`
VulnerabilityID string `json:"VulnerabilityID"`
PkgID string `json:"PkgID"`
PkgPath string `json:"PkgPath"`
PkgName string `json:"PkgName"`
InstalledVersion string `json:"InstalledVersion"`
PrimaryURL string `json:"PrimaryURL"`
Status string `json:"Status"`
Description string `json:"Description"`
Title string `json:"Title"`
Severity string `json:"Severity"`
LastModifiedDate string `json:"LastModifiedDate"`
PublishedDate string `json:"PublishedDate"`
References []string `json:"References"`
}
Click to show internal directories.
Click to hide internal directories.