database

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2016 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

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

func NewMySQL

func NewMySQL(conf *goconf.ConfigFile) (*MySQL, error)

func (*MySQL) AddHost

func (r *MySQL) AddHost(host network.HostParam) (hostID uint64, err error)

func (*MySQL) AddNetwork

func (r *MySQL) AddNetwork(addr net.IP, mask net.IPMask) (netID uint64, err error)

func (*MySQL) AddSwitch

func (r *MySQL) AddSwitch(sw network.SwitchParam) (swID uint64, err error)

func (*MySQL) AddVIP

func (r *MySQL) AddVIP(vip network.VIPParam) (id uint64, cidr string, err error)

func (*MySQL) Host

func (r *MySQL) Host(id uint64) (host network.Host, ok bool, err error)

func (*MySQL) Hosts

func (r *MySQL) Hosts() (hosts []network.Host, err error)

func (*MySQL) IPAddrs

func (r *MySQL) IPAddrs(networkID uint64) (addresses []network.IP, err error)

func (*MySQL) Location

func (r *MySQL) Location(mac net.HardwareAddr) (dpid string, port uint32, ok bool, err error)

func (*MySQL) MAC

func (r *MySQL) MAC(ip net.IP) (mac net.HardwareAddr, ok bool, err error)

func (*MySQL) Network

func (r *MySQL) Network(addr net.IP) (n network.Network, ok bool, err error)

func (*MySQL) Networks

func (r *MySQL) Networks() (networks []network.Network, err error)

func (*MySQL) RemoveHost

func (r *MySQL) RemoveHost(id uint64) (ok bool, err error)

func (*MySQL) RemoveNetwork

func (r *MySQL) RemoveNetwork(id uint64) (ok bool, err error)

func (*MySQL) RemoveSwitch

func (r *MySQL) RemoveSwitch(id uint64) (ok bool, err error)

func (*MySQL) RemoveVIP

func (r *MySQL) RemoveVIP(id uint64) (ok bool, err error)

func (*MySQL) Switch

func (r *MySQL) Switch(dpid uint64) (sw network.Switch, ok bool, err error)

func (*MySQL) SwitchPorts

func (r *MySQL) SwitchPorts(swID uint64) (ports []network.SwitchPort, err error)

func (*MySQL) Switches

func (r *MySQL) Switches() (sw []network.Switch, err error)

func (*MySQL) ToggleDeviceVIP

func (r *MySQL) ToggleDeviceVIP(swDPID uint64) (result []proxyarp.VIP, err error)

func (*MySQL) TogglePortVIP

func (r *MySQL) TogglePortVIP(swDPID uint64, portNum uint16) (result []proxyarp.VIP, err error)

func (*MySQL) ToggleVIP

func (r *MySQL) ToggleVIP(id uint64) (ip net.IP, mac net.HardwareAddr, err error)

func (*MySQL) VIPs

func (r *MySQL) VIPs() (result []network.VIP, err error)

Jump to

Keyboard shortcuts

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