trivy

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultName = "trivy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	SetPath(path string)
	Scan(dir string) (*model.TrivyReport, error)
}

type Mock

type Mock struct {
	Interface
	ScanMock func(dir string) (*model.TrivyReport, error)
}

func NewMock

func NewMock() *Mock

func (*Mock) Scan

func (x *Mock) Scan(dir string) (*model.TrivyReport, error)

type Trivy

type Trivy struct {
	// contains filtered or unexported fields
}

func New

func New() *Trivy

func (*Trivy) Scan

func (x *Trivy) Scan(dir string) (*model.TrivyReport, error)

func (*Trivy) SetPath

func (x *Trivy) SetPath(path string)

Jump to

Keyboard shortcuts

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