ipam

package
v0.0.0-...-319b497 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PoolIDV4 .
	// Calico IPAM module does not allow selection of pools from which to allocate
	// IP addresses.  The pool ID, which has to be supplied in the libnetwork IPAM
	// API is therefore fixed.  We use different values for IPv4 and IPv6 so that
	// during allocation we know which IP version to use.
	PoolIDV4 = "CalicoPoolIPv4"
	// PoolIDV6 .
	PoolIDV6 = "CalicoPoolIPv6"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CalicoIPAM

type CalicoIPAM struct {
	// contains filtered or unexported fields
}

CalicoIPAM .

func NewCalicoIPAM

func NewCalicoIPAM(cliv3 clientv3.Interface) *CalicoIPAM

NewCalicoIPAM .

func (CalicoIPAM) AssignIP

func (c CalicoIPAM) AssignIP(address string) (caliconet.IP, error)

AssignIP .

func (CalicoIPAM) AutoAssign

func (c CalicoIPAM) AutoAssign(poolName string) (caliconet.IP, error)

AutoAssign .

func (CalicoIPAM) GetIPPool

func (c CalicoIPAM) GetIPPool(poolName string) (*apiv3.IPPool, error)

GetIPPool .

func (CalicoIPAM) IPPools

func (c CalicoIPAM) IPPools() (*apiv3.IPPoolList, error)

IPPools .

func (CalicoIPAM) ReleaseIP

func (c CalicoIPAM) ReleaseIP(poolName string, address string) error

ReleaseIP .

func (CalicoIPAM) RequestDefaultPool

func (c CalicoIPAM) RequestDefaultPool(v6 bool) *types.Pool

RequestDefaultPool .

func (CalicoIPAM) RequestPool

func (c CalicoIPAM) RequestPool(cidr string) (*types.Pool, error)

RequestPool .

func (CalicoIPAM) RequestPools

func (c CalicoIPAM) RequestPools(cidrs []string) ([]*types.Pool, error)

RequestPools .

Jump to

Keyboard shortcuts

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