Documentation ¶
Index ¶
- 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 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 IPCopy(src net.IP) net.IP
- func IsK8sLabelDiff(l1, l2 map[string]string) bool
- func IsRuleExist(rule *netlink.Rule, filterMask uint64) (bool, error)
- 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 ¶
This section is empty.
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 GetIfaceMAC ¶
func GetIfaceMAC(name string) (net.HardwareAddr, error)
func GetIfaceMTUByIP ¶
func GetNodeInternalIP ¶
func IsK8sLabelDiff ¶
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.