trivy

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImageScanner

func NewImageScanner(logger *zap.Logger, client rode.RodeClient, trivyWrapper CommandWrapper) scanner.ImageScanner

Types

type CommandWrapper

type CommandWrapper interface {
	Version() (*Version, error)
	Scan(imageUri string) (*ScanOutput, error)
}

func NewTrivyCommandWrapper

func NewTrivyCommandWrapper() CommandWrapper

type ScanOutput

type ScanOutput struct {
	Report     *report.Report
	ScanStart  time.Time
	ScanEnd    time.Time
	ScanStatus ScanStatus
}

type ScanStatus added in v0.1.2

type ScanStatus string
const (
	ScanningFailed    ScanStatus = "ScanningFailed"
	ScanningCompleted ScanStatus = "ScanningCompleted"
)

type Version

type Version struct {
	Version string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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