drivers

package
v0.0.0-...-c255293 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	sync.Once
	sync.Mutex
	// contains filtered or unexported fields
}

Driver ...

func Init

func Init(d *Driver) (*Driver, error)

Init macvlan remote driver

func (*Driver) AllocateNetwork

AllocateNetwork ...

func (*Driver) CreateEndpoint

CreateEndpoint assigns the mac, ip and endpoint id for the new container

func (*Driver) CreateNetwork

func (d *Driver) CreateNetwork(r *pluginNet.CreateNetworkRequest) error

CreateNetwork the network for the specified driver type

func (*Driver) DeleteEndpoint

func (d *Driver) DeleteEndpoint(r *pluginNet.DeleteEndpointRequest) error

DeleteEndpoint removes the endpoint and associated netlink interface

func (*Driver) DeleteNetwork

func (d *Driver) DeleteNetwork(r *pluginNet.DeleteNetworkRequest) error

DeleteNetwork deletes the network for the specified driver type

func (*Driver) DiscoverDelete

func (d *Driver) DiscoverDelete(r *pluginNet.DiscoveryNotification) error

DiscoverDelete ...

func (*Driver) DiscoverNew

func (d *Driver) DiscoverNew(r *pluginNet.DiscoveryNotification) error

DiscoverNew ...

func (*Driver) EndpointInfo

func (d *Driver) EndpointInfo(r *pluginNet.InfoRequest) (*pluginNet.InfoResponse, error)

EndpointInfo ...

func (*Driver) FreeNetwork

func (d *Driver) FreeNetwork(r *pluginNet.FreeNetworkRequest) error

FreeNetwork ...

func (*Driver) GetCapabilities

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

GetCapabilities for swarm return GlobalScope

func (*Driver) Join

Join method is invoked when a Sandbox is attached to an endpoint.

func (*Driver) Leave

func (d *Driver) Leave(r *pluginNet.LeaveRequest) error

Leave method is invoked when a Sandbox detaches from an endpoint.

func (*Driver) ProgramExternalConnectivity

func (d *Driver) ProgramExternalConnectivity(r *pluginNet.ProgramExternalConnectivityRequest) error

ProgramExternalConnectivity ...

func (*Driver) RevokeExternalConnectivity

func (d *Driver) RevokeExternalConnectivity(r *pluginNet.RevokeExternalConnectivityRequest) error

RevokeExternalConnectivity ...

type MacvlanStore

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

MacvlanStore ...

func (*MacvlanStore) InitStore

func (ms *MacvlanStore) InitStore(d *Driver) error

InitStore drivers are responsible for caching their own persistent state

func (*MacvlanStore) PopulateEndpoints

func (ms *MacvlanStore) PopulateEndpoints() error

PopulateEndpoints ...

func (*MacvlanStore) StoreDelete

func (ms *MacvlanStore) StoreDelete(kvObject datastore.KVObject) error

StoreDelete used to delete macvlan records from persistent cache as they are deleted

func (*MacvlanStore) StoreUpdate

func (ms *MacvlanStore) StoreUpdate(kvObject datastore.KVObject) error

StoreUpdate used to update persistent macvlan network records as they are created

Jump to

Keyboard shortcuts

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