All Projects → fsouza → Fake Gcs Server

fsouza / Fake Gcs Server

Licence: bsd-2-clause
Google Cloud Storage emulator & testing library.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Fake Gcs Server

Docker Android
Android in docker solution with noVNC supported and video recording
Stars: ✭ 4,042 (+1179.11%)
Mutual labels:  cloud, gcp, emulator
gcp-storage-emulator
Local emulator for Google Cloud Storage
Stars: ✭ 43 (-86.39%)
Mutual labels:  emulator, storage, gcp
Infracost
Cloud cost estimates for Terraform in pull requests💰📉 Love your cloud bill!
Stars: ✭ 4,505 (+1325.63%)
Mutual labels:  cloud, gcp, google
Fsfirestore
Functional F# library to access Firestore database hosted on Google Cloud Platform (GCP) or Firebase.
Stars: ✭ 22 (-93.04%)
Mutual labels:  cloud, gcp, google
Cloudprober
An active monitoring software to detect failures before your customers do.
Stars: ✭ 1,269 (+301.58%)
Mutual labels:  cloud, gcp, google
Drive
☁️ A distributed cloud based lazy drive to files integrated with Dropbox, Google Drive.
Stars: ✭ 36 (-88.61%)
Mutual labels:  cloud, google, storage
Gifee
Google's Infrastructure for Everyone Else
Stars: ✭ 370 (+17.09%)
Mutual labels:  cloud, gcp, google
Ccat
Cloud Container Attack Tool (CCAT) is a tool for testing security of container environments.
Stars: ✭ 300 (-5.06%)
Mutual labels:  cloud, gcp, google
Laravel Google Drive Demo
Laravel & Google Drive Storage - Demo project with Laravel 5.4
Stars: ✭ 299 (-5.38%)
Mutual labels:  cloud, google, storage
Engine
Deploy your apps on any Cloud provider in just a few seconds
Stars: ✭ 1,132 (+258.23%)
Mutual labels:  cloud, gcp
Sia
Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
Stars: ✭ 2,731 (+764.24%)
Mutual labels:  cloud, storage
My Links
Knowledge seeks no man
Stars: ✭ 311 (-1.58%)
Mutual labels:  cloud, gcp
Google Cloud Cpp
C++ Client Libraries for Google Cloud Services
Stars: ✭ 233 (-26.27%)
Mutual labels:  cloud, google
Cdndrive
☁️ CDNDrive = BiliDrive + SuperBed,支持任意文件的全速上传与下载
Stars: ✭ 310 (-1.9%)
Mutual labels:  cloud, storage
Cloud
The TensorFlow Cloud repository provides APIs that will allow to easily go from debugging and training your Keras and TensorFlow code in a local environment to distributed training in the cloud.
Stars: ✭ 229 (-27.53%)
Mutual labels:  cloud, gcp
Arozos
General purposed Web Desktop Operating Platform / OS for Raspberry Pis, Now written in Go!
Stars: ✭ 252 (-20.25%)
Mutual labels:  cloud, storage
Microservices On Cloud Kubernetes
Microservices demo application on cloud-hosted Kubernetes cluster
Stars: ✭ 213 (-32.59%)
Mutual labels:  cloud, gcp
esop
Cloud-enabled backup and restore tool for Apache Cassandra
Stars: ✭ 40 (-87.34%)
Mutual labels:  storage, gcp
Cloudblock
Cloudblock automates deployment of secure ad-blocking for all of your devices - even when mobile. Step-by-step text and video guides included! Compatible clouds include AWS, Azure, Google Cloud, and Oracle Cloud. Cloudblock deploys Wireguard VPN, Pi-Hole DNS Ad-blocking, and DNS over HTTPS in a cloud provider - or locally - using Terraform and Ansible.
Stars: ✭ 257 (-18.67%)
Mutual labels:  cloud, gcp
Arvados
An open source platform for managing and analyzing biomedical big data
Stars: ✭ 274 (-13.29%)
Mutual labels:  cloud, gcp

fake-gcs-server

Build Status GoDoc

fake-gcs-server provides an emulator for Google Cloud Storage API. It can be used as a library in Go projects and/or as a standalone binary/Docker image.

The library is available inside the package github.com/fsouza/fake-gcs-server/fakestorage and can be used from within test suites in Go package. The emulator is available as a binary that can be built manually, downloaded from the releases page or pulled from Docker Hub (docker pull fsouza/fake-gcs-server).

Using the emulator in Docker

You can stub/mock Google Cloud Storage as a standalone server (like the datastore/pubsub emulators) which is ideal for integration tests and/or tests in other languages you may want to run the fake-gcs-server inside a Docker container:

docker run -d --name fake-gcs-server -p 4443:4443 fsouza/fake-gcs-server

Preload data

In case you want to preload some data in fake-gcs-server just mount a folder in the container at /data:

docker run -d --name fake-gcs-server -p 4443:4443 -v ${PWD}/examples/data:/data fsouza/fake-gcs-server

Where the content of ${PWD}/examples/data is something like:

.
└── sample-bucket
    └── some_file.txt

To make sure everything works as expected you can execute these commands:

curl --insecure https://0.0.0.0:4443/storage/v1/b
{"kind":"storage#buckets","items":[{"kind":"storage#bucket","id":"sample-bucket","name":"sample-bucket"}],"prefixes":null}

curl --insecure https://0.0.0.0:4443/storage/v1/b/sample-bucket/o
{"kind":"storage#objects","items":[{"kind":"storage#object","name":"some_file.txt","id":"sample-bucket/some_file.txt","bucket":"sample-bucket","size":"33"}],"prefixes":[]}

This will result in one bucket called sample-bucket containing one object called some_file.txt.

Client library examples

For examples using the Python, Node.js and Go clients, check out the examples directory.

Building the image locally

You may use docker build to build the image locally instead of pulling it from Docker Hub:

docker build -t fsouza/fake-gcs-server .
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].