{"id":20345468,"url":"https://github.com/linsir/lua-resty-ceph","last_synced_at":"2025-06-28T18:05:06.158Z","repository":{"id":87285311,"uuid":"60074286","full_name":"linsir/lua-resty-ceph","owner":"linsir","description":"A simple Lua wrapper for ceph with s3 and swift based on OpenResty.","archived":false,"fork":false,"pushed_at":"2016-11-03T09:02:53.000Z","size":20,"stargazers_count":21,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T00:41:44.572Z","etag":null,"topics":["ceph","ngx-lua","openresty"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linsir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-05-31T09:03:47.000Z","updated_at":"2024-10-08T13:34:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"aafd5adc-c345-4064-8254-dcf6cab627d4","html_url":"https://github.com/linsir/lua-resty-ceph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/linsir/lua-resty-ceph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsir%2Flua-resty-ceph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsir%2Flua-resty-ceph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsir%2Flua-resty-ceph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsir%2Flua-resty-ceph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linsir","download_url":"https://codeload.github.com/linsir/lua-resty-ceph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsir%2Flua-resty-ceph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262473845,"owners_count":23316892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ceph","ngx-lua","openresty"],"created_at":"2024-11-14T22:08:37.487Z","updated_at":"2025-06-28T18:05:06.153Z","avatar_url":"https://github.com/linsir.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lua-resty-ceph\n\nA simple Lua wrapper for ceph with s3 and swift based on OpenResty.\n\nMore: \n\n1. \u003chttp://docs.ceph.org.cn/radosgw/s3/\u003e\n2. \u003chttp://docs.ceph.org.cn/radosgw/swift/\u003e\n\n\n# API\n\n* [new](#new)\n* [get_all_buckets](#get_all_buckets)\n* [create_bucket](#create_bucket)\n* [del_bucket](#del_bucket)\n* [get_all_buckets](#get_all_buckets)\n* [get_all_objs](#get_all_objs)\n* [get_buckets_location](#get_buckets_location)\n* [get_buckets_acl](#get_buckets_acl)\n* [create_obj](#create_obj)\n* [get_obj](#get_obj)\n* [del_obj](#del_obj)\n* [check_for_existance](#check_for_existance)\n* [get_obj_acl](#get_obj_acl)\n* [set_obj_acl](#set_obj_acl)\n\n\n## Synopsis\n\n``` lua\nlocal cephs3 = require(\"resty.ceph.s3\")\nlocal app = cephs3:new(config.access_key, config.secret_key, config.host)\n\nlocal data = app:create_bucket(bucket)\nngx.say(data)\napp:get_all_objs(bucket)\n    \n```\n\n# Usage\n\n## new\n\n    local app = cephs3:new(access_key, secret_key, host)\n\n## get_all_buckets\n\n    app:get_all_buckets()\n\n## create_bucket\n\n    app:create_bucket(bucket, acl)\n\n## del_bucket\n\n    app:del_bucket(bucket)\n\n## get_all_buckets\n\n    app:get_all_buckets()\n\n## get_all_objs\n\n    app:get_all_objs(bucket)\n    app:get_all_objs(bucket, 'marker=3\u0026max-keys=25')\n\n## get_buckets_location\n\n    app:get_buckets_location(bucket)\n\n## get_buckets_acl(bucket)\n\n    app:get_buckets_acl(bucket)\n\n## create_obj\n\n    app:create_obj(bucket, file, content)\n\n## del_obj\n\n    app:del_obj(bucket, file)\n\n## get_obj\n\n    app:get_obj(bucket, file)\n\n## check_for_existance\n\n    app:check_for_existance(bucket, file)\n\n## get_obj_acl\n\n    app:get_obj_acl(bucket, file)\n\n## set_obj_acl\n\n    app:set_obj_acl(bucket, file)\n\n# TODO\n\n* Upload operations.\n* Simpe wrapper based on  **Lua-rados** \u003chttps://github.com/noahdesu/lua-rados\u003e.\n\n# Author\n\nLinsir: \u003chttps://github.com/linsir\u003e\n\n\n# Licence\n\nBSD license.\n\nAll rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinsir%2Flua-resty-ceph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinsir%2Flua-resty-ceph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinsir%2Flua-resty-ceph/lists"}