Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Default address space IDs. LocalDefaultAddressSpaceId = "local" GlobalDefaultAddressSpaceId = "global" )
View Source
const ( // Address space scopes. LocalScope = iota GlobalScope )
Variables ¶
View Source
var ( // Options used by AddressManager. OptInterfaceName = "azure.interface.name" OptAddressID = "azure.address.id" OptAddressType = "azure.address.type" OptAddressTypeGateway = "gateway" )
Functions ¶
func NewAddressPoolId ¶
Creates a new address pool ID object.
func NewAddressPoolIdFromString ¶
Creates a new pool ID from a string representation.
Types ¶
type AddressManager ¶
type AddressManager interface { Initialize(config *common.PluginConfig, options map[string]interface{}) error Uninitialize() StartSource(options map[string]interface{}) error StopSource() GetDefaultAddressSpaces() (string, string) RequestPool(asId, poolId, subPoolId string, options map[string]string, v6 bool) (string, string, error) ReleasePool(asId, poolId string) error GetPoolInfo(asId, poolId string) (*AddressPoolInfo, error) RequestAddress(asId, poolId, address string, options map[string]string) (string, error) ReleaseAddress(asId, poolId, address string, options map[string]string) error }
AddressManager API.
func NewAddressManager ¶
func NewAddressManager() (AddressManager, error)
Creates a new address manager.
Click to show internal directories.
Click to hide internal directories.