Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RemoteArchiveSet = wire.NewSet( types.GetDockerOption, docker.NewDockerArchiveExtractor, wire.Bind(new(extractor.Extractor), new(docker.Extractor)), RemoteSuperSet, )
View Source
var RemoteDockerSet = wire.NewSet( types.GetDockerOption, docker.NewDockerExtractor, wire.Bind(new(extractor.Extractor), new(docker.Extractor)), RemoteSuperSet, )
View Source
var RemoteSuperSet = wire.NewSet( analyzer.New, wire.Bind(new(Analyzer), new(analyzer.Config)), client.SuperSet, wire.Bind(new(Driver), new(client.Scanner)), NewScanner, )
RemoteSuperSet is used in the client mode
View Source
var StandaloneArchiveSet = wire.NewSet( types.GetDockerOption, docker.NewDockerArchiveExtractor, wire.Bind(new(extractor.Extractor), new(docker.Extractor)), StandaloneSuperSet, )
View Source
var StandaloneDockerSet = wire.NewSet( types.GetDockerOption, docker.NewDockerExtractor, wire.Bind(new(extractor.Extractor), new(docker.Extractor)), StandaloneSuperSet, )
View Source
var StandaloneSuperSet = wire.NewSet( analyzer.New, wire.Bind(new(Analyzer), new(analyzer.Config)), local.SuperSet, wire.Bind(new(Driver), new(local.Scanner)), NewScanner, )
StandaloneSuperSet is used in the standalone mode
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶ added in v0.5.0
type Analyzer interface {
Analyze(ctx context.Context) (info ftypes.ImageReference, err error)
}
type AnalyzerAnalyzeArgs ¶ added in v0.5.0
type AnalyzerAnalyzeExpectation ¶ added in v0.5.0
type AnalyzerAnalyzeExpectation struct { Args AnalyzerAnalyzeArgs Returns AnalyzerAnalyzeReturns }
type AnalyzerAnalyzeReturns ¶ added in v0.5.0
type AnalyzerAnalyzeReturns struct { Info types.ImageReference Err error }
type MockAnalyzer ¶ added in v0.5.0
MockAnalyzer is an autogenerated mock type for the Analyzer type
func (*MockAnalyzer) Analyze ¶ added in v0.5.0
func (_m *MockAnalyzer) Analyze(ctx context.Context) (types.ImageReference, error)
Analyze provides a mock function with given fields: ctx
func (*MockAnalyzer) ApplyAnalyzeExpectation ¶ added in v0.5.0
func (_m *MockAnalyzer) ApplyAnalyzeExpectation(e AnalyzerAnalyzeExpectation)
func (*MockAnalyzer) ApplyAnalyzeExpectations ¶ added in v0.5.0
func (_m *MockAnalyzer) ApplyAnalyzeExpectations(expectations []AnalyzerAnalyzeExpectation)
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 ScanExpectation)
func (*MockDriver) ApplyScanExpectations ¶ added in v0.5.0
func (_m *MockDriver) ApplyScanExpectations(expectations []ScanExpectation)
func (*MockDriver) Scan ¶ added in v0.5.0
func (_m *MockDriver) Scan(target string, imageID digest.Digest, layerIDs []string, options types.ScanOptions) (report.Results, *fanaltypes.OS, bool, error)
Scan provides a mock function with given fields: target, imageID, layerIDs, options
type ScanExpectation ¶ added in v0.5.0
type ScanExpectation struct { Args ScanArgs Returns ScanReturns }
type ScanReturns ¶ added in v0.5.0
type Scanner ¶ added in v0.3.0
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.