KeyValueStorageAdapter Class
Key-Value storage adapter
Constructor
Item Index
Methods
- _blobImage
- _bucketKeyFilter
- _getApprovedScreenBucket
- _getBuildScreenBucket
- _getCurrentApprovedScreenBucket
- _getHighlightScreenBucket
- _loadImage
- _prepareBucket
- _prepareBuildBucket
- _prepareCompanyBucket
- _prepareDepartmentBucket
- _prepareJobBucket
- _prepareProjectBucket
- archiveApprovedScreen
- archiveBuildScreen
- archiveCurrentApprovedScreen
- archiveHighlightScreen
- getApprovedScreen
- getApprovedScreenNames
- getBuildScreen
- getBuildScreenNames
- getCurrentApprovedScreen
- getCurrentApprovedScreenNames
- getHighlightScreen
- getHighlightScreenNames
- getPromise
- initialize
- setBuild
- setPromise
Properties
Methods
_blobImage
-
image
Saves an image to a blob and returns a promise for it
Parameters:
-
image
PNGImage
Returns:
With {Buffer} Blob
_getApprovedScreenBucket
-
[id]
Gets the approved-screen bucket
Parameters:
-
[id]
String optional
Returns:
_getBuildScreenBucket
-
[id]
Gets the build-screen bucket
Parameters:
-
[id]
String optional
Returns:
_getCurrentApprovedScreenBucket
-
[id]
Gets the current approved-screen bucket
Parameters:
-
[id]
String optional
Returns:
_getHighlightScreenBucket
-
[id]
Gets the highlight-screen bucket
Parameters:
-
[id]
String optional
Returns:
_loadImage
-
blob
Loads an image blob and returns a promise for it
Parameters:
-
blob
Buffer
Returns:
With {PNGImage} Image
_prepareBucket
()
Promise
private
Prepare a bucket
Returns:
_prepareBuildBucket
()
Promise
private
Prepare the build bucket
Returns:
_prepareCompanyBucket
()
Promise
private
Prepare the companies bucket
Returns:
_prepareDepartmentBucket
()
Promise
private
Prepare the departments bucket
Returns:
_prepareJobBucket
()
Promise
private
Prepare the jobs bucket
Returns:
_prepareProjectBucket
()
Promise
private
Prepare the projects bucket
Returns:
archiveApprovedScreen
-
name
-
image
Archives a specific approved screen
Parameters:
-
name
StringName of approved screen
-
image
PNGImageScreen to archive
Returns:
archiveBuildScreen
-
name
-
image
Archives a specific build screen
Parameters:
-
name
StringName of build screen
-
image
PNGImageScreen to archive
Returns:
archiveCurrentApprovedScreen
-
name
-
image
Archives a specific currently approved screen
Parameters:
-
name
StringName of approved screen
-
image
PNGImageScreen to archive
Returns:
archiveHighlightScreen
-
name
-
image
Archives a specific highlight screen
Parameters:
-
name
StringName of highlight screen
-
image
PNGImageScreen to archive
Returns:
getApprovedScreen
-
name
Gets a specific approved screen
Parameters:
-
name
StringName of approved screen
Returns:
With {PNGImage} Approved screen
getApprovedScreenNames
()
Promise
Gets a list of approve screen names
Returns:
With {string[]} List of approved screen names
getBuildScreen
-
name
Gets a specific build screen
Parameters:
-
name
StringName of build screen
Returns:
With {PNGImage}
getBuildScreenNames
()
Promise
Gets a list of build screen names
Returns:
With {string[]} List of build screen names
getCurrentApprovedScreen
-
name
Gets a specific currently approved screen
Parameters:
-
name
StringName of approved screen
Returns:
With {PNGImage} Approved screen
getCurrentApprovedScreenNames
()
Promise
Gets a list of currently approve screen names
Returns:
With {string[]} List of approved screen names
getHighlightScreen
-
name
Gets a specific highlight screen
Parameters:
-
name
StringName of build screen
Returns:
With {PNGImage} Build screen
getHighlightScreenNames
()
Promise
Gets a list of build highlight names
Returns:
With {string[]} List of build screen names
getPromise
()
Promise
Gets the source-adapter promise
Returns:
initialize
()
Initializes the source-adapter
setPromise
-
promise
Sets the promise
Parameters:
-
promise
Promise