SecretFormCounts
Namespace: Meshmakers.Octo.Runtime.Contracts.Secrets
Counts of Secret values per stored form. Mutable while a sweep runs, read-only for consumers.
public sealed class SecretFormCounts
Inheritance Object → SecretFormCounts
Properties
NotSet
Slots without a value.
public long NotSet { get; private set; }
Property Value
Placeholder
Legacy string slots with a placeholder or "".
public long Placeholder { get; private set; }
Property Value
Plaintext
Legacy string slots with clear text.
public long Plaintext { get; private set; }
Property Value
EncV1
Legacy string slots with an enc:v1 envelope.
public long EncV1 { get; private set; }
Property Value
EncV2
enc:v2 values with a known key id (all key ids together).
public long EncV2 { get; private set; }
Property Value
EncV2ByKeyId
enc:v2 values with a known key id, per key id.
public IReadOnlyDictionary<string, long> EncV2ByKeyId { get; }
Property Value
IReadOnlyDictionary<String, Int64>
UnknownKeyId
enc:v2 values whose key id is not in the key ring.
public long UnknownKeyId { get; private set; }
Property Value
UnknownKeyIdByKeyId
enc:v2 values whose key id is not in the key ring, per key id.
public IReadOnlyDictionary<string, long> UnknownKeyIdByKeyId { get; }
Property Value
IReadOnlyDictionary<String, Int64>
Failed
Values the sweep could not process (decrypt failed, rewrite failed, unexpected value type). Counted in addition to their form.
public long Failed { get; private set; }
Property Value
Total
All classified slots (failures are counted in their form as well and not added again).
public long Total { get; }
Property Value
Constructors
SecretFormCounts()
public SecretFormCounts()
Methods
Add(SecretValueForm, String)
Counts one value of the given form.
public void Add(SecretValueForm form, string keyId)
Parameters
form SecretValueForm
The form
keyId String
Key id for SecretValueForm.EncV2 and SecretValueForm.UnknownKeyId
AddFailure()
Counts one failed value.
public void AddFailure()