driver

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: Apache-2.0 Imports: 22 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"

	CalicoLocalAddressSpace  = "CalicoLocalAddressSpace"
	CalicoGlobalAddressSpace = "CalicoGlobalAddressSpace"
)
View Source
const CREATE_PROFILES_ENVKEY = "CALICO_LIBNETWORK_CREATE_PROFILES"
View Source
const DOCKER_LABEL_PREFIX = "org.projectcalico.label."
View Source
const LABEL_ENDPOINTS_ENVKEY = "CALICO_LIBNETWORK_LABEL_ENDPOINTS"
View Source
const LABEL_POLL_TIMEOUT_ENVKEY = "CALICO_LIBNETWORK_LABEL_POLL_TIMEOUT"
View Source
const VETH_MTU_ENVKEY = "CALICO_LIBNETWORK_VETH_MTU"

Variables

View Source
var IFPrefix = "cali"

Functions

func NewIpamDriver

func NewIpamDriver(client *datastoreClient.Client) ipam.Ipam

func NewNetworkDriver

func NewNetworkDriver(client *datastoreClient.Client) 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) AllocateNetwork added in v1.1.1

AllocateNetwork is used for swarm-mode support in remote plugins, which Calico's libnetwork-plugin doesn't currently support.

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) FreeNetwork added in v1.1.1

func (d NetworkDriver) FreeNetwork(request *network.FreeNetworkRequest) error

FreeNetwork is used for swarm-mode support in remote plugins, which Calico's libnetwork-plugin doesn't currently support.

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