libnet: move ipam pkg to ipam/defaultipam

All drivers except the default ipam driver are stored in ipams/.
Since `default` isn't a valid Go pkg name, this package is
renamed to `defaultipam`, following `windowsipam` example.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
Albin Kerouanton 2024-04-18 10:45:23 +02:00
parent dbc961a3d3
commit cf516e17de
6 changed files with 7 additions and 7 deletions

View file

@ -1,8 +1,8 @@
package builtin
import (
"github.com/docker/docker/libnetwork/ipam"
"github.com/docker/docker/libnetwork/ipamapi"
"github.com/docker/docker/libnetwork/ipams/defaultipam"
"github.com/docker/docker/libnetwork/ipamutils"
)
@ -19,7 +19,7 @@ func registerBuiltin(ic ipamapi.Registerer, addressPools []*ipamutils.NetworkToS
}
}
a, err := ipam.NewAllocator(localAddressPools, ipamutils.GetGlobalScopeDefaultNetworks())
a, err := defaultipam.NewAllocator(localAddressPools, ipamutils.GetGlobalScopeDefaultNetworks())
if err != nil {
return err
}

View file

@ -1,4 +1,4 @@
package ipam
package defaultipam
import (
"context"

View file

@ -1,4 +1,4 @@
package ipam
package defaultipam
import (
"context"

View file

@ -1,4 +1,4 @@
package ipam
package defaultipam
import (
"context"

View file

@ -1,4 +1,4 @@
package ipam
package defaultipam
import (
"context"

View file

@ -1,4 +1,4 @@
package ipam
package defaultipam
import (
"fmt"