leo_s3_endpoint¶
The endpoint operation for S3-API.
References
Description¶
The endpoint operation for S3-API
Function Index¶
checksum/0 | Retrieve checksum of the table. |
create_table/2 | Create endpoint table(mnesia). |
delete_endpoint/1 | Remove a End-Point from the Mnesia or ETS. |
get_endpoints/0 | Retrieve a End-Point from the Mnesia or ETS. |
set_endpoint/1 | Insert a End-Point into the Mnesia or ETS. |
start/2 | Launch or create Mnesia/ETS. |
update_providers/1 | update_providers(slave only). |
Function Details¶
checksum/0¶
checksum() -> {ok, non_neg_integer()} | not_found | {error, any()}
Retrieve checksum of the table
create_table/2¶
create_table(Mode, Nodes) -> ok
- Mode = ram_copies | disc_copies
- Nodes = [atom()]
Create endpoint table(mnesia)
delete_endpoint/1¶
delete_endpoint(EndPoint) -> ok | {error, any()}
- EndPoint = binary()
Remove a End-Point from the Mnesia or ETS
get_endpoints/0¶
get_endpoints() -> {ok, [#endpoint{}]} | not_found | {error, any()}
Retrieve a End-Point from the Mnesia or ETS
set_endpoint/1¶
set_endpoint(EndPoint) -> ok | not_found | {error, any()}
- EndPoint = binary()
Insert a End-Point into the Mnesia or ETS
start/2¶
start(Role, Providers) -> ok
- Role = master | slave
- Providers = [atom()]
Launch or create Mnesia/ETS
update_providers/1¶
update_providers(Providers) -> ok
- Providers = [atom()]
update_providers(slave only)