Versions in this module Expand all Collapse all v0 v0.0.3 May 31, 2024 Changes in this version + var RemoteArchiveSet = wire.NewSet(aimage.NewArtifact, image.NewArchiveImage, RemoteSuperSet) + var RemoteDockerSet = wire.NewSet(aimage.NewArtifact, image.NewContainerImage, RemoteSuperSet) + var RemoteFilesystemSet = wire.NewSet(flocal.NewArtifact, RemoteSuperSet) + var RemoteRepositorySet = wire.NewSet(remote.NewArtifact, RemoteSuperSet) + var RemoteSBOMSet = wire.NewSet(sbom.NewArtifact, RemoteSuperSet) + var RemoteSuperSet = wire.NewSet(client.NewScanner, wire.Value([]client.Option(nil)), ...) + var RemoteVMSet = wire.NewSet(vm.NewArtifact, RemoteSuperSet) + var StandaloneArchiveSet = wire.NewSet(image.NewArchiveImage, aimage.NewArtifact, StandaloneSuperSet) + var StandaloneDockerSet = wire.NewSet(image.NewContainerImage, aimage.NewArtifact, StandaloneSuperSet) + var StandaloneFilesystemSet = wire.NewSet(flocal.NewArtifact, StandaloneSuperSet) + var StandaloneRepositorySet = wire.NewSet(remote.NewArtifact, StandaloneSuperSet) + var StandaloneSBOMSet = wire.NewSet(sbom.NewArtifact, StandaloneSuperSet) + var StandaloneSuperSet = wire.NewSet(local.SuperSet, wire.Bind(new(Driver), new(local.Scanner)), NewScanner) + var StandaloneVMSet = wire.NewSet(vm.NewArtifact, StandaloneSuperSet) + type Driver interface + Scan func(ctx context.Context, target, artifactKey string, blobKeys []string, ...) (results types.Results, osFound ftypes.OS, err error) + type DriverScanArgs struct + Ctx context.Context + CtxAnything bool + ImageID string + ImageIDAnything bool + LayerIDs []string + LayerIDsAnything bool + Options types.ScanOptions + OptionsAnything bool + Target string + TargetAnything bool + type DriverScanExpectation struct + Args DriverScanArgs + Returns DriverScanReturns + type DriverScanReturns struct + Err error + OsFound fanaltypes.OS + Results types.Results + type MockDriver struct + func (_m *MockDriver) ApplyScanExpectation(e DriverScanExpectation) + func (_m *MockDriver) ApplyScanExpectations(expectations []DriverScanExpectation) + func (_m *MockDriver) Scan(ctx context.Context, target string, artifactKey string, blobKeys []string, ...) (types.Results, fanaltypes.OS, error) + type Scanner struct + func NewScanner(driver Driver, ar artifact.Artifact) Scanner + func (s Scanner) ScanArtifact(ctx context.Context, options types.ScanOptions) (types.Report, error)