Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var RemoteArchiveSet = wire.NewSet( image.NewArchiveImage, RemoteSuperSet, )
RemoteArchiveSet binds remote archive dependencies
var RemoteDockerSet = wire.NewSet( types.GetDockerOption, image.NewDockerImage, RemoteSuperSet, )
RemoteDockerSet binds remote docker dependencies
var RemoteSuperSet = wire.NewSet( aimage.NewArtifact, client.SuperSet, wire.Bind(new(Driver), new(client.Scanner)), NewScanner, )
RemoteSuperSet is used in the client mode
var StandaloneArchiveSet = wire.NewSet( image.NewArchiveImage, aimage.NewArtifact, StandaloneSuperSet, )
StandaloneArchiveSet binds archive scan dependencies
var StandaloneDockerSet = wire.NewSet( types.GetDockerOption, image.NewDockerImage, aimage.NewArtifact, StandaloneSuperSet, )
StandaloneDockerSet binds docker dependencies
var StandaloneFilesystemSet = wire.NewSet( flocal.NewArtifact, StandaloneSuperSet, )
StandaloneFilesystemSet binds filesystem dependencies
var StandaloneRepositorySet = wire.NewSet( remote.NewArtifact, StandaloneSuperSet, )
StandaloneRepositorySet binds repository dependencies
var StandaloneSuperSet = wire.NewSet( local.SuperSet, wire.Bind(new(Driver), new(local.Scanner)), NewScanner, )
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, artifactKey string, blobKeys []string, options types.ScanOptions) ( results report.Results, osFound *ftypes.OS, err error) }
Driver defines operations of scanner
type DriverScanArgs ¶ added in v0.9.0
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 Err error }
type MockDriver ¶ added in v0.5.0
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, artifactKey string, blobKeys []string, options types.ScanOptions) (report.Results, *fanaltypes.OS, 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
}
Scanner implements the Artifact and Driver operations
func NewScanner ¶ added in v0.3.0
NewScanner is the factory method of Scanner
func (Scanner) ScanArtifact ¶ added in v0.9.0
func (s Scanner) ScanArtifact(ctx context.Context, options types.ScanOptions) (report.Report, error)
ScanArtifact scans the artifacts and returns results