nats-s3

module
v0.0.0-...-54a6da5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2024 License: Apache-2.0

README

NATS

NATS is a high performance distributed system including at its core a Publish/Subscribe system and a built-in persistent system that enables Streaming, Key-Value Store and Object Store. It is a complete system with built-in authentication/authorization, and multi-tenancy models, with various other features.

alt text

NATS-S3

Most of the modern Object Storage systems such as MinIO, SeaweedFS, JuiceFS, AIStore, etc supports S3 API which simplifies the integration over HTTP. We take the same approach here with NATS-S3 enabling access to NATS Object Store over S3 protocol.

alt text

Usage

Once NATS-S3 is running connected to NATS servers, NATS Object Store can be access over S3 API. The following shows how NATS Object Store is accessible over AWS CLI.

List NATS Buckets
$ aws s3 ls  --endpoint-url=http://localhost:5222
List content of NATS Bucket, bucket1
$ aws s3 ls s3://bucket1 --endpoint-url=http://localhost:5222
List content of NATS Bucket, bucket1
$ aws s3 ls s3://bucket1 --endpoint-url=http://localhost:5222
Upload an object to a NATS bucket
$ aws s3 cp file1.txt s3://bucket1 --endpoint-url=http://localhost:5222
Download an object from a NATS bucket
$ aws s3 cp s3://bucket1/file1.txt file1_copy.txt --endpoint-url=http://localhost:5222

Directories

Path Synopsis
cmd
internal
s3

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL