Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache-2.0 Copyright Authors of Tetragon
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainUnloader ¶
type ChainUnloader []Unloader
chainUnloader is an unloader for multiple resources. Useful when a loading operation needs to be unwinded due to an error.
func (ChainUnloader) Unload ¶
func (cu ChainUnloader) Unload() error
type LinkUnloader ¶
PinUnloader unpins and closes a BPF program.
func (LinkUnloader) Unload ¶
func (lu LinkUnloader) Unload() error
type PinUnloader ¶
PinUnloader unpins and closes a BPF program.
func (PinUnloader) Unload ¶
func (pu PinUnloader) Unload() error
type RawDetachUnloader ¶
type RawDetachUnloader struct { TargetFD int Name string Prog *ebpf.Program AttachType ebpf.AttachType }
rawDetachUnloader can be used to unload cgroup and sockmap programs.
func (*RawDetachUnloader) Unload ¶
func (rdu *RawDetachUnloader) Unload() error
type RelinkUnloader ¶
type RelinkUnloader struct { // UnloadProg unloads the program UnloadProg func() error // IsLinked is true iff the program is linked IsLinked bool // Link is the link object (valid iff IsLinked) Link link.Link // Function to relink (requires calling Unlink first) RelinkFn func() (link.Link, error) }
RelinkUnloader is an unloader that allows unlinking/relinking as well.
func (*RelinkUnloader) Relink ¶
func (u *RelinkUnloader) Relink() error
func (*RelinkUnloader) Unlink ¶
func (u *RelinkUnloader) Unlink() error
func (*RelinkUnloader) Unload ¶
func (u *RelinkUnloader) Unload() error
type TcAttachment ¶
type TcUnloader ¶
type TcUnloader struct {
Attachments []TcAttachment
}
TcUnloader unloads programs attached to TC filters
func (TcUnloader) Unload ¶
func (tu TcUnloader) Unload() error
Click to show internal directories.
Click to hide internal directories.