[asterisk-dev] [Code Review] 2715: Bucket: A generic file and directory API

Joshua Colp reviewboard at asterisk.org
Tue Jul 30 13:37:58 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2715/
-----------------------------------------------------------

Review request for Asterisk Developers.


Repository: Asterisk


Description
-------

Bucket is a generic file and directory API implemented as a thin wrapper over sorcery. It decouples the storage of files from the backend and provides the ability to set metadata on file themselves. What it means to have files in a "bucket" and details about the files themselves is left up to the user of the bucket API. It enforces no restrictions. Identification of things is done using URIs, which include a scheme. Modules implement specific schemes (local, for example) and take care of the implementation specific aspect of it. The ability to get bucket and file information in a JSON format is provided, as is the ability to copy and move files.


Diffs
-----

  /trunk/include/asterisk/bucket.h PRE-CREATION 
  /trunk/include/asterisk/config_options.h 395727 
  /trunk/main/asterisk.c 395727 
  /trunk/main/bucket.c PRE-CREATION 
  /trunk/main/config_options.c 395727 
  /trunk/tests/test_bucket.c PRE-CREATION 

Diff: https://reviewboard.asterisk.org/r/2715/diff/


Testing
-------

Ran unit tests, confirmed functional. Tweaked this to purposely break and confirmed they broke.


Thanks,

Joshua Colp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130730/cc5d6349/attachment.htm>


More information about the asterisk-dev mailing list