types

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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
}

func (*Endpoint) Copy

func (e *Endpoint) Copy() *Endpoint

func (*Endpoint) String

func (e *Endpoint) 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.

func (*Network) Copy

func (n *Network) Copy() *Network

type NodeName

type NodeName string

NodeName is the type representing the name of Node.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL