A simple Lua wrapper for ceph with s3 and swift based on OpenResty.
More:
- new
- get_all_buckets
- create_bucket
- del_bucket
- get_all_buckets
- get_all_objs
- get_buckets_location
- get_buckets_acl
- create_obj
- get_obj
- del_obj
- check_for_existance
- get_obj_acl
- set_obj_acl
local cephs3 = require("resty.ceph.s3")
local app = cephs3:new(config.access_key, config.secret_key, config.host)
local data = app:create_bucket(bucket)
ngx.say(data)
app:get_all_objs(bucket)
local app = cephs3:new(access_key, secret_key, host)
app:get_all_buckets()
app:create_bucket(bucket, acl)
app:del_bucket(bucket)
app:get_all_buckets()
app:get_all_objs(bucket)
app:get_all_objs(bucket, 'marker=3&max-keys=25')
app:get_buckets_location(bucket)
app:get_buckets_acl(bucket)
app:create_obj(bucket, file, content)
app:del_obj(bucket, file)
app:get_obj(bucket, file)
app:check_for_existance(bucket, file)
app:get_obj_acl(bucket, file)
app:set_obj_acl(bucket, file)
- Upload operations.
- Simpe wrapper based on Lua-rados https://github.com/noahdesu/lua-rados.
Linsir: https://github.com/linsir
BSD license.
All rights reserved.