Documentation
¶
Index ¶
- Variables
- func ShouldScanMisconfigOrRbac(scanners types.Scanners) bool
- type Service
- func (s Service) MisconfsToResults(misconfs []ftypes.Misconfiguration) types.Results
- func (s Service) Scan(ctx context.Context, targetName, artifactKey string, blobKeys []string, ...) (types.Results, ftypes.OS, error)
- func (s Service) ScanTarget(ctx context.Context, target types.ScanTarget, options types.ScanOptions) (types.Results, ftypes.OS, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SuperSet = wire.NewSet( vulnerability.SuperSet, applier.NewApplier, ospkg.NewScanner, langpkg.NewScanner, NewService, )
SuperSet binds dependencies for Local scan
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the OspkgDetector and LibraryDetector
func NewService ¶
func NewService(a applier.Applier, osPkgScanner ospkg.Scanner, langPkgScanner langpkg.Scanner, vulnClient vulnerability.Client) Service
NewService is the factory method for Scanner
func (Service) MisconfsToResults ¶
func (s Service) MisconfsToResults(misconfs []ftypes.Misconfiguration) types.Results
MisconfsToResults is exported for tunnel-plugin-khulnasoft purposes only
func (Service) Scan ¶
func (s Service) Scan(ctx context.Context, targetName, artifactKey string, blobKeys []string, options types.ScanOptions) ( types.Results, ftypes.OS, error)
Scan scans the artifact and return results.
func (Service) ScanTarget ¶
Click to show internal directories.
Click to hide internal directories.