libnetwork: fix stubs

- sandbox, endpoint changed in c71555f030, but
  missed updating the stubs.
- add missing stub for Controller.cleanupServiceDiscovery()
- While at it also doing some minor (formatting) changes.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-04-28 10:00:38 +02:00
parent 17feabcba0
commit 939a4eb5c9
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -4,23 +4,22 @@
package libnetwork
import (
"fmt"
"errors"
"net"
)
func (c *Controller) cleanupServiceBindings(nid string) {
}
func (c *Controller) cleanupServiceDiscovery(cleanupNID string) {}
func (c *Controller) cleanupServiceBindings(nid string) {}
func (c *Controller) addServiceBinding(name, sid, nid, eid string, vip net.IP, ingressPorts []*PortConfig, aliases []string, ip net.IP) error {
return fmt.Errorf("not supported")
return errors.New("not supported")
}
func (c *Controller) rmServiceBinding(name, sid, nid, eid string, vip net.IP, ingressPorts []*PortConfig, aliases []string, ip net.IP) error {
return fmt.Errorf("not supported")
return errors.New("not supported")
}
func (sb *sandbox) populateLoadBalancers(ep *endpoint) {
}
func (sb *Sandbox) populateLoadBalancers(*Endpoint) {}
func arrangeIngressFilterRule() {
}
func arrangeIngressFilterRule() {}