MCPcopy
hub / github.com/aquasecurity/trivy / Backend

Interface Backend

pkg/scan/service.go:34–37  ·  view source on GitHub ↗

Backend defines the interface for security scanning implementations. It can be either local.Service for standalone scanning or remote.Service for client/server mode scanning. The backend handles various types of security scanning including vulnerability, misconfiguration, secret, and license scannin

Source from the content-addressed store, hash-verified

32// security scanning including vulnerability, misconfiguration, secret,
33// and license scanning.
34type Backend interface {
35 Scan(ctx context.Context, target, artifactKey string, blobKeys []string, options types.ScanOptions) (
36 response types.ScanResponse, err error)
37}
38
39// NewService creates a new Service instance with the specified backend implementation
40// and artifact handler.

Callers 8

ClearMethod · 0.65
ScanMethod · 0.65
parseDpkgMd5sumsMethod · 0.65
parseApkInfoMethod · 0.65
AnalyzeMethod · 0.65
AnalyzeMethod · 0.65
AnalyzeMethod · 0.65
PostAnalyzeMethod · 0.65

Implementers 15

dpkgScannerpkg/fanal/analyzer/pkg/dpkg/scanner.go
Scannerpkg/fanal/secret/scanner.go
ScanKubernetespkg/k8s/k8s.go
Scannerpkg/k8s/scanner/scanner.go
Scannerpkg/misconf/scanner.go
Scannerpkg/iac/scanners/terraformplan/tfjson/
Scannerpkg/licensing/scanner.go
Servicepkg/rpc/client/client.go
ScanServerpkg/rpc/server/server.go
Servicepkg/scan/local/service.go
scannerpkg/scan/langpkg/scan.go
scannerpkg/scan/ospkg/scan.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…