lb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LBNode

type LBNode interface {
	LBType() terminalmode.DeviceType

	Host() string
}

type LBPhase

type LBPhase int
const (
	INPUT_NAT LBPhase = iota
	INPUT_POLICY
	OUTPUT_POLICY
	OUTPUT_NAT
)

func NewLBPhase

func NewLBPhase(phase string) LBPhase

func (LBPhase) String

func (lp LBPhase) String() string

type LBProcessResult

type LBProcessResult struct {
	Virtual     string   `json:"virtual" mapstructure:"virtual"`
	Partition   string   `json:"partition" mapstructure:"partition"`
	Dst         string   `json:"dst" mapstructure:"dst"`
	Dport       string   `json:"dport" mapstructure:"dport"`
	Pool        string   `json:"pool" mapstructure:"pool"`
	AutoMap     bool     `json:"autoMap" mapstructure:"autoMap"`
	State       []string `json:"state" mapstructure:"state"`
	Nodes       []string `json:"nodes" mapstructure:"nodes"`
	RouteDomain string   `json:"routeDomain" mapstructure:"routeDomain"`
	NodePort    string   `json:"nodePort" mapstructure:"nodePort"`
	ErrMsg      string   `json:"errMsg" mapstructure:"errMsg"`
}

type LBProcessor

type LBProcessor struct {
	processor.NodeProcessor
	// contains filtered or unexported fields
}

func NewF5Processor

func NewF5Processor(node api.Node, inEntry policy.PolicyEntryInf) *LBProcessor

func (*LBProcessor) MakeTemplates

func (lp *LBProcessor) MakeTemplates(ctx context.Context, intent *policy.Intent, inPort api.Port, vrf api.Vrf, force bool) (result LBProcessResult)

func (*LBProcessor) WithInputNat

func (lp *LBProcessor) WithInputNat() *LBProcessor

func (*LBProcessor) WithOutputNat

func (lp *LBProcessor) WithOutputNat() *LBProcessor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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