RiakConnectionAdapter Class
Riak accessor class
Constructor
Item Index
Methods
Properties
Methods
_getUrlWithPath
(
String
private
-
path
Gets the complete url for a path specified
Parameters:
-
path
String
Returns:
_request
(
Promise
private
-
options
Makes a request and returns a promise
Parameters:
Returns:
Promise:
With {object} Response
getBucketKeys
(
Promise
-
bucket
-
[filterFn]
Gets all bucket keys
Returns:
Promise:
With {string[]} Bucket keys
getBuckets
(
Promise
-
[filterFn]
Gets all bucket names
Parameters:
-
[filterFn]
Function optional
Returns:
Promise:
With {string[]} List of buckets
getObject
(
Promise
-
bucket
-
key
Gets an object
Returns:
Promise:
With {Buffer}
getObjectAsJSON
(
Promise
-
bucket
-
key
Gets an object as JSON
Returns:
Promise:
With {*}
getPromise
()
Promise
Gets the source-adapter promise
Returns:
Promise:
hasBucket
(
Promise
-
bucket
-
[filterFn]
Does the instance have a specific bucket?
Returns:
Promise:
With {boolean} Bucket exists?
hasBucketKey
(
Promise
-
bucket
-
key
-
[filterFn]
Does the instance have a specific key in a bucket?
Returns:
Promise:
With {boolean} Bucket key exists?
initialize
()
Initializes the source-adapter
removeAllObjects
(
Promise
-
bucket
Removes all object of a bucket
Parameters:
-
bucket
String
Returns:
Promise:
removeObject
(
Promise
-
bucket
-
key
Removes an object
Returns:
Promise:
setObject
(
Promise
-
bucket
-
key
-
data
-
[mimeType='application/octet-stream']
Sets an object
Parameters:
Returns:
Promise:
setObjectFromJSON
(
Promise
-
bucket
-
key
-
data
Sets an object from JSON
Returns:
Promise:
setPromise
(
-
promise
Sets the promise
Parameters:
-
promise
Promise