refactord, tidied up, added icon for storage and a new node for writing buffers to storage files

This commit is contained in:
Peter Svensson
2019-07-02 20:43:04 +02:00
parent ae90a7c225
commit df5b5c8e82
26 changed files with 120 additions and 16 deletions

View File

@ -106,8 +106,25 @@ If the payload defines an optional bucket property, it will override the default
input: {"payload":{"bucket": "xyzzyz123.appspot.com", "path": "myFile.txt"}}
output: Buffer[] containing the binary file contents
npm publish .output: Buffer object containing the binary file contents. Can easily be converted to a string by calling toString() on the Buffer.
## storage-write
Writes the content of JavaScript Buffer object to a file path in a storage bucket.
input:
{
"payload": {
"bucket": "abc.appspot.com", // optional, is otherwise set as node config
"path": "foo/bar/baz.json", // optional, see above
"contents": <Buffer obj>,
"contentType": "application/json" }, // optional
"metadata": { "very":"interesting"}, // optional
"public": true, // optional
"private": false // optional
}
}
# Auth nodes