driver

package
v0.10.1-0...-9308727 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 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 = "CalicoPoolIPv6"

	CalicoGlobalAddressSpace = "CalicoGlobalAddressSpace"

	IFPrefix = "cali"
)

Variables

This section is empty.

Functions

func NewIpamDriver

func NewIpamDriver(client *datastoreClient.Client, logger *log.Logger) ipam.Ipam

func NewNetworkDriver

func NewNetworkDriver(client *datastoreClient.Client, logger *log.Logger) network.Driver

Types

type IpamDriver

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

func (IpamDriver) GetCapabilities

func (i IpamDriver) GetCapabilities() (*ipam.CapabilitiesResponse, error)

func (IpamDriver) GetDefaultAddressSpaces

func (i IpamDriver) GetDefaultAddressSpaces() (*ipam.AddressSpacesResponse, error)

func (IpamDriver) ReleaseAddress

func (i IpamDriver) ReleaseAddress(request *ipam.ReleaseAddressRequest) error

func (IpamDriver) ReleasePool

func (i IpamDriver) ReleasePool(request *ipam.ReleasePoolRequest) error

func (IpamDriver) RequestAddress

func (i IpamDriver) RequestAddress(request *ipam.RequestAddressRequest) (*ipam.RequestAddressResponse, error)

func (IpamDriver) RequestPool

func (i IpamDriver) RequestPool(request *ipam.RequestPoolRequest) (*ipam.RequestPoolResponse, error)

type NetworkDriver

type NetworkDriver struct {
	DummyIPV4Nexthop string
	// contains filtered or unexported fields
}

NetworkDriver is the Calico network driver representation. Must be used with Calico IPAM and supports IPv4 only.

func (NetworkDriver) CreateEndpoint

func (NetworkDriver) CreateNetwork

func (d NetworkDriver) CreateNetwork(request *network.CreateNetworkRequest) error

func (NetworkDriver) DeleteEndpoint

func (d NetworkDriver) DeleteEndpoint(request *network.DeleteEndpointRequest) error

func (NetworkDriver) DeleteNetwork

func (d NetworkDriver) DeleteNetwork(request *network.DeleteNetworkRequest) error

func (NetworkDriver) DiscoverDelete

func (d NetworkDriver) DiscoverDelete(request *network.DiscoveryNotification) error

func (NetworkDriver) DiscoverNew

func (d NetworkDriver) DiscoverNew(request *network.DiscoveryNotification) error

func (NetworkDriver) EndpointInfo

func (d NetworkDriver) EndpointInfo(request *network.InfoRequest) (*network.InfoResponse, error)

func (NetworkDriver) GetCapabilities

func (d NetworkDriver) GetCapabilities() (*network.CapabilitiesResponse, error)

func (NetworkDriver) Join

func (NetworkDriver) Leave

func (d NetworkDriver) Leave(request *network.LeaveRequest) error

func (NetworkDriver) ProgramExternalConnectivity

func (d NetworkDriver) ProgramExternalConnectivity(*network.ProgramExternalConnectivityRequest) error

func (NetworkDriver) RevokeExternalConnectivity

func (d NetworkDriver) RevokeExternalConnectivity(*network.RevokeExternalConnectivityRequest) error

Jump to

Keyboard shortcuts

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