function listBuckets(doneCallback, failCallback) {
    var _this = this;

    return this._db.send(new message.ListBuckets()).then(function (response) {
      return response.entity.map(function (bucket) {
        return _this.new(bucket + '/');
      });
    }).then(doneCallback, failCallback);
  }
/**
   * Lists all the buckets.
   * @param {binding.FileFactory~fileListCallback=} doneCallback The callback is invoked with the listed buckets
   * @param {binding.File~failCallback=} failCallback The callback is invoked if any error has occurred
   * @return {Promise<Array<binding.File>>} The listed buckets.
   */
Lists all the buckets.
@param {binding.FileFactory~fileListCallback=} doneCallback The callback is invoked with the listed buckets
@param {binding.File~failCallback=} failCallback The callback is invoked if any error has occurred
@return {Promise>} The listed buckets.
Lists all the buckets . @param { binding . FileFactory~fileListCallback = } doneCallback The callback is invoked with the listed buckets @param { binding . File~failCallback = } failCallback The callback is invoked if any error has occurred @return { Promise > } The listed buckets .
function listBuckets(doneCallback, failCallback) {
    var _this = this;
    return this._db.send(new message.ListBuckets()).then(function (response) {
      return response.entity.map(function (bucket) {
        return _this.new(bucket + '/');
      });
    }).then(doneCallback, failCallback);
  }
function listBuckets ( doneCallback , failCallback ) { var _this = this ; return this . _db . send ( new message . ListBuckets ( ) ) . then ( function ( response ) { return response . entity . map ( function ( bucket ) { return _this . new ( bucket + '/' ) ; } ) ; } ) . then ( doneCallback , failCallback ) ; }
Lists all the buckets.
Lists all the buckets .