Skip to content

A multi-cloud file storage library (S3, Google Cloud buckets, Azure blobs) for C#

License

Notifications You must be signed in to change notification settings

yetanotherchris/CloudFileStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

CloudFileStore

A .NET (Core) multi-cloud file storage library (S3, Google Cloud buckets, Azure blobs).

NuGet

About

CloudFileStore is a .NET Core library to try to unify or speed up file management when you're talking to multiple cloud providers. You know...ones apart from AWS! It's designed just for file storage: S3, Google Cloud, Azure Blobs and hopefully more as it develops.

It's not intended to cover every scenario each SDK offers, for example it won't give you metadata. It also bundles every file storage SDK of every cloud provider - it's designed this way (for now at least) on purpose, for applications that need multi-cloud file operations. So in terms of extra DLLs and file size, it's fairly hefty.

Two projects that currently use it are Letmein and Roadkill.

Usage

Right now, the library only supports text file loading and saving, but it will grow over time. Contributions are welcome, all that is asked is you follow the .NET framework guidelines e.g. implicit typed local variables.

var config = new S3Configuration()
{
    BucketName = "some bucket",
    SecretKey = "secret key",
    AccessKey = "access key",
    Region = "eu-west-1"
};
var provider = new S3StorageProvider(config);
await provider.SaveTextFileAsync("myfile.txt", "content here");

string content = await provider.LoadTextFileAsync("myfile.txt");

Full examples can be found in the integration tests.

About

A multi-cloud file storage library (S3, Google Cloud buckets, Azure blobs) for C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages