Similar naming on modules.

Added sourceprovider/destinationprovider to list of collected password fields
This commit is contained in:
Kenneth Skovhede
2026-02-15 10:42:19 +01:00
parent 1acf24a78f
commit 3bc449281a
4 changed files with 6 additions and 4 deletions
@@ -139,7 +139,7 @@ namespace Duplicati.Library.DynamicLoader
/// <summary>
/// Gets a list of loaded SourceProviders, the instances can be used to extract interface information, not used to interact with the SourceProvider.
/// </summary>
public static IRestoreDestinationProviderModule[] ResotreDestinationProviders { get { return _RestoreDestinationProvider.Interfaces; } }
public static IRestoreDestinationProviderModule[] Modules { get { return _RestoreDestinationProvider.Interfaces; } }
/// <summary>
/// Gets a list of keys supported
@@ -139,7 +139,7 @@ namespace Duplicati.Library.DynamicLoader
/// <summary>
/// Gets a list of loaded SourceProviders, the instances can be used to extract interface information, not used to interact with the SourceProvider.
/// </summary>
public static ISourceProviderModule[] SourceProviders { get { return _SourceProviderLoader.Interfaces; } }
public static ISourceProviderModule[] Modules { get { return _SourceProviderLoader.Interfaces; } }
/// <summary>
/// Gets a list of keys supported
@@ -66,6 +66,8 @@ namespace Duplicati.Server.Database
.Concat(CompressionLoader.Modules.SelectMany(x => x.SupportedCommands ?? []))
.Concat(GenericLoader.Modules.SelectMany(x => x.SupportedCommands ?? []))
.Concat(WebLoader.Modules.SelectMany(x => x.SupportedCommands ?? []))
.Concat(SourceProviderLoader.Modules.SelectMany(x => x.SupportedCommands ?? []))
.Concat(RestoreDestinationProviderLoader.Modules.SelectMany(x => x.SupportedCommands ?? []))
.Concat(new Options(new Dictionary<string, string?>()).SupportedCommands)
.Where(x => x.Type == Library.Interface.CommandLineArgument.ArgumentType.Password)
.SelectMany(x => new string[] { x.Name }.Concat(x.Aliases ?? []))
@@ -250,7 +250,7 @@ namespace Duplicati.Server.Serializable
get
{
return
(from n in Library.DynamicLoader.SourceProviderLoader.SourceProviders
(from n in Library.DynamicLoader.SourceProviderLoader.Modules
select new DynamicModule(n))
.Concat(
from n in Library.DynamicLoader.BackendLoader.Backends
@@ -268,7 +268,7 @@ namespace Duplicati.Server.Serializable
get
{
return
(from n in Library.DynamicLoader.RestoreDestinationProviderLoader.ResotreDestinationProviders
(from n in Library.DynamicLoader.RestoreDestinationProviderLoader.Modules
select new DynamicModule(n))
.ToArray();
}