Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using StellaOps.BinaryIndex.Core.Models;
|
||||
|
||||
namespace StellaOps.BinaryIndex.FixIndex.Models;
|
||||
|
||||
/// <summary>
|
||||
@@ -39,45 +41,6 @@ public sealed record FixEvidence
|
||||
public DateTimeOffset CreatedAt { get; init; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fix state enumeration.
|
||||
/// </summary>
|
||||
public enum FixState
|
||||
{
|
||||
/// <summary>CVE is fixed in this version</summary>
|
||||
Fixed,
|
||||
|
||||
/// <summary>CVE affects this package</summary>
|
||||
Vulnerable,
|
||||
|
||||
/// <summary>CVE does not affect this package</summary>
|
||||
NotAffected,
|
||||
|
||||
/// <summary>Fix won't be applied (e.g., EOL version)</summary>
|
||||
Wontfix,
|
||||
|
||||
/// <summary>Unknown status</summary>
|
||||
Unknown
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method used to identify the fix.
|
||||
/// </summary>
|
||||
public enum FixMethod
|
||||
{
|
||||
/// <summary>From official security feed (OVAL, DSA, etc.)</summary>
|
||||
SecurityFeed,
|
||||
|
||||
/// <summary>Parsed from Debian/Ubuntu changelog</summary>
|
||||
Changelog,
|
||||
|
||||
/// <summary>Extracted from patch header (DEP-3)</summary>
|
||||
PatchHeader,
|
||||
|
||||
/// <summary>Matched against upstream patch database</summary>
|
||||
UpstreamPatchMatch
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Base class for evidence payloads.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using StellaOps.BinaryIndex.Core.Models;
|
||||
using StellaOps.BinaryIndex.FixIndex.Models;
|
||||
|
||||
namespace StellaOps.BinaryIndex.FixIndex.Parsers;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using StellaOps.BinaryIndex.Core.Models;
|
||||
using StellaOps.BinaryIndex.FixIndex.Models;
|
||||
|
||||
namespace StellaOps.BinaryIndex.FixIndex.Parsers;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using StellaOps.BinaryIndex.Core.Models;
|
||||
using StellaOps.BinaryIndex.FixIndex.Models;
|
||||
|
||||
namespace StellaOps.BinaryIndex.FixIndex.Parsers;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using StellaOps.BinaryIndex.Core.Models;
|
||||
using StellaOps.BinaryIndex.FixIndex.Models;
|
||||
|
||||
namespace StellaOps.BinaryIndex.FixIndex.Parsers;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using StellaOps.BinaryIndex.Core.Models;
|
||||
using StellaOps.BinaryIndex.FixIndex.Models;
|
||||
|
||||
namespace StellaOps.BinaryIndex.FixIndex.Repositories;
|
||||
|
||||
Reference in New Issue
Block a user