Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroyPrograms ¶
func DestroyPrograms() error
DestroyPrograms detach and destroy all initialized embedded bpf programs
func ListInitPrograms ¶
func ListInitPrograms() []string
ListInitPrograms list initialized embedded Programs.
Types ¶
type BpfProg ¶
type BpfProg interface { SetPinPath(pinPath string) SetArgs(args []string) Load() error Attach() error Destroy() Name() string Description() string GetArgs() []string GetOutputBuf() *ringbuf.Reader GetOutputBufPath() string }
func GetProgram ¶
GetProgram Returns the BpfProg if initialized otherwise error
func NewProgram ¶
NewProgram initialize the new bpfProg
Click to show internal directories.
Click to hide internal directories.