Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
- Implement `SbomIngestServiceCollectionExtensionsTests` to verify the SBOM ingestion pipeline exports snapshots correctly. - Create `SbomIngestTransformerTests` to ensure the transformation produces expected nodes and edges, including deduplication of license nodes and normalization of timestamps. - Add `SbomSnapshotExporterTests` to test the export functionality for manifest, adjacency, nodes, and edges. - Introduce `VexOverlayTransformerTests` to validate the transformation of VEX nodes and edges. - Set up project file for the test project with necessary dependencies and configurations. - Include JSON fixture files for testing purposes.
14 lines
485 B
C#
14 lines
485 B
C#
using System.Text.Json.Nodes;
|
|
using StellaOps.Findings.Ledger.Domain;
|
|
|
|
namespace StellaOps.Findings.Ledger.Infrastructure;
|
|
|
|
public interface ILedgerEventRepository
|
|
{
|
|
Task<LedgerEventRecord?> GetByEventIdAsync(string tenantId, Guid eventId, CancellationToken cancellationToken);
|
|
|
|
Task<LedgerChainHead?> GetChainHeadAsync(string tenantId, Guid chainId, CancellationToken cancellationToken);
|
|
|
|
Task AppendAsync(LedgerEventRecord record, CancellationToken cancellationToken);
|
|
}
|