addLens(pathToLibrary, lens) => Promise
Create a new Lens.
| Param | Type | Description |
|---|---|---|
| pathToLibrary | String |
The path to the Lens library file. |
| lens | Object |
Optional object to override what the library specifies. |
Returns a Bluebird Promise which resolves to the newly created Lens.
deleteLens(name) => Promise
Delete the specified Lens.
| Param | Type | Description |
|---|---|---|
| name | String |
The name of the Lens to delete. |
ReturnsPromise | A promise which resolves to the deleted Lens.
getLens(name) => Promise
Retrieve the specified Lens.
| Param | Type | Description |
|---|---|---|
| name | String |
The name of the Lens to retrieve. |
Returns a Bluebird Promise which resolves to the specified Lens.
getLenses() => Promise
Retrieve all Lenses.
Returns a Bluebird Promise which resolves to an array of Lenses.