Help us shape the future of Go! Take the 2026 Go Developer Survey

act

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACTMapName = "cilium_lb_act"
	FCTMapName = "cilium_lb_fct"
)

Variables

View Source
var Cell = cell.Module(
	"active-connection-tracking",
	"eBPF map with counts of open-closed connections for each service-zone pair",

	cell.Provide(provide),
	cell.Invoke(configure),
	cell.Config(defaultConfig),
)

Cell provides the ACTMap containing information about opened and closed connections to each service-zone pair.

Functions

This section is empty.

Types

type ACTIterator added in v1.20.0

type ACTMap added in v1.20.0

type ACTMap interface {
	IterateWithCallback(context.Context, ACTIterator) error
	Delete(*ActiveConnectionTrackerKey) error
	SaveFailed(*ActiveConnectionTrackerKey, uint64) error
	RestoreFailed(*ActiveConnectionTrackerKey) (uint64, error)
}

type ActiveConnectionTrackerKey

type ActiveConnectionTrackerKey struct {
	SvcID uint16 `align:"svc_id"`
	Zone  uint8  `align:"zone"`
	Pad   uint8  `align:"pad"`
}

ActiveConnectionTrackerKey is the key to ActiveConnectionTrackingMap.

It must match 'struct lb_act_key' in "bpf/lib/act.h".

func (*ActiveConnectionTrackerKey) New

func (*ActiveConnectionTrackerKey) String

func (v *ActiveConnectionTrackerKey) String() string

type ActiveConnectionTrackerValue

type ActiveConnectionTrackerValue struct {
	Opened uint32 `align:"opened"`
	Closed uint32 `align:"closed"`
}

ActiveConnectionTrackerValue is the value in ActiveConnectionTrackingMap.

It must match 'struct lb_act_value' in "bpf/lib/act.h".

func (*ActiveConnectionTrackerValue) New

func (*ActiveConnectionTrackerValue) String

type Config

type Config struct {
	EnableActiveConnectionTracking bool
}

func (Config) Flags

func (c Config) Flags(fs *pflag.FlagSet)

type FailedConnectionTrackerValue added in v1.17.0

type FailedConnectionTrackerValue struct {
	Failed uint32 `align:"failed"`
}

FailedConnectionTrackerValue is the value in FailedConnectionTrackingMap.

func (*FailedConnectionTrackerValue) New added in v1.17.0

func (*FailedConnectionTrackerValue) String added in v1.17.0

Jump to

Keyboard shortcuts

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