scan

package
v0.68.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Scan(ctx context.Context, target, artifactKey string, blobKeys []string, options types.ScanOptions) (
		response types.ScanResponse, err error)
}

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 scanning.

type Service

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

Service is the main service that coordinates security scanning operations. It uses either local.Service or remote.Service as its backend implementation.

func NewService

func NewService(backend Backend, ar artifact.Artifact) Service

NewService creates a new Service instance with the specified backend implementation and artifact handler.

func (Service) ScanArtifact

func (s Service) ScanArtifact(ctx context.Context, options types.ScanOptions) (types.Report, error)

ScanArtifact performs security scanning on the specified artifact. It first inspects the artifact to gather necessary information, then delegates the actual scanning to the configured backend implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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