libnet/ipamapi: Remove unused errors
These errors aren't used in our repo and seem unused by the OSS community (this was checked with Sourcegraph). - ErrIpamInternalError has never been used - ErrInvalidRequest is unused since moby/libnetwork@c85356efa - ErrPoolNotFound has never been used - ErrOverlapPool has never been used - ErrNoAvailablePool has never been used Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
parent
63d477b20e
commit
36a0946aa9
1 changed files with 0 additions and 5 deletions
|
@ -29,14 +29,9 @@ type Registerer interface {
|
|||
|
||||
// Well-known errors returned by IPAM
|
||||
var (
|
||||
ErrIpamInternalError = types.InternalErrorf("IPAM Internal Error")
|
||||
ErrInvalidAddressSpace = types.BadRequestErrorf("Invalid Address Space")
|
||||
ErrInvalidPool = types.BadRequestErrorf("Invalid Address Pool")
|
||||
ErrInvalidSubPool = types.BadRequestErrorf("Invalid Address SubPool")
|
||||
ErrInvalidRequest = types.BadRequestErrorf("Invalid Request")
|
||||
ErrPoolNotFound = types.BadRequestErrorf("Address Pool not found")
|
||||
ErrOverlapPool = types.ForbiddenErrorf("Address pool overlaps with existing pool on this address space")
|
||||
ErrNoAvailablePool = types.NoServiceErrorf("No available pool")
|
||||
ErrNoAvailableIPs = types.NoServiceErrorf("No available addresses on this pool")
|
||||
ErrNoIPReturned = types.NoServiceErrorf("No address returned")
|
||||
ErrIPAlreadyAllocated = types.ForbiddenErrorf("Address already in use")
|
||||
|
|
Loading…
Add table
Reference in a new issue