Class BowireNetworkSettings
- Namespace
- Kuestenlogik.Bowire.Net
- Assembly
- Kuestenlogik.Bowire.dll
One layer of network settings — the global file, a workspace's override, or the host configuration. Every field is optional; a layer only says what it changes, and BowireNetworkPolicy lays them over each other.
public sealed class BowireNetworkSettings
- Inheritance
-
BowireNetworkSettings
- Inherited Members
Remarks
There is deliberately no password field. A proxy password is named by
reference (keyring:service/account or env:VARIABLE) and
resolved when a connection needs it, so no settings file, export or log
ever holds it.
Constructors
BowireNetworkSettings()
public BowireNetworkSettings()
Properties
CaBundle
Extra trusted CA certificates: a path to a PEM bundle, or the PEM text itself.
public string? CaBundle { get; set; }
Property Value
IsEmpty
Whether this layer sets nothing at all.
[JsonIgnore]
public bool IsEmpty { get; }
Property Value
Mode
system, manual or none.
public string? Mode { get; set; }
Property Value
NoProxy
Hosts that bypass the proxy, in BowireNoProxyList forms.
public string? NoProxy { get; set; }
Property Value
ProxyPasswordRef
Where the proxy password comes from: keyring:service/account or env:VARIABLE.
public string? ProxyPasswordRef { get; set; }
Property Value
ProxyUrl
The proxy for manual, e.g. http://proxy.corp:3128. User info in the URL is refused.
public string? ProxyUrl { get; set; }
Property Value
ProxyUser
The proxy user name, when the proxy asks for credentials.
public string? ProxyUser { get; set; }
Property Value
Methods
ModeName(BowireProxyMode)
The settings-file spelling of a mode.
public static string ModeName(BowireProxyMode mode)
Parameters
modeBowireProxyMode
Returns
Normalised()
A copy with blank strings turned into null, and a mode word given
as the proxy URL (--proxy-url system / none) turned into
this layer's mode — so it overrides a lower layer's mode, not its URL.
public BowireNetworkSettings Normalised()
Returns
ParseMode(string?)
Parse a mode name; null for anything unrecognised.
public static BowireProxyMode? ParseMode(string? mode)
Parameters
modestring
Returns
Validate()
What is wrong with this layer, or null. Checked before a layer is
saved, so a file on disk never holds a credential or a mode Bowire
cannot read.
public string? Validate()