workload

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BpfInfo

type BpfInfo struct {
	MapPath     string
	BpfFsPath   string
	Cgroup2Path string

	Type       ebpf.ProgramType
	AttachType ebpf.AttachType
}

type BpfSendMsgWorkload

type BpfSendMsgWorkload struct {
	Info     BpfInfo
	AttachFD int
	bpf2go.KmeshSendmsgObjects
	// contains filtered or unexported fields
}

func (*BpfSendMsgWorkload) Attach

func (sm *BpfSendMsgWorkload) Attach() error

func (*BpfSendMsgWorkload) Detach

func (sm *BpfSendMsgWorkload) Detach() error

func (*BpfSendMsgWorkload) LoadSendMsg

func (sm *BpfSendMsgWorkload) LoadSendMsg() error

func (*BpfSendMsgWorkload) NewBpf

func (sm *BpfSendMsgWorkload) NewBpf(cfg *options.BpfConfig, sockOpsWorkloadObj *BpfSockOpsWorkload) error

type BpfSockOpsWorkload

type BpfSockOpsWorkload struct {
	Info BpfInfo
	Link link.Link
	bpf2go.KmeshSockopsWorkloadObjects
}

func (*BpfSockOpsWorkload) Attach

func (so *BpfSockOpsWorkload) Attach() error

func (*BpfSockOpsWorkload) Detach

func (so *BpfSockOpsWorkload) Detach() error

func (*BpfSockOpsWorkload) GetSockMapFD

func (so *BpfSockOpsWorkload) GetSockMapFD() int

func (*BpfSockOpsWorkload) LoadSockOps

func (so *BpfSockOpsWorkload) LoadSockOps() error

func (*BpfSockOpsWorkload) NewBpf

func (so *BpfSockOpsWorkload) NewBpf(cfg *options.BpfConfig) error

type BpfWorkload

type BpfWorkload struct {
	SockConn SockConnWorkload
	SockOps  BpfSockOpsWorkload
	XdpAuth  BpfXdpAuthWorkload
	SendMsg  BpfSendMsgWorkload
}

func NewBpfWorkload

func NewBpfWorkload(cfg *options.BpfConfig) (*BpfWorkload, error)

func (*BpfWorkload) ApiEnvCfg

func (w *BpfWorkload) ApiEnvCfg() error

func (*BpfWorkload) Attach

func (w *BpfWorkload) Attach() error

func (*BpfWorkload) Detach

func (w *BpfWorkload) Detach() error

func (*BpfWorkload) GetBpfLogLevelMap

func (w *BpfWorkload) GetBpfLogLevelMap() *ebpf.Map

func (*BpfWorkload) Load

func (w *BpfWorkload) Load() error

func (*BpfWorkload) Start

func (w *BpfWorkload) Start() error

func (*BpfWorkload) Stop

func (w *BpfWorkload) Stop() error

type BpfXdpAuthWorkload

type BpfXdpAuthWorkload struct {
	Info BpfInfo
	Link link.Link
	bpf2go.KmeshXDPAuthObjects
}

func (*BpfXdpAuthWorkload) Close

func (xa *BpfXdpAuthWorkload) Close() error

func (*BpfXdpAuthWorkload) LoadXdpAuth

func (xa *BpfXdpAuthWorkload) LoadXdpAuth() error

func (*BpfXdpAuthWorkload) NewBpf

func (xa *BpfXdpAuthWorkload) NewBpf(cfg *options.BpfConfig) error

type SockConnWorkload

type SockConnWorkload struct {
	Info  BpfInfo
	Link  link.Link
	Info6 BpfInfo
	Link6 link.Link
	bpf2go.KmeshCgroupSockWorkloadObjects
}

func (*SockConnWorkload) Attach

func (sc *SockConnWorkload) Attach() error

func (*SockConnWorkload) Detach

func (sc *SockConnWorkload) Detach() error

func (*SockConnWorkload) LoadSockConn

func (sc *SockConnWorkload) LoadSockConn() error

func (*SockConnWorkload) NewBpf

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

Jump to

Keyboard shortcuts

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