Class CheckParameters
- Namespace
- OpaDotNet.Compilation.Cli
- Assembly
- OpaDotNet.Compilation.Cli.dll
Check parameters.
public record CheckParameters : IEquatable<CheckParameters>
- Inheritance
-
CheckParameters
- Implements
- Inherited Members
Constructors
CheckParameters()
public CheckParameters()
CheckParameters(CheckParameters)
protected CheckParameters(CheckParameters original)
Parameters
originalCheckParameters
Properties
CapabilitiesBytes
Capabilities json that defines the built-in functions and other language features that policies may depend on.
public ReadOnlyMemory<byte> CapabilitiesBytes { get; init; }
Property Value
CapabilitiesFilePath
Capabilities file that defines the built-in functions and other language features that policies may depend on. CapabilitiesFilePath overrides any other specified capabilities.
public string? CapabilitiesFilePath { get; init; }
Property Value
CapabilitiesVersion
OPA capabilities version. If set, compiler will merge capabilities of specified version with any additional custom capabilities.
public string? CapabilitiesVersion { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Format
Output format.
public CheckOutputFormat Format { get; init; }
Property Value
Ignore
Set file and directory names to ignore during loading (e.g., '.*' excludes hidden files).
public IReadOnlySet<string> Ignore { get; init; }
Property Value
IsBundle
Specifies if compilation source if file or bundle.
public bool IsBundle { get; init; }
Property Value
MaxErrors
Set the number of errors to allow before compilation fails early (default 10).
public int? MaxErrors { get; init; }
Property Value
- int?
RegoVersion
Sets OPA features and behaviors that will be enabled by default. V0 assumes --v0-compatible flag. V0CompatV1 assumes --v0-v1 flag.
public RegoVersion RegoVersion { get; init; }
Property Value
Schema
Schema file path or directory path.
public string? Schema { get; init; }
Property Value
Strict
Enable compiler strict mode.
public bool Strict { get; init; }
Property Value
Methods
Equals(CheckParameters?)
public virtual bool Equals(CheckParameters? other)
Parameters
otherCheckParameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CheckParameters?, CheckParameters?)
public static bool operator ==(CheckParameters? left, CheckParameters? right)
Parameters
leftCheckParametersrightCheckParameters
Returns
operator !=(CheckParameters?, CheckParameters?)
public static bool operator !=(CheckParameters? left, CheckParameters? right)
Parameters
leftCheckParametersrightCheckParameters