types

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

View Source
const (
	IdentifierKey       = "identifier"
	InterfaceNamePrefix = "nse"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Flow

type Flow interface {
	Update(*nspAPI.Flow) error
	Delete() error
}

type NFAdaptor added in v0.4.0

type NFAdaptor interface {
	SetDestinationIPs(vips []*nspAPI.Vip) error
}

type NFQueueLoadBalancer

type NFQueueLoadBalancer interface {
	Activate(index int, identifier int) error
	Deactivate(index int) error
	Start() error
	Delete() error
	SetFlow(flow *nspAPI.Flow) error
	DeleteFlow(flow *nspAPI.Flow) error
	GetName() string
}

type NFQueueLoadBalancerFactory added in v0.4.0

type NFQueueLoadBalancerFactory interface {
	Start(ctx context.Context) error
	New(name string, m int, n int) (NFQueueLoadBalancer, error)
}

type Stream

type Stream interface {
	AddTarget(Target) error
	RemoveTarget(identifier int) error
	TargetExists(identifier int) bool
	GetTargets() []Target
	Start(context.Context) error
	Delete() error
}

type Target

type Target interface {
	GetIps() []string
	GetIdentifier() int
	Configure() error
	Verify() bool
	Delete() error
}

Jump to

Keyboard shortcuts

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