driver

package
v0.0.0-...-79b8a55 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2016 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodReceiver = "NetworkDriver"
)

Variables

This section is empty.

Functions

func AddGatewayInfo

func AddGatewayInfo(ID string, domainid string, gatewayip string)

func AddMetaconfig

func AddMetaconfig(domainID string, netID string, deviceID string, endpointID string, macaddr string)

func AddNetworkInfo

func AddNetworkInfo(dNetwork string, neName string, domain string) error

func BridgeCreate

func BridgeCreate(ID string, domainid string, gatewayip string)

func BridgeDelete

func BridgeDelete(ID string, domainid string)

func CheckExternalConnectivity

func CheckExternalConnectivity(domain string) bool

func CheckNeChildList

func CheckNeChildList(NeID string, DomainID string, childList string)

func CheckNeExists

func CheckNeExists(ne_name, domain string) bool
func CreateNetworkLink(NeName string, DomainID string, NetworkID string, IP string, Netmask string) error

func DeleteAttachedLB

func DeleteAttachedLB(DomainID string, NetworkID string)
func DeleteNetworkLinks(DomainID string, NetworkID string)

func DomainCreate

func DomainCreate(domainID string)

func DomainDelete

func DomainDelete(domainID string)

func FindDomainFromNetwork

func FindDomainFromNetwork(ID string) (domainid string, netid string)

func FindNetworkGateway

func FindNetworkGateway(domainID string, networkID string) (gatewayIP string)

func GetNeId

func GetNeId(NeName string, DomainID string) (NeID string)

func Login

func Login() error

func NetworkName

func NetworkName(ID string) (name string)

func ReadConfig

func ReadConfig()

Read configuration file

func RemoveMetaconfig

func RemoveMetaconfig(domainID string, netID string, endpointID string)

func RestCall

func RestCall(method string, uri string, data []byte) ([]byte, error)

func RestHelper

func RestHelper(method string, uri string, data []byte) ([]byte, error)

func RunContainerArping

func RunContainerArping(net_ns_path string, pg_ifc_prefix string) error

Plumgrid just specifies the prefix, so we will arping on all ifcs that match with the prefix given to libnetwork

Types

type Driver

type Driver interface {
	Listen(net.Listener) error
}

func New

func New(version string) (Driver, error)

Jump to

Keyboard shortcuts

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