Skip to content

HVC Storage — Configuration & Providers

  • Project: hvc-storage

Store types

Consumers provide a StorageConfig section plus an IConfigProvider that resolves the active store type and connection string at runtime:

Store typeBackend
fileLocalFileSystem (a local path)
azure / azure-storageAzureBlobFileSystem (Azure Blob connection string)
s3 / minioMinioFileSystem (MinIO/S3 connection string)

The HvcStorageFactory.getClientStore() switches on the resolved storeType:

csharp
return storeType switch
{
    "file"          => new LocalFileSystem(config, hashProvider, connectionString),
    "azure"         => new AzureBlobFileSystem(config with { connectionString = connectionString }),
    "azure-storage" => new AzureBlobFileSystem(config with { connectionString = connectionString }),
    "s3"            => new MinioFileSystem(config with { connectionString = connectionString }, hashProvider),
    "minio"         => new MinioFileSystem(config with { connectionString = connectionString }, hashProvider),
    _               => throw new Exception($"Unknown store type: {storeType}")
};

Released under the MIT License.