- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for UnbindAddress (0.32 sec)
-
pkg/proxy/ipvs/netlink.go
// EnsureAddressBind checks if address is bound to the interface and, if not, binds it. If the address is already bound, return true. EnsureAddressBind(address, devName string) (exist bool, err error) // UnbindAddress unbind address from the interface UnbindAddress(address, devName string) error // EnsureDummyDevice checks if dummy device is exist and, if not, create one. If the dummy device is already exist, return true.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 27 19:02:20 UTC 2023 - 2.3K bytes - Viewed (0) -
pkg/proxy/ipvs/testing/fake.go
return true, nil } } h.localAddresses[devName] = append(h.localAddresses[devName], address) return false, nil } // UnbindAddress is a mock implementation func (h *FakeNetlinkHandle) UnbindAddress(address, devName string) error { if len(devName) == 0 { return fmt.Errorf("device name can't be empty") } if _, ok := h.localAddresses[devName]; !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 5.5K bytes - Viewed (0) -
pkg/proxy/ipvs/netlink_linux.go
return true, nil } return false, fmt.Errorf("error bind address: %s to interface: %s, err: %v", address, devName, err) } return false, nil } // UnbindAddress makes sure IP address is unbound from the network interface. func (h *netlinkHandle) UnbindAddress(address, devName string) error { dev, err := h.LinkByName(devName) if err != nil { return fmt.Errorf("error get interface: %s, err: %v", devName, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 30 16:18:49 UTC 2023 - 5.8K bytes - Viewed (0)