localstackmount

command module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

localstackmount

S3 on LocalStack mount by go-fuse

OSX settings

Mac OSX is not supported FUSE.

Install osxfuse below link.

https://osxfuse.github.io/2020/10/05/OSXFUSE-3.11.2.html

WSL settings

Make sure you edit

/etc/fuse.conf and add user_allow_other.

Quick start

# if you want run localstack
# docker-compose up -d

go install github.com/ma91n/localstackmount@latest
localstackmount

# s3 list-buckets (aws --profile local --endpoint-url http://localhost:4566 s3api list-buckets)
ls ~/mount/localstack

# s3 list-objects (aws --profile local --endpoint-url http://localhost:4566 s3api list-objects --bucket <your bucket>)
ls ~/mount/localstack/<your bucket>

# s3 create object as folder
mkdir ~/mount/localstack/<your bucket>/my-folder

# s3 create object
cd ~/mount/localstack/<your bucket>/my-folder/
echo "hello localstackmount" > hello.txt

# s3 get object
cat hello.txt

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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