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
| 32 | // security scanning including vulnerability, misconfiguration, secret, |
| 33 | // and license scanning. |
| 34 | type 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…