Documentation
¶
Index ¶
- Variables
- type PluginServer
- func (s *PluginServer) Describe(_ context.Context, _ *plugin.DescribeRequest) (*plugin.DescribeResponse, error)
- func (s *PluginServer) Generate(_ context.Context, req *plugin.GenerateRequest) (*plugin.GenerateResponse, error)
- func (s *PluginServer) Scan(_ context.Context, req *plugin.ScanRequest) (*plugin.ScanResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ScanRunner scan.CommandRunner = scan.ExecRunner{}
ScanRunner is used by Scan to execute scan commands. It defaults to scan.ExecRunner{} and can be overridden for testing.
View Source
var SkipToolCheck bool
SkipToolCheck disables tool presence validation. Used in tests.
Functions ¶
This section is empty.
Types ¶
type PluginServer ¶
type PluginServer struct{}
PluginServer implements the plugin.Plugin interface for the AMPEL plugin.
func (*PluginServer) Describe ¶
func (s *PluginServer) Describe(_ context.Context, _ *plugin.DescribeRequest) (*plugin.DescribeResponse, error)
Describe returns the plugin metadata and health status.
func (*PluginServer) Generate ¶
func (s *PluginServer) Generate(_ context.Context, req *plugin.GenerateRequest) (*plugin.GenerateResponse, error)
Generate matches requirement IDs from the assessment configurations against granular AMPEL policy files and merges the matched policies into a single bundle for scan.
func (*PluginServer) Scan ¶
func (s *PluginServer) Scan(_ context.Context, req *plugin.ScanRequest) (*plugin.ScanResponse, error)
Scan invokes the AMPEL toolchain to scan target repositories and returns standardized assessment results.
Click to show internal directories.
Click to hide internal directories.