ads

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BPF_INNER_MAP_DATA_LEN = uint32(C.BPF_INNER_MAP_DATA_LEN)
View Source
var KMESH_TAIL_CALL_CLUSTER = uint32(C.KMESH_TAIL_CALL_CLUSTER)
View Source
var KMESH_TAIL_CALL_FILTER = uint32(C.KMESH_TAIL_CALL_FILTER)
View Source
var KMESH_TAIL_CALL_FILTER_CHAIN = uint32(C.KMESH_TAIL_CALL_FILTER_CHAIN)
View Source
var KMESH_TAIL_CALL_LISTENER = uint32(C.KMESH_TAIL_CALL_LISTENER)
View Source
var KMESH_TAIL_CALL_ROUTER = uint32(C.KMESH_TAIL_CALL_ROUTER)
View Source
var KMESH_TAIL_CALL_ROUTER_CONFIG = uint32(C.KMESH_TAIL_CALL_ROUTER_CONFIG)

Functions

func AdsL7Enabled

func AdsL7Enabled() bool

Types

type BpfAds

type BpfAds struct {
	SockConn BpfSockConn
}

func NewBpfAds

func NewBpfAds(cfg *options.BpfConfig) (*BpfAds, error)

func (*BpfAds) ApiEnvCfg

func (sc *BpfAds) ApiEnvCfg() error

func (*BpfAds) Attach

func (sc *BpfAds) Attach() error

func (*BpfAds) Detach

func (sc *BpfAds) Detach() error

func (*BpfAds) GetBpfLogLevelMap

func (sc *BpfAds) GetBpfLogLevelMap() *ebpf.Map

func (*BpfAds) Load

func (sc *BpfAds) Load() error

func (*BpfAds) Start

func (sc *BpfAds) Start() error

func (*BpfAds) Stop

func (sc *BpfAds) Stop() error

type BpfInfo

type BpfInfo struct {
	MapPath     string
	BpfFsPath   string
	Cgroup2Path string

	Type       ebpf.ProgramType
	AttachType ebpf.AttachType
}

type BpfSockConn

type BpfSockConn struct {
	Info BpfInfo
	Link link.Link
	bpf2go.KmeshCgroupSockObjects
}

func (*BpfSockConn) Attach

func (sc *BpfSockConn) Attach() error

func (*BpfSockConn) Detach

func (sc *BpfSockConn) Detach() error

func (*BpfSockConn) Load

func (sc *BpfSockConn) Load() error

func (*BpfSockConn) NewBpf

func (sc *BpfSockConn) NewBpf(cfg *options.BpfConfig) error

Jump to

Keyboard shortcuts

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