{"modulePath":"github.com/linuxerwang/cilium","version":"v0.10.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package node\n\n## Functions\n\n```go\nfunc DeleteNode(ni Identity)\n```\nDeleteNode remove the node from the nodes' maps.\n\n```go\nfunc UpdateNode(ni Identity, n *Node)\n```\nUpdateNode updates the new node in the nodes' map with the given identity.\n\n## Types\n\n```go\ntype Address struct {\n\tAddressType v1.NodeAddressType\n\tIP          net.IP\n}\n```\nAddress is a node address which contains an IP and the address type.\n\n```go\ntype Identity struct {\n\tName string\n}\n```\nIdentity represents the node identity of a node.\n\n```go\nfunc (nn Identity) String() string\n```\nString returns the string representation on NodeIdentity.\n\n```go\ntype Node struct {\n\tName        string\n\tIPAddresses []Address\n\n\t// IPv4AllocCIDR if set, is the IPv4 address pool out of which the node\n\t// allocates IPs for local endpoints from\n\tIPv4AllocCIDR *net.IPNet\n\n\t// IPv6AllocCIDR if set, is the IPv6 address pool out of which the node\n\t// allocates IPs for local endpoints from\n\tIPv6AllocCIDR *net.IPNet\n}\n```\nNode contains the nodes name, the list of addresses to this address\n\n```go\nfunc GetNode(ni Identity) *Node\n```\nGetNode returns the node with the given identity, if exists, from the nodes map.\n\n```go\nfunc (n *Node) GetNodeIP(ipv6 bool) net.IP\n```\nGetNodeIP returns one of the node's IP addresses available with the following priority: - NodeInternalIP - NodeExternalIP - other IP address type\n\n","path":"github.com/linuxerwang/cilium/pkg/node","name":"node","synopsis":"","isRedistributable":true}
