Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
- Introduced `SbomService` tasks documentation. - Updated `StellaOps.sln` to include new projects: `StellaOps.AirGap.Time` and `StellaOps.AirGap.Importer`. - Added unit tests for `BundleImportPlanner`, `DsseVerifier`, `ImportValidator`, and other components in the `StellaOps.AirGap.Importer.Tests` namespace. - Implemented `InMemoryBundleRepositories` for testing bundle catalog and item repositories. - Created `MerkleRootCalculator`, `RootRotationPolicy`, and `TufMetadataValidator` tests. - Developed `StalenessCalculator` and `TimeAnchorLoader` tests in the `StellaOps.AirGap.Time.Tests` namespace. - Added `fetch-sbomservice-deps.sh` script for offline dependency fetching.
11 lines
407 B
C#
11 lines
407 B
C#
namespace StellaOps.AirGap.Importer.Validation;
|
|
|
|
/// <summary>
|
|
/// Deterministic validation outcome used by importer and CLI surfaces.
|
|
/// </summary>
|
|
public sealed record BundleValidationResult(bool IsValid, string Reason)
|
|
{
|
|
public static BundleValidationResult Success(string reason = "ok") => new(true, reason);
|
|
public static BundleValidationResult Failure(string reason) => new(false, reason);
|
|
}
|