Documentation
¶
Overview ¶
Package node provides functionality related to the local and remote node addresses
Index ¶
- func AutoComplete() error
- func GetExternalIPv4() net.IP
- func GetHostMasqueradeIPv4() net.IP
- func GetIPsecKeyIdentity() uint8
- func GetIPv4AllocRange() *cidr.CIDR
- func GetIPv4ClusterRange() *net.IPNet
- func GetIPv4Loopback() net.IP
- func GetIPv6() net.IP
- func GetIPv6AllocRange() *cidr.CIDR
- func GetIPv6NodeRange() *cidr.CIDR
- func GetIPv6Router() net.IP
- func GetInternalIPv4() net.IP
- func GetKeyNodeName(cluster, node string) string
- func GetName() string
- func GetNodeAddressing() *models.NodeAddressing
- func InitDefaultPrefix(device string)
- func IsHostIPv4(ip net.IP) bool
- func IsHostIPv6(ip net.IP) bool
- func SetExternalIPv4(ip net.IP)
- func SetIPsecKeyIdentity(id uint8)
- func SetIPv4AllocRange(net *cidr.CIDR)
- func SetIPv4ClusterCidrMaskSize(size int)
- func SetIPv4Loopback(ip net.IP)
- func SetIPv6(ip net.IP)
- func SetIPv6NodeRange(net *net.IPNet) error
- func SetIPv6Router(ip net.IP)
- func SetInternalIPv4(ip net.IP)
- func SetInternalIPv4From(ifaceName string) error
- func SetName(name string)
- func Uninitialize()
- func ValidatePostInit() error
- type Address
- type Identity
- type Node
- func (in *Node) DeepCopy() *Node
- func (in *Node) DeepCopyInto(out *Node)
- func (n *Node) DeepKeyCopy() store.LocalKey
- func (n *Node) Fullname() string
- func (n *Node) GetCiliumInternalIP(ipv6 bool) net.IP
- func (n *Node) GetKeyName() string
- func (n *Node) GetModel() *models.NodeElement
- func (n *Node) GetNodeIP(ipv6 bool) net.IP
- func (n *Node) Identity() Identity
- func (n *Node) IsLocal() bool
- func (n *Node) Marshal() ([]byte, error)
- func (n *Node) PublicAttrEquals(o *Node) bool
- func (n *Node) Unmarshal(data []byte) error
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoComplete ¶ added in v0.15.7
func AutoComplete() error
AutoComplete completes the parts of addressing that can be auto derived
func GetExternalIPv4 ¶ added in v1.5.0
GetExternalIPv4 returns the external IPv4 node address
func GetHostMasqueradeIPv4 ¶ added in v0.15.7
GetHostMasqueradeIPv4 returns the IPv4 address to be used for masquerading any traffic that is being forwarded from the host into the Cilium cluster.
func GetIPsecKeyIdentity ¶ added in v0.15.7
func GetIPsecKeyIdentity() uint8
GetIPsecKeyIdentity returns the IPsec key identity of the node
func GetIPv4AllocRange ¶ added in v0.15.7
GetIPv4AllocRange returns the IPv4 allocation prefix of this node
func GetIPv4ClusterRange ¶ added in v1.5.0
GetIPv4ClusterRange returns the IPv4 prefix of the cluster
func GetIPv4Loopback ¶ added in v0.15.7
GetIPv4Loopback returns the loopback IPv4 address of this node.
func GetIPv6AllocRange ¶ added in v0.15.7
GetIPv6AllocRange returns the IPv6 allocation prefix of this node
func GetIPv6NodeRange ¶ added in v1.5.0
GetIPv6NodeRange returns the IPv6 allocation prefix of this node
func GetIPv6Router ¶ added in v0.15.7
GetIPv6Router returns the IPv6 address of the node
func GetInternalIPv4 ¶ added in v0.15.7
GetInternalIPv4 returns the internal IPv4 node address
func GetKeyNodeName ¶ added in v1.5.0
GetKeyNodeName constructs the API name for the given cluster and node name.
func GetName ¶ added in v1.5.0
func GetName() string
GetName returns the name of the local node. The value returned was either previously set with SetName(), retrieved via `os.Hostname()`, or as a last resort is hardcoded to "localhost".
func GetNodeAddressing ¶ added in v0.15.7
func GetNodeAddressing() *models.NodeAddressing
GetNodeAddressing returns the NodeAddressing model for the local IPs.
func InitDefaultPrefix ¶ added in v0.15.7
func InitDefaultPrefix(device string)
InitDefaultPrefix initializes the node address and allocation prefixes with default values derived from the system. device can be set to the primary network device of the system in which case the first address with global scope will be regarded as the system's node address.
func IsHostIPv4 ¶ added in v1.5.0
func IsHostIPv4(ip net.