scan

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 14 Imported by: 5 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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