-
Notifications
You must be signed in to change notification settings - Fork 241
/
api.go
33 lines (29 loc) · 1.32 KB
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2017 Microsoft. All rights reserved.
// MIT License
package ipam
import (
"fmt"
)
var (
// Error responses returned by AddressManager.
errInvalidAddressSpace = fmt.Errorf("Invalid address space")
errInvalidPoolId = fmt.Errorf("Invalid address pool")
errInvalidAddress = fmt.Errorf("Invalid address")
errInvalidScope = fmt.Errorf("Invalid scope")
errInvalidConfiguration = fmt.Errorf("Invalid configuration")
errAddressPoolExists = fmt.Errorf("Address pool already exists")
errAddressPoolNotFound = fmt.Errorf("Address pool not found")
errAddressPoolInUse = fmt.Errorf("Address pool already in use")
errAddressPoolNotInUse = fmt.Errorf("Address pool not in use")
errNoAvailableAddressPools = fmt.Errorf("No available address pools")
errAddressExists = fmt.Errorf("Address already exists")
errAddressNotFound = fmt.Errorf("Address not found")
errAddressInUse = fmt.Errorf("Address already in use")
errAddressNotInUse = fmt.Errorf("Address not in use")
errNoAvailableAddresses = fmt.Errorf("No available addresses")
// Options used by AddressManager.
OptInterfaceName = "azure.interface.name"
OptAddressID = "azure.address.id"
OptAddressType = "azure.address.type"
OptAddressTypeGateway = "gateway"
)