| Maintainer: | Jorin Vogel hi@jorin.in |
| Version: | 0.1.3 |
This modue stores lists of documents. A document has the fields title, content and lastEdited.
| Documents | |
| Schemas | |
| documents/ | A text document |
| Functions | |
| privateList | List all private documents. |
| publicList | List all public documents. |
| listMethods | |
| Functions | |
| add | Create a new document |
| set | Update or create a document for a specified id. |
| remove | Remove a document for a specified id. |
| get | Get a document. |
| addRaw | Store a raw document of the specified contentType at shared/. |
| setRaw | Store a raw doccument of the specified contentType at shared/. |
privateList: function( path )
List all private documents.
| path | a pathstring where to scope the client to. |
A privateClient scoped to the given path and extended with the listMethods. It also supports all BaseClient methods
publicList: function( path )
List all public documents.
| path | a pathstring where to scope the client to. |
A publicClient scoped to the given path and extended with the listMethods. It also supports all BaseClient methods
setRaw: function( id, contentType, data )
Store a raw doccument of the specified contentType at shared/.
| id | id of the document to update |
| contentType | the content type of the data (like ‘text/html’). |
| data | the raw data to store. |
A promise, which will be fulfilled with the path of the added document.
List all private documents.
privateList: function( path )
List all public documents.
publicList: function( path )
Create a new document
add: function( doc )
Update or create a document for a specified id.
set: function( id, doc )
Remove a document for a specified id.
remove: function( id )
Get a document.
get: function( id )
Store a raw document of the specified contentType at shared/.
addRaw: function( contentType, data )
Store a raw doccument of the specified contentType at shared/.
setRaw: function( id, contentType, data )