Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigureProgram(m *libbpf.Map, iface string) error
- func UpdateJumpMap(obj *libbpf.Obj, progs map[int]string) error
- type AttachPoint
- func (ap *AttachPoint) AlreadyAttached(object string) (int, bool)
- func (ap *AttachPoint) AttachProgram() (int, error)
- func (ap *AttachPoint) Config() string
- func (ap *AttachPoint) DetachProgram() error
- func (ap *AttachPoint) FileName() string
- func (ap *AttachPoint) HookName() bpf.Hook
- func (ap *AttachPoint) IfaceName() string
- func (ap *AttachPoint) IsAttached() (bool, error)
- func (ap *AttachPoint) JumpMapFDMapKey() string
- func (ap *AttachPoint) Log() *log.Entry
- func (ap *AttachPoint) ProgramID() (int, error)
- func (ap *AttachPoint) ProgramName() string
Constants ¶
View Source
const DetachedID = 0
Variables ¶
View Source
var JumpMapIndexes = map[string]map[int]string{ "IPv4": map[int]string{ tcdefs.ProgIndexPolicy: "calico_xdp_norm_pol_tail", tcdefs.ProgIndexAllowed: "calico_xdp_accepted_entrypoint", tcdefs.ProgIndexDrop: "calico_xdp_drop", }, }
Functions ¶
Types ¶
type AttachPoint ¶
func (*AttachPoint) AlreadyAttached ¶
func (ap *AttachPoint) AlreadyAttached(object string) (int, bool)
func (*AttachPoint) AttachProgram ¶
func (ap *AttachPoint) AttachProgram() (int, error)
func (*AttachPoint) Config ¶
func (ap *AttachPoint) Config() string
func (*AttachPoint) DetachProgram ¶
func (ap *AttachPoint) DetachProgram() error
func (*AttachPoint) FileName ¶
func (ap *AttachPoint) FileName() string
func (*AttachPoint) HookName ¶
func (ap *AttachPoint) HookName() bpf.Hook
func (*AttachPoint) IfaceName ¶
func (ap *AttachPoint) IfaceName() string
func (*AttachPoint) IsAttached ¶
func (ap *AttachPoint) IsAttached() (bool, error)
func (*AttachPoint) JumpMapFDMapKey ¶
func (ap *AttachPoint) JumpMapFDMapKey() string
func (*AttachPoint) Log ¶
func (ap *AttachPoint) Log() *log.Entry
func (*AttachPoint) ProgramID ¶
func (ap *AttachPoint) ProgramID() (int, error)
func (*AttachPoint) ProgramName ¶
func (ap *AttachPoint) ProgramName() string
Click to show internal directories.
Click to hide internal directories.