PortConfig specifies an exposed port which can be addressed using the given name. This can be later queried using a service discovery api or a DNS SRV query. The node port specifies a port that can be used to address this service external to the cluster by sending a connection request to this port t
| 178 | // service external to the cluster by sending a connection |
| 179 | // request to this port to any node on the cluster. |
| 180 | type PortConfig struct { |
| 181 | // Name for the port. If provided the port information can |
| 182 | // be queried using the name as in a DNS SRV query. |
| 183 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 184 | // Protocol for the port which is exposed. |
| 185 | Protocol PortConfig_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=libnetwork.PortConfig_Protocol" json:"protocol,omitempty"` |
| 186 | // The port which the application is exposing and is bound to. |
| 187 | TargetPort uint32 `protobuf:"varint,3,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"` |
| 188 | // PublishedPort specifies the port on which the service is |
| 189 | // exposed on all nodes on the cluster. If not specified an |
| 190 | // arbitrary port in the node port range is allocated by the |
| 191 | // system. If specified it should be within the node port |
| 192 | // range and it should be available. |
| 193 | PublishedPort uint32 `protobuf:"varint,4,opt,name=published_port,json=publishedPort,proto3" json:"published_port,omitempty"` |
| 194 | } |
| 195 | |
| 196 | func (m *PortConfig) Reset() { *m = PortConfig{} } |
| 197 | func (*PortConfig) ProtoMessage() {} |
nothing calls this directly
no outgoing calls
no test coverage detected