Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { // GatewayName is the name of the Gateway holding this the Endpoint. GatewayName GatewayName // NodeName is the name of the Node holding this Endpoint. NodeName NodeName // Subnets stores subnets of the nodes managed by the gateway. Subnets []string PrivateIP string PublicIP string PublicPort int UnderNAT bool NATType string Config map[string]string }
type GatewayName ¶
type GatewayName string
GatewayName is the type representing the name of Gateway.
type Network ¶
type Network struct { // LocalEndpoint is the Endpoint of local gateway node. // Equals to nil if there is no local gateway node. LocalEndpoint *Endpoint // LocalNodeInfo stores NodeInfo of all nodes in local gateway. LocalNodeInfo map[NodeName]*v1beta1.NodeInfo // RemoteEndpoints is the Endpoint of all remote gateway nodes, indexed by their gateway name. // Equals to nil if there is no remote gateway node. RemoteEndpoints map[GatewayName]*Endpoint // RemoteNodeInfo stores NodeInfo of all nodes in remote gateways RemoteNodeInfo map[NodeName]*v1beta1.NodeInfo }
Network describes the network topology in the cluster and provides enough information for route driver and vpn driver to set up routing rules and vpn connections.
Click to show internal directories.
Click to hide internal directories.