Files
git.stella-ops.org/src/__Libraries/StellaOps.AuditPack/Services/IIsolatedReplayContext.cs

28 lines
823 B
C#

using StellaOps.AuditPack.Models;
namespace StellaOps.AuditPack.Services;
/// <summary>
/// Interface for isolated replay context.
/// </summary>
public interface IIsolatedReplayContext : IDisposable
{
bool IsInitialized { get; }
DateTimeOffset EvaluationTime { get; }
string WorkingDirectory { get; }
byte[]? Sbom { get; }
byte[]? FeedsSnapshot { get; }
byte[]? PolicyBundle { get; }
byte[]? VexStatements { get; }
string? SbomDigest { get; }
string? FeedsDigest { get; }
string? PolicyDigest { get; }
Task<ReplayContextInitResult> InitializeAsync(
AuditBundleReadResult bundleResult,
CancellationToken cancellationToken = default);
InputDigestVerification VerifyInputDigests(InputDigests expected);
string GetInputPath(ReplayInputType inputType);
}