new ProcessorContext(name, credentials, cbopt)
The context passing through the processors
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
string | The process name. This should be unique and with no special characters as it is used for the temp folder to hold the achive files. | |||||||||||||
credentials |
object | The dropbox credentials
Properties
|
|||||||||||||
cb |
ProcessorContext~callback |
<optional> |
The onComplete callback function |
Properties:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
string | The process name. This should be unique and with no special characters as it is used for the temp folder to hold the achive files | |||||||||||||
date |
date | The date created, used in many cases for the archive name | |||||||||||||
credentials |
object | The dropbox credentials
Properties
|
|||||||||||||
callback |
ProcessorContext~callback |
<optional> |
The onComplete callback function |
Methods
error(err)
Log an error to console
Parameters:
Name | Type | Description |
---|---|---|
err |
string | The error |
log(message)
Log a message to console
Parameters:
Name | Type | Description |
---|---|---|
message |
string | The message |
Type Definitions
callback(err)
Parameters:
Name | Type | Description |
---|---|---|
err |
Error | The error occured |