Documentation ¶
Index ¶
- Constants
- type GatewayConfig
- type NetworkConfig
- type NodeConfig
- type TrafficEncapModeType
- func (m TrafficEncapModeType) NeedsEncapToPeer(peerIP net.IP, localIP *net.IPNet) bool
- func (m TrafficEncapModeType) NeedsRoutingToPeer(peerIP net.IP, localIP *net.IPNet) bool
- func (m TrafficEncapModeType) String() string
- func (m TrafficEncapModeType) SupportsEncap() bool
- func (m TrafficEncapModeType) SupportsNoEncap() bool
Constants ¶
View Source
const ( DefaultTunPortName = "tun0" DefaultTunOFPort = 1 HostGatewayOFPort = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayConfig ¶
type GatewayConfig struct { IP net.IP MAC net.HardwareAddr Link string }
func (*GatewayConfig) String ¶
func (g *GatewayConfig) String() string
type NetworkConfig ¶
type NetworkConfig struct { TrafficEncapMode TrafficEncapModeType TunnelType ovsconfig.TunnelType EnableIPSecTunnel bool IPSecPSK string }
User provided network configuration parameters.
type NodeConfig ¶
type NodeConfig struct { Name string PodCIDR *net.IPNet NodeIPAddr *net.IPNet GatewayConfig *GatewayConfig }
Local Node configurations retrieved from K8s API or host networking state.
func (*NodeConfig) String ¶
func (n *NodeConfig) String() string
type TrafficEncapModeType ¶
type TrafficEncapModeType int
const ( TrafficEncapModeEncap TrafficEncapModeType = iota TrafficEncapModeNoEncap TrafficEncapModeHybrid TrafficEncapModeInvalid = -1 )
func GetTrafficEncapModeFromStr ¶
func GetTrafficEncapModeFromStr(str string) (bool, TrafficEncapModeType)
GetTrafficEncapModeFromStr returns true and TrafficEncapModeType corresponding to input string. Otherwise, false and undefined value is returned
func GetTrafficEncapModes ¶
func GetTrafficEncapModes() []TrafficEncapModeType
func (TrafficEncapModeType) NeedsEncapToPeer ¶
NeedsEncapToPeer returns true if Pod traffic to peer Node needs to be encapsulated.
func (TrafficEncapModeType) NeedsRoutingToPeer ¶
NeedsRoutingToPeer returns true if Pod traffic to peer Node needs underlying routing support.
func (TrafficEncapModeType) String ¶
func (m TrafficEncapModeType) String() string
String returns value in string.
func (TrafficEncapModeType) SupportsEncap ¶
func (m TrafficEncapModeType) SupportsEncap() bool
SupportsEncap returns true if TrafficEncapModeType supports encap.
func (TrafficEncapModeType) SupportsNoEncap ¶
func (m TrafficEncapModeType) SupportsNoEncap() bool
SupportsNoEncap returns true if TrafficEncapModeType supports noEncap.
Click to show internal directories.
Click to hide internal directories.