mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-24 18:04:57 +00:00
Added some QoL improvements to SecretsManager meant to protect the integrity of the providers dictionary from accidental manipulation Debug statement improvements Improvements to verbosity of console command returns for the SecretsManager
24 lines
580 B
C#
24 lines
580 B
C#
using PepperDash.Core;
|
|
|
|
namespace PepperDash.Essentials.Core
|
|
{
|
|
/// <summary>
|
|
/// All ISecrecretProvider classes must implement this interface.
|
|
/// </summary>
|
|
public interface ISecretProvider : IKeyed
|
|
{
|
|
bool SetSecret(string key, object value);
|
|
|
|
ISecret GetSecret(string key);
|
|
}
|
|
|
|
/// <summary>
|
|
/// interface for delivering secrets in Essentials.
|
|
/// </summary>
|
|
public interface ISecret
|
|
{
|
|
ISecretProvider Provider { get; }
|
|
string Key { get; }
|
|
object Value { get; }
|
|
}
|
|
} |