azure-container-networking/ipam/api.go

33 строки
1.1 KiB
Go

// 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")
errAddressExists = fmt.Errorf("Address already exists")
errAddressNotFound = fmt.Errorf("Address not found")
errAddressInUse = fmt.Errorf("Address already 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"
)
// Exportable errors returned by AddressManager
var ErrNoAvailableAddressPools = fmt.Errorf("no available address pools")