Class Secrets
Client used to interact with the Qarnot secrets API.
Assembly: QarnotSDK.dll
Syntax
Methods
CreateSecretAsync<T>(string, T, CancellationToken)
Create a new secret at key
with a value of value
Declaration
public Task<string> CreateSecretAsync<T>(string key, T value, CancellationToken ct = default)
Parameters
Returns
Type Parameters
CreateSecretRawAsync(string, string, CancellationToken)
Create a new secret at key
with a value of value
Declaration
public Task<string> CreateSecretRawAsync(string key, string value, CancellationToken ct = default)
Parameters
Returns
DeleteSecretAsync(string, CancellationToken)
Declaration
public Task DeleteSecretAsync(string key, CancellationToken ct = default)
Parameters
Returns
GetSecretAsync<T>(string, CancellationToken)
Retrieve the value of the secret with the key key
and
deserialize it from JSON to an instance of
Declaration
public Task<T> GetSecretAsync<T>(string key, CancellationToken ct = default)
Parameters
Returns
Type Parameters
GetSecretRawAsync(string, CancellationToken)
Retrieve the value of the secret with the key key
Declaration
public Task<string> GetSecretRawAsync(string key, CancellationToken ct = default)
Parameters
Returns
ListSecretsAsync(string, bool, CancellationToken)
List all the secrets starting with prefix
Declaration
public Task<IEnumerable<string>> ListSecretsAsync(string prefix = "", bool recursive = false, CancellationToken ct = default)
Parameters
Returns
UpdateSecretAsync<T>(string, T, CancellationToken)
Update the secret at key
with a new value of value
Declaration
public Task UpdateSecretAsync<T>(string key, T value, CancellationToken ct = default)
Parameters
Returns
Type Parameters
UpdateSecretRawAsync(string, string, CancellationToken)
Update the secret at key
with a new value of value
Declaration
public Task UpdateSecretRawAsync(string key, string value, CancellationToken ct = default)
Parameters
Returns