Struct KeyringReadResult

Namespace
Kuestenlogik.Bowire.Keyring
Assembly
Kuestenlogik.Bowire.Keyring.dll

Outcome of a single Read(KeyringReference).

public readonly struct KeyringReadResult : IEquatable<KeyringReadResult>
Implements
Inherited Members

Constructors

KeyringReadResult(KeyringReadStatus, string?, string?)

Outcome of a single Read(KeyringReference).

public KeyringReadResult(KeyringReadStatus Status, string? Value, string? Error)

Parameters

Status KeyringReadStatus
Value string
Error string

Properties

Error

public string? Error { get; init; }

Property Value

string

Status

public KeyringReadStatus Status { get; init; }

Property Value

KeyringReadStatus

Value

public string? Value { get; init; }

Property Value

string

Methods

Deconstruct(out KeyringReadStatus, out string?, out string?)

public void Deconstruct(out KeyringReadStatus Status, out string? Value, out string? Error)

Parameters

Status KeyringReadStatus
Value string
Error string

Equals(KeyringReadResult)

public bool Equals(KeyringReadResult other)

Parameters

other KeyringReadResult

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Failed(string)

The store errored (tool missing, access denied, locked).

public static KeyringReadResult Failed(string error)

Parameters

error string

Returns

KeyringReadResult

Found(string)

The secret was found.

public static KeyringReadResult Found(string value)

Parameters

value string

Returns

KeyringReadResult

GetHashCode()

public override int GetHashCode()

Returns

int

NotFound()

No entry matched the reference.

public static KeyringReadResult NotFound()

Returns

KeyringReadResult

ToString()

public override string ToString()

Returns

string

Operators

operator ==(KeyringReadResult, KeyringReadResult)

public static bool operator ==(KeyringReadResult left, KeyringReadResult right)

Parameters

left KeyringReadResult
right KeyringReadResult

Returns

bool

operator !=(KeyringReadResult, KeyringReadResult)

public static bool operator !=(KeyringReadResult left, KeyringReadResult right)

Parameters

left KeyringReadResult
right KeyringReadResult

Returns

bool