types

package
v0.0.0-...-1cdf2d7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 44

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 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 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
	UseVMAC        bool
}

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