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 ¶
NewService creates a new Service instance with the specified backend implementation and artifact handler.
func (Service) ScanArtifact ¶
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.