cluster

package
v0.0.0-...-8dd92da Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MasterDB = make(map[string]*objdb.ServiceInfo)

MasterDB is Database of Master nodes

View Source
var ObjdbClient objdb.API

ObjdbClient client

Functions

func GetLeaderNetmaster

func GetLeaderNetmaster() (string, error)

GetLeaderNetmaster returns the IP of current leader netmaster

func Init

func Init(storeDriver string, storeURLs []string) error

Init initializes the cluster module

func MasterDelReq

func MasterDelReq(path string) error

MasterDelReq makes a DELETE request to master node

func MasterPostReq

func MasterPostReq(path string, req interface{}, resp interface{}) error

MasterPostReq makes a POST request to master node

func RunLoop

func RunLoop(netplugin *plugin.NetPlugin, ctrlIP, vtepIP, hostname string) error

RunLoop registers netplugin service with cluster store and runs peer discovery

Types

This section is empty.

Jump to

Keyboard shortcuts

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