Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 9a3e47511ab9faac599b8f085a1b755ec941e49c)
Signed-off-by: Tibor Vass <tibor@docker.com>
... | ... |
@@ -60,7 +60,7 @@ clone git golang.org/x/net 2beffdc2e92c8a3027590f898fe88f69af48a3f8 https://gith |
60 | 60 |
clone git golang.org/x/sys eb2c74142fd19a79b3f237334c7384d5167b1b46 https://github.com/golang/sys.git |
61 | 61 |
clone git github.com/docker/go-units 651fc226e7441360384da338d0fd37f2440ffbe3 |
62 | 62 |
clone git github.com/docker/go-connections fa2850ff103453a9ad190da0df0af134f0314b3d |
63 |
-clone git github.com/docker/engine-api c977588a28fa81fbbb06c295e936853cef37cf27 |
|
63 |
+clone git github.com/docker/engine-api ebb728a1346926edc2ad9418f9b6045901810b20 |
|
64 | 64 |
clone git github.com/RackSec/srslog 259aed10dfa74ea2961eddd1d9847619f6e98837 |
65 | 65 |
clone git github.com/imdario/mergo 0.2.1 |
66 | 66 |
|
... | ... |
@@ -13,8 +13,8 @@ import ( |
13 | 13 |
func (cli *Client) SwarmUpdate(ctx context.Context, version swarm.Version, swarm swarm.Spec, flags swarm.UpdateFlags) error { |
14 | 14 |
query := url.Values{} |
15 | 15 |
query.Set("version", strconv.FormatUint(version.Index, 10)) |
16 |
- query.Set("rotate_worker_token", fmt.Sprintf("%v", flags.RotateWorkerToken)) |
|
17 |
- query.Set("rotate_manager_token", fmt.Sprintf("%v", flags.RotateManagerToken)) |
|
16 |
+ query.Set("rotateWorkerToken", fmt.Sprintf("%v", flags.RotateWorkerToken)) |
|
17 |
+ query.Set("rotateManagerToken", fmt.Sprintf("%v", flags.RotateManagerToken)) |
|
18 | 18 |
resp, err := cli.post(ctx, "/swarm/update", query, swarm, nil) |
19 | 19 |
ensureReaderClosed(resp) |
20 | 20 |
return err |
... | ... |
@@ -3,14 +3,16 @@ package events |
3 | 3 |
const ( |
4 | 4 |
// ContainerEventType is the event type that containers generate |
5 | 5 |
ContainerEventType = "container" |
6 |
+ // DaemonEventType is the event type that daemon generate |
|
7 |
+ DaemonEventType = "daemon" |
|
6 | 8 |
// ImageEventType is the event type that images generate |
7 | 9 |
ImageEventType = "image" |
8 |
- // VolumeEventType is the event type that volumes generate |
|
9 |
- VolumeEventType = "volume" |
|
10 | 10 |
// NetworkEventType is the event type that networks generate |
11 | 11 |
NetworkEventType = "network" |
12 |
- // DaemonEventType is the event type that daemon generate |
|
13 |
- DaemonEventType = "daemon" |
|
12 |
+ // PluginEventType is the event type that plugins generate |
|
13 |
+ PluginEventType = "plugin" |
|
14 |
+ // VolumeEventType is the event type that volumes generate |
|
15 |
+ VolumeEventType = "volume" |
|
14 | 16 |
) |
15 | 17 |
|
16 | 18 |
// Actor describes something that generates events, |
... | ... |
@@ -282,7 +282,7 @@ type ExecStartCheck struct { |
282 | 282 |
type HealthcheckResult struct { |
283 | 283 |
Start time.Time // Start is the time this check started |
284 | 284 |
End time.Time // End is the time this check ended |
285 |
- ExitCode int // ExitCode meanings: 0=healthy, 1=unhealthy, 2=starting, else=error running probe |
|
285 |
+ ExitCode int // ExitCode meanings: 0=healthy, 1=unhealthy, 2=reserved (considered unhealthy), else=error running probe |
|
286 | 286 |
Output string // Output from last check |
287 | 287 |
} |
288 | 288 |
|