- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for EnsureDummyDevice (0.18 sec)
-
pkg/proxy/ipvs/netlink.go
// 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. EnsureDummyDevice(devName string) (exist bool, err error) // DeleteDummyDevice deletes the given dummy device by name. DeleteDummyDevice(devName string) error
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 error message if address is not found in slice h.localAddresses[devName] return fmt.Errorf("address: %s is not found in interface: %s", address, devName) } // EnsureDummyDevice is a mock implementation func (h *FakeNetlinkHandle) EnsureDummyDevice(devName string) (bool, error) { if len(devName) == 0 { return false, 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
if err != unix.ENXIO { return fmt.Errorf("error unbind address: %s from interface: %s, err: %v", address, devName, err) } } return nil } // EnsureDummyDevice is part of interface func (h *netlinkHandle) EnsureDummyDevice(devName string) (bool, error) { _, err := h.LinkByName(devName) if err == nil { // found dummy device return true, nil } dummy := &netlink.Dummy{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 30 16:18:49 UTC 2023 - 5.8K bytes - Viewed (0)