daemon

package
v0.0.0-...-6e18aa0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2015 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddService

func AddService(key string, value string)

func AddVlannetwork

func AddVlannetwork(etcdval string, vlanid string, containerName string)

func CheckVlanName

func CheckVlanName(vlanname string) (string, bool)

func CreateVlanNetwork

func CreateVlanNetwork(name string, subnet string, hostif string) error

the global var is nil in this function, although init in the Listen function,and listen func exec first. so the common var should init in func init

func InitSock

func InitSock(socketFile string, socketPath string)

initSock create the socket file if it does not already exist

func Listen

func Listen(absSocket string)

func RemoveSock

func RemoveSock(absFile string)

removeSock if an old filehandle exists remove it

Types

type EnvConfig

type EnvConfig struct {
	TYPE   string
	IP     string
	GW     string
	HOSTIF string
}

Jump to

Keyboard shortcuts

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