ipam

package
v5.4.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2019 License: BSD-3-Clause Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NuageIPAMDriver

type NuageIPAMDriver struct {
	sync.Mutex
	// contains filtered or unexported fields
}

NuageIPAMDriver Ipam Driver structure

func NewNuageIPAMDriver

func NewNuageIPAMDriver(config *nuageConfig.NuageLibNetworkConfig, channels *nuageApi.NuageLibNetworkChannels, serveMux *http.ServeMux) (*NuageIPAMDriver, error)

NewNuageIPAMDriver factory method for IPAM Driver

func (*NuageIPAMDriver) GateWayAddressRequest

func (nuageipam *NuageIPAMDriver) GateWayAddressRequest(r *ipam.RequestAddressRequest) (*ipam.RequestAddressResponse, error)

GateWayAddressRequest function takes of gateway and default ip assignment

func (*NuageIPAMDriver) GetCapabilities

func (nuageipam *NuageIPAMDriver) GetCapabilities(w http.ResponseWriter, req *http.Request)

GetCapabilities return capabilities

func (*NuageIPAMDriver) GetDefaultAddressSpaces

func (nuageipam *NuageIPAMDriver) GetDefaultAddressSpaces(w http.ResponseWriter, req *http.Request)

GetDefaultAddressSpaces returns the default address space

func (*NuageIPAMDriver) ReleaseAddress

func (nuageipam *NuageIPAMDriver) ReleaseAddress(w http.ResponseWriter, req *http.Request)

ReleaseAddress releases an ip address TODO: Donot do anything if it is gateway address

func (*NuageIPAMDriver) ReleasePool

func (nuageipam *NuageIPAMDriver) ReleasePool(w http.ResponseWriter, req *http.Request)

ReleasePool releases a pool of ip addresses

func (*NuageIPAMDriver) RequestAddress

func (nuageipam *NuageIPAMDriver) RequestAddress(w http.ResponseWriter, req *http.Request)

RequestAddress allocates an ip address

func (*NuageIPAMDriver) RequestPool

func (nuageipam *NuageIPAMDriver) RequestPool(w http.ResponseWriter, req *http.Request)

RequestPool allocates a new pool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL