API Docs for: 0.9.0
Show:

KeyValueStorageAdapter Class

Key-Value storage adapter

Constructor

KeyValueStorageAdapter

(
  • options
)

Parameters:

Methods

_blobImage

(
  • image
)
Promise private

Saves an image to a blob and returns a promise for it

Parameters:

  • image PNGImage

Returns:

Promise:

With {Buffer} Blob

_bucketKeyFilter

(
  • key
)
Boolean private

Key filter for bucket keys

Parameters:

Returns:

_getApprovedScreenBucket

(
  • [id]
)
String private

Gets the approved-screen bucket

Parameters:

Returns:

_getBuildScreenBucket

(
  • [id]
)
String private

Gets the build-screen bucket

Parameters:

Returns:

_getCurrentApprovedScreenBucket

(
  • [id]
)
String private

Gets the current approved-screen bucket

Parameters:

Returns:

_getHighlightScreenBucket

(
  • [id]
)
String private

Gets the highlight-screen bucket

Parameters:

Returns:

_loadImage

(
  • blob
)
Promise private

Loads an image blob and returns a promise for it

Parameters:

  • blob Buffer

Returns:

Promise:

With {PNGImage} Image

_prepareBucket

() Promise private

Prepare a bucket

Returns:

Promise:

_prepareBuildBucket

() Promise private

Prepare the build bucket

Returns:

Promise:

_prepareCompanyBucket

() Promise private

Prepare the companies bucket

Returns:

Promise:

_prepareDepartmentBucket

() Promise private

Prepare the departments bucket

Returns:

Promise:

_prepareJobBucket

() Promise private

Prepare the jobs bucket

Returns:

Promise:

_prepareProjectBucket

() Promise private

Prepare the projects bucket

Returns:

Promise:

archiveApprovedScreen

(
  • name
  • image
)
Promise

Archives a specific approved screen

Parameters:

  • name String

    Name of approved screen

  • image PNGImage

    Screen to archive

Returns:

Promise:

archiveBuildScreen

(
  • name
  • image
)
Promise

Archives a specific build screen

Parameters:

  • name String

    Name of build screen

  • image PNGImage

    Screen to archive

Returns:

Promise:

archiveCurrentApprovedScreen

(
  • name
  • image
)
Promise

Archives a specific currently approved screen

Parameters:

  • name String

    Name of approved screen

  • image PNGImage

    Screen to archive

Returns:

Promise:

archiveHighlightScreen

(
  • name
  • image
)
Promise

Archives a specific highlight screen

Parameters:

  • name String

    Name of highlight screen

  • image PNGImage

    Screen to archive

Returns:

Promise:

getApprovedScreen

(
  • name
)
Promise

Gets a specific approved screen

Parameters:

  • name String

    Name of approved screen

Returns:

Promise:

With {PNGImage} Approved screen

getApprovedScreenNames

() Promise

Gets a list of approve screen names

Returns:

Promise:

With {string[]} List of approved screen names

getBuildScreen

(
  • name
)
Promise

Gets a specific build screen

Parameters:

  • name String

    Name of build screen

Returns:

Promise:

With {PNGImage}

getBuildScreenNames

() Promise

Gets a list of build screen names

Returns:

Promise:

With {string[]} List of build screen names

getCurrentApprovedScreen

(
  • name
)
Promise

Gets a specific currently approved screen

Parameters:

  • name String

    Name of approved screen

Returns:

Promise:

With {PNGImage} Approved screen

getCurrentApprovedScreenNames

() Promise

Gets a list of currently approve screen names

Returns:

Promise:

With {string[]} List of approved screen names

getHighlightScreen

(
  • name
)
Promise

Gets a specific highlight screen

Parameters:

  • name String

    Name of build screen

Returns:

Promise:

With {PNGImage} Build screen

getHighlightScreenNames

() Promise

Gets a list of build highlight names

Returns:

Promise:

With {string[]} List of build screen names

getPromise

() Promise

Gets the source-adapter promise

Returns:

Promise:

initialize

()

Initializes the source-adapter

setBuild

(
  • build
)

Sets the build information

Parameters:

setPromise

(
  • promise
)

Sets the promise

Parameters:

  • promise Promise

Properties

TYPE

String

Type of class