You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
499 B
22 lines
499 B
1 year ago
|
using StabilityMatrix.Core.Models;
|
||
|
|
||
|
namespace StabilityMatrix.Core.Services;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Interface for managing secure settings and tokens.
|
||
|
/// </summary>
|
||
|
public interface ISecretsManager
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Load and return the secrets.
|
||
|
/// </summary>
|
||
|
Task<Secrets> LoadAsync();
|
||
|
|
||
|
/// <summary>
|
||
|
/// Load and return the secrets, or save and return a new instance on error.
|
||
|
/// </summary>
|
||
|
Task<Secrets> SafeLoadAsync();
|
||
|
|
||
|
Task SaveAsync(Secrets secrets);
|
||
|
}
|