Documentation ¶
Index ¶
- Variables
- func Base64AndSha256(input string) string
- func Base64Encode(message []byte) []byte
- func CtLabelDecode(label []byte) (uint64, uint64, uint64)
- func CurrentAgentName() string
- func EncodeNamespacedName(namespacedName coretypes.NamespacedName) string
- func EqualIPs(ips1, ips2 []types.IPAddress) bool
- func EqualStringSlice(list1, list2 []string) bool
- func GenerateControllerID(typeID uint16) uint16
- func GetGwEndpointName(nodeName string) string
- func GetIPFamily(ip string) uint8
- func GetIfaceIP(name string) (net.IP, error)
- func GetIfaceMAC(name string) (net.HardwareAddr, error)
- func GetIfaceMTUByIP(ip string) (int, error)
- func GetLinkByIP(ip string) (netlink.Link, error)
- func GetNodeInternalIP(node *corev1.Node) string
- func GetValidLabelString(label string) string
- func IPCopy(src net.IP) net.IP
- func IsIPv4(ip string) bool
- func IsIPv4Pair(src, dst string) bool
- func IsIPv6(ip string) bool
- func IsIPv6Pair(src, dst string) bool
- func IsK8sLabelDiff(l1, l2 map[string]string) bool
- func IsRuleExist(rule *netlink.Rule, filterMask uint64) (bool, error)
- func IsSameIPFamily(src, dst string) bool
- func ParseIPBlock(ipBlock *networkingv1.IPBlock) ([]*net.IPNet, error)
- func RuleAdd(rule *netlink.Rule, filterMask uint64) error
- func RuleDel(rule *netlink.Rule, filterMask uint64) error
- func SetLinkAddr(ifname string, inet *net.IPNet) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInternal = fmt.Errorf("everoute internal error")
Functions ¶
func Base64AndSha256 ¶
func Base64Encode ¶
func CurrentAgentName ¶
func CurrentAgentName() string
func EncodeNamespacedName ¶
func EncodeNamespacedName(namespacedName coretypes.NamespacedName) string
func EqualStringSlice ¶
EqualStringSlice return true when two unordered string slice have same items.
func GenerateControllerID ¶
func GetGwEndpointName ¶
func GetIPFamily ¶
func GetIfaceMAC ¶
func GetIfaceMAC(name string) (net.HardwareAddr, error)
func GetIfaceMTUByIP ¶
func GetNodeInternalIP ¶
func GetValidLabelString ¶
func IsIPv4Pair ¶
func IsIPv6Pair ¶
func IsK8sLabelDiff ¶
func IsSameIPFamily ¶
func ParseIPBlock ¶
func ParseIPBlock(ipBlock *networkingv1.IPBlock) ([]*net.IPNet, error)
ParseIPBlock parse ipBlock to list of IPNets.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.