Refactor code structure for improved readability and maintainability; optimize performance in key functions.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
namespace StellaOps.Policy.Unknowns.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the dependency graph impact of an unknown package.
|
||||
/// Data sourced from scanner call graph analysis.
|
||||
/// </summary>
|
||||
public sealed record BlastRadius
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of packages that directly or transitively depend on this package.
|
||||
/// 0 indicates isolation.
|
||||
/// </summary>
|
||||
public int Dependents { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether this package is reachable from network-facing entrypoints.
|
||||
/// True indicates higher risk.
|
||||
/// </summary>
|
||||
public bool NetFacing { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Privilege level under which this package typically runs.
|
||||
/// Expected values: root, user, none.
|
||||
/// </summary>
|
||||
public string? Privilege { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user