new require("taskcluster-client/queue")(options)
HTTP api for the taskcluster queue.
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Object | for the queue. |
[options.queueUrl]. |
String |
- Source:
- See:
Methods
-
amqpConnectionString() → {Promise.<Object>}
-
Fetch the amqp credentials from taskcluster queue and create an amqplib connection.
Returns:
- Type
- Promise.<Object>
-
getTask(taskId) → {Promise.<Object>}
-
Fetch a task definition based on its task id.
Parameters:
Name Type Description taskIdString acquired by posting a task.
Returns:
task definition promise.
- Type
- Promise.<Object>
-
postTask(task) → {Promise.<Object>}
-
Create a new task see the task_factories tutorial for usage with the
taskcluster-client/factory/taskmodule for utilities to construct the task body.Parameters:
Name Type Description taskObject definition.
Returns:
promise response.
- Type
- Promise.<Object>
-
request(method, url) → {Promise.<Object>}
-
Issue a request to the taskcluster queue.
Parameters:
Name Type Description methodString to issue.
urlString for the queue.
Returns:
- Type
- Promise.<Object>
-
url(path, placeholders) → {String}
-
Build a url for the queue (with the appropriate version). Runs string through util.format so placeholders can be used...
Parameters:
Name Type Argument Description pathString to use (can use placeholders in string)
placeholdersArray <optional>
Returns:
complete url for the taskcluster queue.
- Type
- String