types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package types contains types used to exchange data between the NCC client and the NCC server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARPGratuitous

type ARPGratuitous struct {
	IfaceName string
	IP        net.IP
}

ARPGratuitous encapsulates a request to send a gratuitous ARP message.

type BGPConfig

type BGPConfig struct {
	Config []string
}

BGPConfig encapsulates the configuration for a BGP daemon.

type BGPNeighbors

type BGPNeighbors struct {
	Neighbors []*quagga.Neighbor
}

BGPNeighbors encapsulates a list of BGP neighbors.

type IPVSDestination

type IPVSDestination struct {
	Service     *ipvs.Service
	Destination *ipvs.Destination
}

IPVSDestination specifies an IPVS destination and its associated service.

type IPVSServiceData added in v0.1.1

type IPVSServiceData struct {
	Service     *ipvs.Service
	ServiceData *ipvs.ServiceData
}

IPVSServiceData specifies an IPVS service data and its associated service.

type IPVSServices

type IPVSServices struct {
	Services []*ipvs.Service
}

IPVSServices contains an array of IPVS services.

type LBConfig

type LBConfig struct {
	ClusterVIP     seesaw.Host
	DummyInterface string
	NodeInterface  string
	Node           seesaw.Host
	RoutingTableID uint8
	VRID           uint8
}

LBConfig represents the configuration for a load balancing network interface.

type LBInterface

type LBInterface struct {
	Name string // The name of the network device, e.g. "eth1"
	LBConfig
}

LBInterface represents the load balancing network interface on a Seesaw Node.

func (*LBInterface) Interface

func (lb *LBInterface) Interface() (*net.Interface, error)

Interface returns the network interface associated with the LBInterface.

type LBInterfaceVIP

type LBInterfaceVIP struct {
	Iface *LBInterface
	*seesaw.VIP
}

LBInterfaceVIP represents a VIP address that is configured on a load balancing interface.

type LBInterfaceVLAN

type LBInterfaceVLAN struct {
	Iface *LBInterface
	*seesaw.VLAN
}

LBInterfaceVLAN represents a VLAN interface that is configured on a load balancing interface.

type LBInterfaceVserver

type LBInterfaceVserver struct {
	Iface   *LBInterface
	Vserver *seesaw.Vserver
	AF      seesaw.AF
}

LBInterfaceVserver represents a Vserver to be configured on a load balancing interface.

Jump to

Keyboard shortcuts

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