Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var RemoteArchiveSet = wire.NewSet( aimage.NewArtifact, image.NewArchiveImage, RemoteSuperSet, )
RemoteArchiveSet binds remote archive dependencies
var RemoteDockerSet = wire.NewSet( aimage.NewArtifact, wire.Value([]image.Option(nil)), image.NewContainerImage, RemoteSuperSet, )
RemoteDockerSet binds remote docker dependencies
var RemoteFilesystemSet = wire.NewSet( flocal.NewArtifact, RemoteSuperSet, )
RemoteFilesystemSet binds filesystem dependencies for client/server mode
var RemoteRepositorySet = wire.NewSet( remote.NewArtifact, RemoteSuperSet, )
RemoteRepositorySet binds repository dependencies for client/server mode
var RemoteSBOMSet = wire.NewSet( sbom.NewArtifact, RemoteSuperSet, )
RemoteSBOMSet binds sbom dependencies for client/server mode
var RemoteSuperSet = wire.NewSet( client.NewScanner, wire.Value([]client.Option(nil)), wire.Bind(new(Driver), new(client.Scanner)), NewScanner, )
RemoteSuperSet is used in the client mode
var RemoteVMSet = wire.NewSet( vm.NewArtifact, RemoteSuperSet, )
RemoteVMSet binds vm dependencies for client/server mode
var StandaloneArchiveSet = wire.NewSet( image.NewArchiveImage, aimage.NewArtifact, StandaloneSuperSet, )
StandaloneArchiveSet binds archive scan dependencies
var StandaloneDockerSet = wire.NewSet( wire.Value([]image.Option(nil)), image.NewContainerImage, 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 StandaloneSBOMSet = wire.NewSet( sbom.NewArtifact, StandaloneSuperSet, )
StandaloneSBOMSet binds sbom dependencies
var StandaloneSuperSet = wire.NewSet( local.SuperSet, wire.Bind(new(Driver), new(local.Scanner)), NewScanner, )
StandaloneSuperSet is used in the standalone mode
var StandaloneVMSet = wire.NewSet( vm.NewArtifact, StandaloneSuperSet, )
StandaloneVMSet binds vm dependencies
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { Scan(ctx context.Context, target, artifactKey string, blobKeys []string, options types.ScanOptions) ( results types.Results, osFound ftypes.OS, err error) }
Driver defines operations of scanner
type DriverScanArgs ¶
type DriverScanExpectation ¶
type DriverScanExpectation struct { Args DriverScanArgs Returns DriverScanReturns }
type DriverScanReturns ¶
type DriverScanReturns struct { Results types.Results OsFound fanaltypes.OS Err error }
type MockDriver ¶
MockDriver is an autogenerated mock type for the Driver type
func (*MockDriver) ApplyScanExpectation ¶
func (_m *MockDriver) ApplyScanExpectation(e DriverScanExpectation)
func (*MockDriver) ApplyScanExpectations ¶
func (_m *MockDriver) ApplyScanExpectations(expectations []DriverScanExpectation)
func (*MockDriver) Scan ¶
func (_m *MockDriver) Scan(ctx context.Context, target string, artifactKey string, blobKeys []string, options types.ScanOptions) (types.Results, fanaltypes.OS, error)
Scan provides a mock function with given fields: ctx, target, imageID, layerIDs, options
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner implements the Artifact and Driver operations
func NewScanner ¶
NewScanner is the factory method of Scanner
func (Scanner) ScanArtifact ¶
ScanArtifact scans the artifacts and returns results