mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add REMOVE
and ORPHANED
to TaskState
This fix tries to address the issue raised in 36142 where there are discrepancies between Swarm API and swagger.yaml. This fix adds two recently added state `REMOVE` and `ORPHANED` to TaskState. This fix fixes 36142. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
40a9d5d24c
commit
a40687f5ac
2 changed files with 6 additions and 0 deletions
|
@ -2804,6 +2804,8 @@ definitions:
|
||||||
- "shutdown"
|
- "shutdown"
|
||||||
- "failed"
|
- "failed"
|
||||||
- "rejected"
|
- "rejected"
|
||||||
|
- "remove"
|
||||||
|
- "orphaned"
|
||||||
|
|
||||||
Task:
|
Task:
|
||||||
type: "object"
|
type: "object"
|
||||||
|
|
|
@ -36,6 +36,10 @@ const (
|
||||||
TaskStateFailed TaskState = "failed"
|
TaskStateFailed TaskState = "failed"
|
||||||
// TaskStateRejected REJECTED
|
// TaskStateRejected REJECTED
|
||||||
TaskStateRejected TaskState = "rejected"
|
TaskStateRejected TaskState = "rejected"
|
||||||
|
// TaskStateRemove REMOVE
|
||||||
|
TaskStateRemove TaskState = "remove"
|
||||||
|
// TaskStateOrphaned ORPHANED
|
||||||
|
TaskStateOrphaned TaskState = "orphaned"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Task represents a task.
|
// Task represents a task.
|
||||||
|
|
Loading…
Reference in a new issue