summaryrefslogtreecommitdiff
path: root/libnetwork/ipamapi
diff options
context:
space:
mode:
authorCory Snider <csnider@mirantis.com>2023-01-24 18:49:24 -0500
committerCory Snider <csnider@mirantis.com>2023-01-27 11:47:43 -0500
commita08a254df38840be8f6b561c91d98cf8acf8d82e (patch)
treeaf1d0f5f67aaf6ba91747e123ddb1888f11916a0 /libnetwork/ipamapi
parent28edc8e2d692cb47f1ec6bb32a6e346777e1250d (diff)
downloaddocker-a08a254df38840be8f6b561c91d98cf8acf8d82e.tar.gz
libnetwork: drop DatastoreConfig discovery type
The DatastoreConfig discovery type is unused. Remove the constant and any resulting dead code. Today's biggest loser is the IPAM Allocator: DatastoreConfig was the only type of discovery event it was listening for, and there was no other place where a non-nil datastore could be passed into the allocator. Strip out all the dead persistence code from Allocator, leaving it as purely an in-memory implementation. There is no more need to check the consistency of the allocator's bit-sequences as there is no persistent storage for inconsistent bit sequences to be loaded from. Signed-off-by: Cory Snider <csnider@mirantis.com>
Diffstat (limited to 'libnetwork/ipamapi')
-rw-r--r--libnetwork/ipamapi/contract.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/libnetwork/ipamapi/contract.go b/libnetwork/ipamapi/contract.go
index 36f1b5a9c4..3f687141e7 100644
--- a/libnetwork/ipamapi/contract.go
+++ b/libnetwork/ipamapi/contract.go
@@ -4,7 +4,6 @@ package ipamapi
import (
"net"
- "github.com/docker/docker/libnetwork/discoverapi"
"github.com/docker/docker/libnetwork/types"
"github.com/docker/docker/pkg/plugingetter"
)
@@ -59,8 +58,6 @@ var (
// Ipam represents the interface the IPAM service plugins must implement
// in order to allow injection/modification of IPAM database.
type Ipam interface {
- discoverapi.Discover
-
// GetDefaultAddressSpaces returns the default local and global address spaces for this ipam
GetDefaultAddressSpaces() (string, string, error)
// RequestPool returns an address pool along with its unique id. Address space is a mandatory field