scanner

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 15 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

RemoteSuperSet is used in the client mode

View Source
var StandaloneFilesystemSet = wire.NewSet(
	flocal.NewArtifact,
	StandaloneSuperSet,
)
View Source
var StandaloneRepositorySet = wire.NewSet(
	remote.NewArtifact,
	StandaloneSuperSet,
)

StandaloneSuperSet is used in the standalone mode

Functions

This section is empty.

Types

type Driver added in v0.5.0

type Driver interface {
	Scan(target string, imageID string, layerIDs []string, options types.ScanOptions) (results report.Results, osFound *ftypes.OS, eols bool, err error)
}

type DriverScanArgs added in v0.9.0

type DriverScanArgs struct {
	Target           string
	TargetAnything   bool
	ImageID          string
	ImageIDAnything  bool
	LayerIDs         []string
	LayerIDsAnything bool
	Options          types.ScanOptions
	OptionsAnything  bool
}

type DriverScanExpectation added in v0.9.0

type DriverScanExpectation struct {
	Args    DriverScanArgs
	Returns DriverScanReturns
}

type DriverScanReturns added in v0.9.0

type DriverScanReturns struct {
	Results report.Results
	OsFound *fanaltypes.OS
	Eols    bool
	Err     error
}

type MockDriver added in v0.5.0

type MockDriver struct {
	mock.Mock
}

MockDriver is an autogenerated mock type for the Driver type

func (*MockDriver) ApplyScanExpectation added in v0.5.0

func (_m *MockDriver) ApplyScanExpectation(e DriverScanExpectation)

func (*MockDriver) ApplyScanExpectations added in v0.5.0

func (_m *MockDriver) ApplyScanExpectations(expectations []DriverScanExpectation)

func (*MockDriver) Scan added in v0.5.0

func (_m *MockDriver) Scan(target string, imageID string, layerIDs []string, options types.ScanOptions) (report.Results, *fanaltypes.OS, bool, error)

Scan provides a mock function with given fields: target, imageID, layerIDs, options

type Scanner added in v0.3.0

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

func NewScanner added in v0.3.0

func NewScanner(driver Driver, ar artifact.Artifact) Scanner

func (Scanner) ScanArtifact added in v0.9.0

func (s Scanner) ScanArtifact(ctx context.Context, options types.ScanOptions) (report.Results, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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