local

package
v0.69.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 26 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 scan service

func (Service) MisconfsToResults

func (s Service) MisconfsToResults(misconfs []ftypes.Misconfiguration) types.Results

MisconfsToResults is exported for trivy-plugin-aqua purposes only

func (Service) Scan

func (s Service) Scan(ctx context.Context, targetName, artifactKey string, blobKeys []string, options types.ScanOptions) (
	types.ScanResponse, 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