piaoger / golager

datum lager(datastore) written in golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

golager

lager is "warehouse" in Germany.

logo

Why golager?

golager is datum lager(datastore) written in golang. It's really a headache to store data in different cloud storage providers: aliyun oss, qiniu, aws, local file system, and so on. I want a small library to support them all in one and that's golager.

What's in golager?

    .
    ├── assets
    │   ├── image
    │   └──
    ├── bin
    │   ├── apps
    │   │    └── golang
    │   └── bootstrap
    ├── config
    ├── external
    │   └── src
    │       ├── github.com
    │       ├── rust-advanced
    │       └── rust-introduction
    ├── src
    ├── tests
    └── README.md

functions

  • buckets
  • upload
  • download

how to use

export OSS_ACCESS_KEY_ID=<OSS_ACCESS_KEY_ID>
export OSS_ACCESS_KEY_SECRET=<OSS_ACCESS_KEY_SECRET>
export OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com
./lager-cli oss download  /bucket/key localfile
QINIU_ACCESS_KEY=<QINIU_ACCESS_KEY>
QINIU_SECRET_KEY=<QINIU_SECRET_KEY>
QINIU_DOMAIN=<QINIU_DOMAIN>
./lager-cli qiniu download /bucket/key localfile

references

qshell: qiniu command line tool link

rclone: rsync for cloud storages link

go-kit: go libraries for microservices link

aliyun oss go sdk: link

qiniu go sdk: link

go-ethereum: Makefile & Dockerfile link

About

datum lager(datastore) written in golang


Languages

Language:Go 78.6%Language:Makefile 11.2%Language:Shell 10.2%