1 | import Modem = require('docker-modem');
|
2 |
|
3 |
|
4 |
|
5 | export declare class Task {
|
6 | modem: Modem;
|
7 | id: String;
|
8 | data: Object;
|
9 | |
10 |
|
11 |
|
12 |
|
13 |
|
14 | constructor(modem: Modem, id: String);
|
15 | /**
|
16 | * Get low-level information on a task
|
17 | * https://docs.docker.com/engine/reference/api/docker_remote_api_v1.24/#/inspect-a-task
|
18 | * The reason why this module isn't called inspect is because that interferes with the inspect utility of task.
|
19 | * @param {Object} opts Query params in the request (optional)
|
20 | * @param {String} id ID of the task to inspect, if it's not set, use the id of the object (optional)
|
21 | * @return {Promise} Promise return the task
|
22 | */
|
23 | status(opts?: Object): Promise<{}>;
|
24 | }
|
25 | export default class {
|
26 | modem: Modem;
|
27 | |
28 |
|
29 |
|
30 |
|
31 |
|
32 | constructor(modem: Modem);
|
33 | /**
|
34 | * Get a Task object
|
35 | * @param {id} string ID of the secret
|
36 | * @return {Task}
|
37 | */
|
38 | get(id: String): Task;
|
39 | |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | list(opts?: Object): Promise<Array<Task>>;
|
46 | }
|