local

package
v0.61.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

SuperSet binds dependencies for Local scan

Functions

func ShouldScanMisconfigOrRbac

func ShouldScanMisconfigOrRbac(scanners types.Scanners) bool

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

func (s Service) ScanTarget(ctx context.Context, target types.ScanTarget, options types.ScanOptions) (types.Results, ftypes.OS, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL