local

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 26 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

SuperSet binds dependencies for Local scan

Functions

func ShouldScanMisconfigOrRbac added in v0.33.0

func ShouldScanMisconfigOrRbac(scanners types.Scanners) bool

Types

type ApplierApplyLayersArgs

type ApplierApplyLayersArgs struct {
	ArtifactID         string
	ArtifactIDAnything bool
	BlobIDs            []string
	BlobIDsAnything    bool
}

type ApplierApplyLayersExpectation

type ApplierApplyLayersExpectation struct {
	Args    ApplierApplyLayersArgs
	Returns ApplierApplyLayersReturns
}

type ApplierApplyLayersReturns

type ApplierApplyLayersReturns struct {
	Detail types.ArtifactDetail
	Err    error
}

type MockApplier

type MockApplier struct {
	mock.Mock
}

MockApplier is an autogenerated mock type for the Applier type

func (*MockApplier) ApplyApplyLayersExpectation

func (_m *MockApplier) ApplyApplyLayersExpectation(e ApplierApplyLayersExpectation)

func (*MockApplier) ApplyApplyLayersExpectations

func (_m *MockApplier) ApplyApplyLayersExpectations(expectations []ApplierApplyLayersExpectation)

func (*MockApplier) ApplyLayers

func (_m *MockApplier) ApplyLayers(artifactID string, blobIDs []string) (types.ArtifactDetail, error)

ApplyLayers provides a mock function with given fields: artifactID, blobIDs

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

Scanner implements the OspkgDetector and LibraryDetector

func NewScanner

func NewScanner(a applier.Applier, osPkgScanner ospkg.Scanner, langPkgScanner langpkg.Scanner,
	vulnClient vulnerability.Client) Scanner

NewScanner is the factory method for Scanner

func (Scanner) MisconfsToResults added in v0.35.0

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

MisconfsToResults is exported for trivy-plugin-aqua purposes only

func (Scanner) Scan

func (s Scanner) 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 (Scanner) ScanTarget added in v0.47.0

func (s Scanner) 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