Documentation
¶
Overview ¶
Package reuse implements a activator.Activator using BPF_PROG_TYPE_SK_REUSEPORT
Index ¶
- func IgnoreAddr(addrMap *ebpf.Map, ip string) error
- type Activator
- func (act *Activator) AttachExec() error
- func (act *Activator) DisableRedirects() error
- func (act *Activator) ForwardToTarget(ctx context.Context, addr string) error
- func (act *Activator) GetListeners(_ context.Context, _ int) []activator.Listener
- func (act *Activator) LastActivity(port uint16) (time.Time, error)
- func (act *Activator) LoadBPF() error
- func (act *Activator) Reload(opts ...Option) error
- func (act *Activator) Reset() error
- func (act *Activator) SetConnectTimeout(d time.Duration)
- func (act *Activator) SetProxyTimeout(d time.Duration)
- func (act *Activator) Start(ctx context.Context, pid int, listeners activator.Listeners, skipStart bool) error
- func (act *Activator) Started() bool
- func (act *Activator) Stop(_ context.Context)
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Activator ¶
type Activator struct {
*Config
// contains filtered or unexported fields
}
func (*Activator) AttachExec ¶
func (*Activator) DisableRedirects ¶
func (*Activator) ForwardToTarget ¶
ForwardToTarget creates a TCP proxy and replaces the app listener with it to forward traffic to the target addr. TODO: the tracker does not detect this traffic for some reason.
func (*Activator) GetListeners ¶
func (*Activator) SetConnectTimeout ¶
func (*Activator) SetProxyTimeout ¶
type Option ¶
type Option func(cfg *Config)
func ConnectTimeout ¶
ConnectTimeout of the forwarding proxy. Does not apply to wake traffic.
func ProbeAddr ¶
ProbeAddr to direct probe traffic to and to ignore by the socket tracker. Usually set to the kublet address.
func RestoreHook ¶
func RestoreHook(restoreHook activator.RestoreHook) Option
RestoreHook is called on wake.
func TrackerIgnoreLocalhost ¶
TrackerIgnoreLocalhost tells the tracker to not count traffic from localhost.
Click to show internal directories.
Click to hide internal directories.