ipamdriver

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocateIP

func AllocateIP(ip_net, ip string) (string, error)

func AllocateIPRange

func AllocateIPRange(ip_start, ip_end string) []string

func DeleteNetWork

func DeleteNetWork(ip_net string) error

func GetHostName

func GetHostName() string

func InspectContainer

func InspectContainer(socketurl string, id string) (types.ContainerJSON, error)

func IpResourceCleanUP

func IpResourceCleanUP()

func ListContainers

func ListContainers(socketurl string) ([]types.Container, error)

func ReleaseIP

func ReleaseIP(ip_net, ip string) error

func StartServer

func StartServer()

Types

type Config

type Config struct {
	Ipnet string
	Mask  string
}

func GetConfig

func GetConfig(ip_net string) (*Config, error)

type MyIPAMHandler

type MyIPAMHandler struct {
}

func (*MyIPAMHandler) GetCapabilities

func (iph *MyIPAMHandler) GetCapabilities() (response *ipam.CapabilitiesResponse, err error)

func (*MyIPAMHandler) GetDefaultAddressSpaces

func (iph *MyIPAMHandler) GetDefaultAddressSpaces() (response *ipam.AddressSpacesResponse, err error)

func (*MyIPAMHandler) ReleaseAddress

func (iph *MyIPAMHandler) ReleaseAddress(request *ipam.ReleaseAddressRequest) (err error)

func (*MyIPAMHandler) ReleasePool

func (iph *MyIPAMHandler) ReleasePool(request *ipam.ReleasePoolRequest) (err error)

func (*MyIPAMHandler) RequestAddress

func (iph *MyIPAMHandler) RequestAddress(request *ipam.RequestAddressRequest) (response *ipam.RequestAddressResponse, err error)

func (*MyIPAMHandler) RequestPool

func (iph *MyIPAMHandler) RequestPool(request *ipam.RequestPoolRequest) (response *ipam.RequestPoolResponse, err error)

Jump to

Keyboard shortcuts

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