tachyon-drive-blob-storage
v2.0.0
Published
Azure Blob storage driver implementation
Readme
tachyon-drive-blob-storage
Azure Blob storage driver implementation
Initialize simple JSON Azure Blob storage driver
const blockBlobClient = BlobServiceClient.fromConnectionString(connectionString)
.getContainerClient("container")
.getBlockBlobClient("store.json");
const driver = new AzureBlobStorageDriver(
{ name: "AzureBlobStorageDriver", blockBlobClient },
bufferSerializer,
);Initialize crypt processor with JSON Azure Blob storage driver
const blockBlobClient = BlobServiceClient.fromConnectionString(connectionString)
.getContainerClient("container")
.getBlockBlobClient("store.aes");
const processor = new CryptoBufferProcessor(Buffer.from("some-secret-key"));
const driver = new AzureBlobStorageDriver(
{ name: "CryptAzureBlobStorageDriver", blockBlobClient },
bufferSerializer,
processor,
);