This repository was archived by the owner on Oct 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathSwarmJoinPostBody.php
186 lines (161 loc) · 5.8 KB
/
SwarmJoinPostBody.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php
declare(strict_types=1);
/*
* This file has been auto generated by Jane,
*
* Do no edit it directly.
*/
namespace Docker\API\Model;
class SwarmJoinPostBody
{
/**
* Listen address used for inter-manager communication if the node gets promoted to manager, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP).
*
* @var string
*/
protected $listenAddr;
/**
* Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible.
*
* @var string
*/
protected $advertiseAddr;
/**
* Address or interface to use for data path traffic (format: `<ip|interface>`), for example, `192.168.1.1`,.
or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr`
is used.
The `DataPathAddr` specifies the address that global scope network drivers will publish towards other
nodes in order to reach the containers running on this node. Using this parameter it is possible to
separate the container data traffic from the management traffic of the cluster.
*
* @var string
*/
protected $dataPathAddr;
/**
* Addresses of manager nodes already participating in the swarm.
*
* @var array
*/
protected $remoteAddrs;
/**
* Secret token for joining this swarm.
*
* @var string
*/
protected $joinToken;
/**
* Listen address used for inter-manager communication if the node gets promoted to manager, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP).
*
* @return string
*/
public function getListenAddr(): ?string
{
return $this->listenAddr;
}
/**
* Listen address used for inter-manager communication if the node gets promoted to manager, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP).
*
* @param string $listenAddr
*
* @return self
*/
public function setListenAddr(?string $listenAddr): self
{
$this->listenAddr = $listenAddr;
return $this;
}
/**
* Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible.
*
* @return string
*/
public function getAdvertiseAddr(): ?string
{
return $this->advertiseAddr;
}
/**
* Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible.
*
* @param string $advertiseAddr
*
* @return self
*/
public function setAdvertiseAddr(?string $advertiseAddr): self
{
$this->advertiseAddr = $advertiseAddr;
return $this;
}
/**
* Address or interface to use for data path traffic (format: `<ip|interface>`), for example, `192.168.1.1`,.
or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr`
is used.
The `DataPathAddr` specifies the address that global scope network drivers will publish towards other
nodes in order to reach the containers running on this node. Using this parameter it is possible to
separate the container data traffic from the management traffic of the cluster.
*
* @return string
*/
public function getDataPathAddr(): ?string
{
return $this->dataPathAddr;
}
/**
* Address or interface to use for data path traffic (format: `<ip|interface>`), for example, `192.168.1.1`,.
or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr`
is used.
The `DataPathAddr` specifies the address that global scope network drivers will publish towards other
nodes in order to reach the containers running on this node. Using this parameter it is possible to
separate the container data traffic from the management traffic of the cluster.
*
* @param string $dataPathAddr
*
* @return self
*/
public function setDataPathAddr(?string $dataPathAddr): self
{
$this->dataPathAddr = $dataPathAddr;
return $this;
}
/**
* Addresses of manager nodes already participating in the swarm.
*
* @return array
*/
public function getRemoteAddrs(): ?array
{
return $this->remoteAddrs;
}
/**
* Addresses of manager nodes already participating in the swarm.
*
* @param array $remoteAddrs
*
* @return self
*/
public function setRemoteAddrs(?array $remoteAddrs): self
{
$this->remoteAddrs = $remoteAddrs;
return $this;
}
/**
* Secret token for joining this swarm.
*
* @return string
*/
public function getJoinToken(): ?string
{
return $this->joinToken;
}
/**
* Secret token for joining this swarm.
*
* @param string $joinToken
*
* @return self
*/
public function setJoinToken(?string $joinToken): self
{
$this->joinToken = $joinToken;
return $this;
}
}