mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 05:18:00 +00:00
Added backups of all data, restorable on another computer (#1008)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
ab45580473
commit
936043319c
144 files changed
+10417
-424
No files matched your search
@@ -0,0 +1,23 @@
|
||||
namespace AIStudio.Tools.DataBackup;
|
||||
|
||||
/// <summary>
|
||||
/// Tells whether the OS keyring of this computer holds a secret.
|
||||
/// </summary>
|
||||
public interface IStoredSecrets
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether the API key of a provider is stored.
|
||||
/// </summary>
|
||||
/// <param name="secretId">The provider.</param>
|
||||
/// <param name="storeType">The kind of provider.</param>
|
||||
/// <returns>True when the key is stored.</returns>
|
||||
public Task<bool> HasAPIKeyAsync(ISecretId secretId, SecretStoreType storeType);
|
||||
|
||||
/// <summary>
|
||||
/// Whether another secret is stored, e.g., the password of a data source.
|
||||
/// </summary>
|
||||
/// <param name="secretId">What the secret belongs to.</param>
|
||||
/// <param name="storeType">The kind of secret.</param>
|
||||
/// <returns>True when the secret is stored.</returns>
|
||||
public Task<bool> HasSecretAsync(ISecretId secretId, SecretStoreType storeType);
|
||||
}
|
||||
Reference in new issue
Block a user