Table of Contents

Interface ISecretStoreScope

Namespace
Fabricator.Core
Assembly
Fabricator.Core.dll

An opened secret store, see Open(ISecretStoreUi, SecretStoreContext). Disposing the scope closes it.

[Interface]
[CompilationMapping(SourceConstructFlags.ObjectType)]
public interface ISecretStoreScope : IDisposable
Inherited Members

Methods

GetSecret(SecretName)

Gets the secret with the passed name.

FSharpAsync<SecureString?> GetSecret(SecretName name)

Parameters

name SecretName

The name of the secret.

Returns

FSharpAsync<SecureString>

A new string instance on every call. The caller owns it and disposes it as soon as it is not needed, so it should not be shared with the store or with other callers. null if the secret was not found in the store.

Remarks

May be called concurrently, so the implementations should be thread-safe. Only called between the scope opening and its disposal.