Class VulnDbUpdateOptions

Namespace
Kuestenlogik.Bowire.Security.Scanner
Assembly
Kuestenlogik.Bowire.Security.Scanner.dll

Options for bowire vulndb update.

public sealed record VulnDbUpdateOptions : IEquatable<VulnDbUpdateOptions>
Inheritance
VulnDbUpdateOptions
Implements
Inherited Members

Constructors

VulnDbUpdateOptions()

public VulnDbUpdateOptions()

Properties

Dest

Cache root to write into; unset → ~/.bowire/vulndb.

public string? Dest { get; init; }

Property Value

string

Ref

Release tag to pin when resolving from GitHub (e.g. v0.1.0); unset → the latest release. Ignored for directory / file / URL sources.

public string? Ref { get; init; }

Property Value

string

Source

Where to pull the templates from. Four accepted shapes:

  • unset → the latest Kuestenlogik/Bowire.VulnDb GitHub release (or the Ref tag) — the only shape that makes an outbound call;
  • a local directory (a repo checkout / air-gapped mirror) — copied verbatim;
  • a local .tar.gz file (a downloaded release tarball) — extracted;
  • an http(s) URL to a .tar.gz — downloaded + extracted.
public string? Source { get; init; }

Property Value

string

Methods

Equals(VulnDbUpdateOptions?)

public bool Equals(VulnDbUpdateOptions? other)

Parameters

other VulnDbUpdateOptions

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(VulnDbUpdateOptions?, VulnDbUpdateOptions?)

public static bool operator ==(VulnDbUpdateOptions? left, VulnDbUpdateOptions? right)

Parameters

left VulnDbUpdateOptions
right VulnDbUpdateOptions

Returns

bool

operator !=(VulnDbUpdateOptions?, VulnDbUpdateOptions?)

public static bool operator !=(VulnDbUpdateOptions? left, VulnDbUpdateOptions? right)

Parameters

left VulnDbUpdateOptions
right VulnDbUpdateOptions

Returns

bool