Documentation
¶
Index ¶
- Variables
- type ProviderServer
- func (s *ProviderServer) Describe(_ context.Context, _ *provider.DescribeRequest) (*provider.DescribeResponse, error)
- func (s *ProviderServer) Export(ctx context.Context, req *provider.ExportRequest) (*provider.ExportResponse, error)
- func (s *ProviderServer) Generate(_ context.Context, req *provider.GenerateRequest) (*provider.GenerateResponse, error)
- func (s *ProviderServer) Scan(_ context.Context, req *provider.ScanRequest) (*provider.ScanResponse, error)
Constants ¶
This section is empty.
Variables ¶
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.
var SkipToolCheck bool
SkipToolCheck disables tool presence validation. Used in tests.
Functions ¶
This section is empty.
Types ¶
type ProviderServer ¶
type ProviderServer struct{}
ProviderServer implements the provider.Provider interface for the AMPEL provider.
func (*ProviderServer) Describe ¶
func (s *ProviderServer) Describe(_ context.Context, _ *provider.DescribeRequest) (*provider.DescribeResponse, error)
Describe returns the provider metadata and health status.
func (*ProviderServer) Export ¶
func (s *ProviderServer) Export(ctx context.Context, req *provider.ExportRequest) (*provider.ExportResponse, error)
Export reads scan results from the workspace and emits them as GemaraEvidence OTLP log records to the configured Beacon collector via ProofWatch.
func (*ProviderServer) Generate ¶
func (s *ProviderServer) Generate(_ context.Context, req *provider.GenerateRequest) (*provider.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 (*ProviderServer) Scan ¶
func (s *ProviderServer) Scan(_ context.Context, req *provider.ScanRequest) (*provider.ScanResponse, error)
Scan invokes the AMPEL toolchain to scan target repositories and returns standardized assessment results.