You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "The semantic version of the progress protocol.",
21
+
"type": "string"
22
+
}
23
+
}
24
+
},
25
+
{
26
+
"description": "An incremental update to a container image layer download",
27
+
"type": "object",
28
+
"required": [
29
+
"bytes",
30
+
"bytes_cached",
31
+
"bytes_total",
32
+
"description",
33
+
"id",
34
+
"steps",
35
+
"steps_cached",
36
+
"steps_total",
37
+
"subtasks",
38
+
"task",
39
+
"type"
40
+
],
41
+
"properties": {
42
+
"bytes": {
43
+
"description": "The number of bytes already fetched.",
44
+
"type": "integer",
45
+
"format": "uint64",
46
+
"minimum": 0.0
47
+
},
48
+
"bytes_cached": {
49
+
"description": "The number of bytes fetched by a previous run.",
50
+
"type": "integer",
51
+
"format": "uint64",
52
+
"minimum": 0.0
53
+
},
54
+
"bytes_total": {
55
+
"description": "Total number of bytes. If zero, then this should be considered \"unspecified\".",
56
+
"type": "integer",
57
+
"format": "uint64",
58
+
"minimum": 0.0
59
+
},
60
+
"description": {
61
+
"description": "A human readable description of the task if i18n is not available.",
62
+
"type": "string"
63
+
},
64
+
"id": {
65
+
"description": "A human and machine readable unique identifier for the task (e.g., the image name). For tasks that only happen once, it can be set to the same value as task.",
66
+
"type": "string"
67
+
},
68
+
"steps": {
69
+
"description": "The initial position of progress.",
70
+
"type": "integer",
71
+
"format": "uint64",
72
+
"minimum": 0.0
73
+
},
74
+
"steps_cached": {
75
+
"description": "The number of steps fetched by a previous run.",
76
+
"type": "integer",
77
+
"format": "uint64",
78
+
"minimum": 0.0
79
+
},
80
+
"steps_total": {
81
+
"description": "The total number of steps (e.g. container image layers, RPMs)",
82
+
"type": "integer",
83
+
"format": "uint64",
84
+
"minimum": 0.0
85
+
},
86
+
"subtasks": {
87
+
"description": "The currently running subtasks.",
88
+
"type": "array",
89
+
"items": {
90
+
"$ref": "#/definitions/SubTaskBytes"
91
+
}
92
+
},
93
+
"task": {
94
+
"description": "A machine readable type (e.g., pulling) for the task (used for i18n and UI customization).",
95
+
"type": "string"
96
+
},
97
+
"type": {
98
+
"type": "string",
99
+
"enum": [
100
+
"ProgressBytes"
101
+
]
102
+
}
103
+
}
104
+
},
105
+
{
106
+
"description": "An incremental update with discrete steps",
107
+
"type": "object",
108
+
"required": [
109
+
"description",
110
+
"id",
111
+
"steps",
112
+
"steps_cached",
113
+
"steps_total",
114
+
"subtasks",
115
+
"task",
116
+
"type"
117
+
],
118
+
"properties": {
119
+
"description": {
120
+
"description": "A human readable description of the task if i18n is not available.",
121
+
"type": "string"
122
+
},
123
+
"id": {
124
+
"description": "A human and machine readable unique identifier for the task (e.g., the image name). For tasks that only happen once, it can be set to the same value as task.",
125
+
"type": "string"
126
+
},
127
+
"steps": {
128
+
"description": "The initial position of progress.",
129
+
"type": "integer",
130
+
"format": "uint64",
131
+
"minimum": 0.0
132
+
},
133
+
"steps_cached": {
134
+
"description": "The number of steps fetched by a previous run.",
135
+
"type": "integer",
136
+
"format": "uint64",
137
+
"minimum": 0.0
138
+
},
139
+
"steps_total": {
140
+
"description": "The total number of steps (e.g. container image layers, RPMs)",
141
+
"type": "integer",
142
+
"format": "uint64",
143
+
"minimum": 0.0
144
+
},
145
+
"subtasks": {
146
+
"description": "The currently running subtasks.",
147
+
"type": "array",
148
+
"items": {
149
+
"$ref": "#/definitions/SubTaskStep"
150
+
}
151
+
},
152
+
"task": {
153
+
"description": "A machine readable type (e.g., pulling) for the task (used for i18n and UI customization).",
154
+
"type": "string"
155
+
},
156
+
"type": {
157
+
"type": "string",
158
+
"enum": [
159
+
"ProgressSteps"
160
+
]
161
+
}
162
+
}
163
+
}
164
+
],
165
+
"definitions": {
166
+
"SubTaskBytes": {
167
+
"description": "An incremental update to e.g. a container image layer download. The first time a given \"subtask\" name is seen, a new progress bar should be created. If bytes == bytes_total, then the subtask is considered complete.",
168
+
"type": "object",
169
+
"required": [
170
+
"bytes",
171
+
"bytesCached",
172
+
"bytesTotal",
173
+
"description",
174
+
"id",
175
+
"subtask"
176
+
],
177
+
"properties": {
178
+
"bytes": {
179
+
"description": "Updated byte level progress",
180
+
"type": "integer",
181
+
"format": "uint64",
182
+
"minimum": 0.0
183
+
},
184
+
"bytesCached": {
185
+
"description": "The number of bytes fetched by a previous run (e.g., zstd_chunked).",
186
+
"type": "integer",
187
+
"format": "uint64",
188
+
"minimum": 0.0
189
+
},
190
+
"bytesTotal": {
191
+
"description": "Total number of bytes",
192
+
"type": "integer",
193
+
"format": "uint64",
194
+
"minimum": 0.0
195
+
},
196
+
"description": {
197
+
"description": "A human readable description of the task if i18n is not available. (e.g., \"OSTree Chunk:\", \"Derived Layer:\")",
198
+
"type": "string"
199
+
},
200
+
"id": {
201
+
"description": "A human and machine readable identifier for the task (e.g., ostree chunk/layer hash).",
202
+
"type": "string"
203
+
},
204
+
"subtask": {
205
+
"description": "A machine readable type for the task (used for i18n). (e.g., \"ostree_chunk\", \"ostree_derived\")",
206
+
"type": "string"
207
+
}
208
+
}
209
+
},
210
+
"SubTaskStep": {
211
+
"description": "Marks the beginning and end of a dictrete step",
212
+
"type": "object",
213
+
"required": [
214
+
"completed",
215
+
"description",
216
+
"id",
217
+
"subtask"
218
+
],
219
+
"properties": {
220
+
"completed": {
221
+
"description": "Starts as false when beginning to execute and turns true when completed.",
222
+
"type": "boolean"
223
+
},
224
+
"description": {
225
+
"description": "A human readable description of the task if i18n is not available. (e.g., \"OSTree Chunk:\", \"Derived Layer:\")",
226
+
"type": "string"
227
+
},
228
+
"id": {
229
+
"description": "A human and machine readable identifier for the task (e.g., ostree chunk/layer hash).",
230
+
"type": "string"
231
+
},
232
+
"subtask": {
233
+
"description": "A machine readable type for the task (used for i18n). (e.g., \"ostree_chunk\", \"ostree_derived\")",
0 commit comments