feat(azure): implement Blob, Queue and File Storage operations#80
Open
hariram4862 wants to merge 11 commits intoc2siorg:mainfrom
Open
feat(azure): implement Blob, Queue and File Storage operations#80hariram4862 wants to merge 11 commits intoc2siorg:mainfrom
hariram4862 wants to merge 11 commits intoc2siorg:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: This PR builds on top of the existing Azure VM and networking implementation (#48), the VM Scale Set implementation (#50), the Azure Container Instances implementation (#52), the Azure Kubernetes Service implementation (#57), the Azure Functions implementation (#60), and the Azure networking services implementation (#78 ).
Once those PRs are merged, this PR will only contain the Azure storage services changes.
Closes #79
Summary
This PR adds support for Azure Storage services in RustCloud.
The implementation extends RustCloud's Azure capabilities by adding support for Azure Blob Storage, Queue Storage, and File Storage.
Azure storage container operations were implemented previously (#34). This PR extends Blob Storage support by adding blob-level operations and also introduces Queue Storage and File Storage support.
Implemented Services
Implemented Operations
Blob Storage Operations
Container operations already implemented (#34):
Blob operations added in this PR:
Queue Storage Operations
File Storage Operations
Methodology
Azure Storage resources are managed using the Azure Storage REST API.
Authentication is implemented using Azure Storage Shared Key authentication, where the Storage Account Name and Storage Account Key are used to generate the authorization header for each request.
The authentication logic is implemented in:
src/azure/azure_apis/auth/azure_storage_auth.rsThis module generates the required Shared Key Authorization headers used by Azure Blob, Queue, and File Storage REST APIs.
Environment Variables
Before running tests, set the following environment variables.
Linux/macOS:
Windows PowerShell:
Running Tests
Blob Storage
Queue Storage
File Storage
Notes
Tests assume the Azure storage account has sufficient permissions to create and manage storage resources.