network

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: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOCKER_LABEL_PREFIX       = "org.projectcalico.label."             // nolint
	LABEL_POLL_TIMEOUT_ENVKEY = "CALICO_LIBNETWORK_LABEL_POLL_TIMEOUT" // nolint
	CREATE_PROFILES_ENVKEY    = "CALICO_LIBNETWORK_CREATE_PROFILES"    // nolint
	LABEL_ENDPOINTS_ENVKEY    = "CALICO_LIBNETWORK_LABEL_ENDPOINTS"    // nolint
	VETH_MTU_ENVKEY           = "CALICO_LIBNETWORK_VETH_MTU"           // nolint
	NAMESPACE_ENVKEY          = "CALICO_LIBNETWORK_NAMESPACE"          // nolint
)

Variables

View Source
var IFPrefix = "cali"

IFPrefix .

Functions

This section is empty.

Types

type Driver

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

Driver .

func NewNetworkDriver

func NewNetworkDriver(
	client clientv3.Interface,
	dockerCli *dockerClient.Client,
) Driver

NewNetworkDriver .

func (Driver) AllocateNetwork

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

func (Driver) CreateEndpoint

func (Driver) CreateNetwork

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

func (Driver) DeleteEndpoint

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

func (Driver) DeleteNetwork

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

func (Driver) DiscoverDelete

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

func (Driver) DiscoverNew

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

func (Driver) EndpointInfo

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

func (Driver) FindPoolByNetworkID

func (d Driver) FindPoolByNetworkID(networkID string) (*api.IPPool, error)

FindPoolByNetworkID .

func (Driver) FreeNetwork

func (d Driver) 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 (Driver) GetCapabilities

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

func (Driver) Join

func (d Driver) Join(request *network.JoinRequest) (*network.JoinResponse, error)

func (Driver) Leave

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

Leave .

func (Driver) ProgramExternalConnectivity

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

func (Driver) RevokeExternalConnectivity

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

Jump to

Keyboard shortcuts

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